68#define GNC_FILE_BACKEND "gnc:file:2"
69#define GNC_FILE_BACKEND_VERS 2
82} gnc_template_xaction_data;
89gboolean gnc_book_write_to_xml_filehandle_v2 (
QofBook* book, FILE* fh);
90gboolean gnc_book_write_to_xml_file_v2 (
QofBook* book,
const char* filename,
94gboolean gnc_book_write_accounts_to_xml_filehandle_v2 (
QofBackend* be,
97 const char* filename);
102QofBookFileType gnc_is_xml_data_file_v2 (
const gchar* name,
103 gboolean* with_encoding);
108gboolean gnc_xml2_write_namespace_decl (FILE* out,
const char* name_space);
146 const gchar* filename, GList* encodings, GHashTable** unique,
147 GHashTable** ambiguous, GList** impossible);
161 const char * type_name;
163 sixtp * (*create_parser) (void);
164 gboolean (*add_item)(
sixtp_gdv2 *, gpointer obj);
166 gboolean (*write) (FILE*,
QofBook*);
168 gboolean (*ns) (FILE*);
171void gnc_xml_register_backend(GncXmlDataType_t&);
load and save data to files
All type declarations for the whole Gnucash engine.
GList TransList
GList of Transaction.
GList AccountList
GList of Account.
gint gnc_xml2_find_ambiguous(const gchar *filename, GList *encodings, GHashTable **unique, GHashTable **ambiguous, GList **impossible)
Read a file as plain byte stream to find words that are not completely ASCII.
gboolean gnc_xml2_parse_with_subst(GncXmlBackend *xml_be, QofBook *book, GHashTable *subst)
Parse a file in push mode, but replace byte sequences in the file given a hash table of substitutions...