Hi there!
I'm using xerces-c 2.8.0 without any problems under winxp and vc6.0.
First issue:
I'm looking for a high-performance way of converting an older XML-file
into a newer version without deleting the old file. The older versione
lacks just of some additinonal information, so the structure itself has
changed only slightly.
// old version
<?xml version="1.0" encoding="UTF-8" ?>
<nav>
<meta>
<id user="user" password="pwd" />
<time value="2008-12-11 12:00:00" timezone="GMT" />
<version value="0.9 />
</meta>
<rx>
<uid value="xxx" msgtime="2008-12-11 12:00:00" >
<evt>
<pos lat="0.0" lon="0.0" />
<pos lat="1.1" lon="1.1" />
</evt>
</uid>
</rx>
</nav>
// new version
<?xml version="1.0" encoding="UTF-8" ?>
<nav>
<meta>
<id user="user" password="pwd" />
<time value="2008-12-11 12:00:00" timezone="GMT" />
<version value="0.9 />
</meta>
<rx>
<uid value="xxx" msgtime="2008-12-11 12:00:00" >
<posevt>
<pos lat="0.0" lon="0.0" />
<senevt time="2008-12-11 13:00:00" />
</posevt>
<posevt>
<pos lat="1.1" lon="1.1" />
<senevt time="2008-12-11 14:00:00" />
</posevt>
</uid>
</rx>
</nav>
One way would be parsing the input sequentially and generating the new
version out of the information parsed. But with only small differences,
i think this would be rather slow. Any hints? What do the experts say?
Second issue:
I'd like to parse a string ("this is just a test") in a special way into
the following XML:
<?xml version="1.0" encoding="UTF-8" ?>
<str>
<chr no="0" val="t"/>
<chr no="1" val="h"/>
<chr no="2" val="i"/>
//...
<chr no="17" val="s"/>
<chr no="18" val="t"/>
<str/>
Rather useless, i know, it's really just a test. :) Is there a built-in
xerces feature like a generic list? I do use some MFC/STL stuff, but if
there's a xerces feature, i'd rather us this.
Thanks in advance,
Matthias