Changeset 179

Show
Ignore:
Timestamp:
08/08/08 15:07:39 (4 months ago)
Author:
zork
Message:

simple example for XMLArchive usage

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dba/config.bkl

    r169 r179  
    126126  </template> 
    127127   
    128   <template id="xml_example" template_append="example"> 
     128  <template id="xml_example" template_append="example,libxml2-exe"> 
    129129    <sys-lib>dbaxml$(LIBDEBUGSUFFIX)</sys-lib> 
    130130  </template> 
  • trunk/dba/configure.in

    r169 r179  
    243243  examples/sublists/Makefile  
    244244  examples/transaction/Makefile  
    245 ]) 
    246  
     245  examples/xmlsimple/Makefile  
     246]) 
     247 
  • trunk/dba/dba/xmlarchive.h

    r172 r179  
    2323 
    2424/** 
    25 Archive for XML file format serialization 
     25  Archive for XML file format serialization using libxml2. 
     26 
     27  This archive adds limited support for mapping xml document data to C++ objects using store tables. 
     28   
     29Current limitations: 
     30 - object identifiers are not supported. 
     31 - class members specified in BIND_STR, BIND_INT, BIND_DAT and BIND_STB \ 
     32macros can be *all* stored as attributes or subelements, not both 
     33 - class members specified in BIND_STR, BIND_INT, BIND_DAT and BIND_STB are loaded from \ 
     34subelements and attributes. 
     35 - xml namespaces can be specified directly in storetable, but namespace declaration \ 
     36can be added only to root xml element. 
     37 - xml elements are written with order specified in store table, but XMLArchive ignores \ 
     38order of readed elements - they are searched amon all nodes and attributes on current level. 
     39 
    2640*/ 
    2741class XMLArchive  : public Archive, public ConvSpecContainer, public XMLErrorHandler { 
  • trunk/dba/examples/examples.bkl

    r20 r179  
    1616  <subproject id="sublists" template="example"/> 
    1717  <subproject id="transaction" template="example"/> 
     18  <subproject id="xmlsimple" template="example"/> 
    1819</makefile>