|
 |
apache_xml thread: parsing xml with xerces C++
Message #1 by "Lorna Jones" <azazel-djin@a...> on Thu, 11 Oct 2001 12:51:15
|
|
I am currently trying to parse a CML file (xml basically) using the Xerces
C++ parser...BUT..
It keeps on falling over everytime it hits the end of the <!DOCTYPE...
tag, for example, if I try to parse this file..
-------------------------------------------------------------------------
<!DOCTYPE CML SYSTEM "cml.dtd">
<?xml version="1.0" encoding="ISO-8859-1"?>
<molecule xmlns="http://www.xmlcml.org/dtd/cml1_0_1" convention="MDLMol"
type="2D">
<date day="08" month="05" year="2000"/>
<atomArray>
------------------------------------------------------------------------
I get an error stating Error at line 1, column 32 (the theoretical space
after >).
Is this something to do with the structure of my XML or is a Problem in
Xerces? I've been trying to solve this for the past 2 weeks &it's driving
me nuts!
ANY replies or opinions on this would be gratefully recieved!
ta muchly.
Lorna
:o)
Message #2 by "Ross Niver" <Raniver@k...> on Thu, 11 Oct 2001 08:04:30 -0400
|
|
I do not know how much hep this suggestion might be but, try to use a
third party XML program to try to validate the xml file which you are
parsing first. If you make sure the XML file is setup properly then you
can eliminate half of what can be causing an error.
Hope this helps
Ross
|
|
 |