summaryrefslogtreecommitdiff
path: root/src/xml.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-14 11:09:06 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:49 -0400
commit77db7eb92f730af315d4bcdf831cc67acb386b58 (patch)
tree566a413e47d8d9f2f82d257c4ad3988c0a38d919 /src/xml.h
parent3cc14c70d47f6f7674b587eb08b9d0e02a90e662 (diff)
downloadledger-77db7eb92f730af315d4bcdf831cc67acb386b58.tar.gz
ledger-77db7eb92f730af315d4bcdf831cc67acb386b58.tar.bz2
ledger-77db7eb92f730af315d4bcdf831cc67acb386b58.zip
Added initial support for using builders from the various parsers; at the moment is just uses the xml_writer_t builder to output the contents of the ledger journal as XML
Diffstat (limited to 'src/xml.h')
-rw-r--r--src/xml.h41
1 files changed, 40 insertions, 1 deletions
diff --git a/src/xml.h b/src/xml.h
index d36674cc..a247260b 100644
--- a/src/xml.h
+++ b/src/xml.h
@@ -34,7 +34,7 @@
#include "journal.h"
#include "value.h"
-#include "parser.h"
+//#include "parser.h"
namespace ledger {
@@ -47,6 +47,43 @@ namespace xml {
#define XML_NODE_IS_PARENT 0x1
+#define ACCOUNT_ATTR "account"
+#define ACCOUNT_PATH_NODE "account-path"
+#define AMOUNT_EXPR_NODE "amount-expr"
+#define ARG_ATTR "arg"
+#define AUTO_ENTRY_NODE "auto-entry"
+#define BALANCE_ATTR "balance"
+#define CHECKIN_NODE "checkin"
+#define CLEARED_ATTR "cleared"
+#define CODE_ATTR "code"
+#define COMMODITY_CONVERSION_NODE "commodity-conversion"
+#define COMMODITY_NOMARKET_NODE "commodity-nomarket"
+#define COMMODITY_TEMPLATE_NODE "commodity-template"
+#define CURRENT_YEAR_NODE "current-year"
+#define DATE_ATTR "date"
+#define DATE_EFF_ATTR "effective"
+#define DEFAULT_ACCOUNT_NODE "default-account"
+#define DIRECTIVE_NODE "directive"
+#define ENTRY_NODE "entry"
+#define FROM_ATTR "from"
+#define JOURNAL_NODE "journal"
+#define NAME_ATTR "name"
+#define NOTE_NODE "note"
+#define PAYEE_NODE "payee"
+#define PENDING_ATTR "pending"
+#define PERIOD_ENTRY_NODE "period-entry"
+#define PERIOD_NODE "period"
+#define PRICE_ATTR "price"
+#define PRICE_HISTORY_NODE "price-history"
+#define RULE_NODE "rule"
+#define SYMBOL_ATTR "symbol"
+#define TEMPLATE_ATTR "template"
+#define TIME_ATTR "time"
+#define TO_ATTR "to"
+#define TRANSACTION_NODE "transaction"
+#define VIRTUAL_ATTR "virtual"
+#define YEAR_ATTR "year"
+
DECLARE_EXCEPTION(conversion_error);
class parent_node_t;
@@ -290,6 +327,7 @@ public:
#endif
};
+#if 0
#if defined(HAVE_EXPAT) || defined(HAVE_XMLPARSE)
class xml_parser_t : public parser_t
@@ -306,6 +344,7 @@ class xml_parser_t : public parser_t
DECLARE_EXCEPTION(parse_error);
#endif
+#endif
class commodity_node_t : public parent_node_t
{