Hello everyone,

For a few years I have been developing a library on top of Xerces : http://xeumeuleu.org I am announcing this now because it has made my life (and the lives of my co-workers and friends) so much easier when working with XML that it might prove useful to others as well.

The library can be briefly described as a wrapper above Xerces to provide a C++ stream-like interface.
As a quick code sample consider the following XML document :

<document>
  <element name="my element" />
  <another-element>42</another-element>
</document>


The code to read it would be along :

std::string name;
int content;
xml::xifstream xis( "my_document.xml" );
xis>>  xml::start( "document" )
      >>  xml::start( "element" )
        >>  xml::attribute( "name", name )
      >>  xml::end
      >>  xml::content( "another-element", content );


Thus simple, compact and flexible code is one of the benefits.
There is however a little more to it as it also yields features like easily merging, buffering or manipulating XML chunks.

The library is being used in dozens of projects at my company and some interesting patterns seem to emerge when solving real world problems. Well, of course being the author I am totally biased, still if only for the sake of curiosity, check out the documentation at http://xeumeuleu.org

I understand that making announcements about a project external to Xerces, even if somewhat related, on this mailing-list might be inappropriate.
If this is the case I apologize and won't be doing it again in the future.

Regards,
MAT.


Reply via email to