I'm new to XML but I'm having a problem parsing generated XML and its driving me crazy.
My application uses C++ to generate an XML file and then subsequently uses java to read it in to extract content. It fails when it tries to read. I'm using xercesImpl.jar
The generated XML contains lines like this: <xyz type="string">hiho</xyz>
Everything works fine if I change these lines to look like this: <xyz type="string" value="hiho" />
Any ideas will be VERY appreciated!
Following is an example of XML that's generated and failing to be read/parsed:
<?xml version="1.0" ?>
<!DOCTYPE file_parameters[]= >
<file_parameters>
<compression_flag type="string">false</compression_flag>
<delivery_category type="string">deploy</delivery_category>
.
.
</file_parameters>
My application uses C++ to generate an XML file and then subsequently uses java to read it in to extract content. It fails when it tries to read. I'm using xercesImpl.jar
The generated XML contains lines like this: <xyz type="string">hiho</xyz>
Everything works fine if I change these lines to look like this: <xyz type="string" value="hiho" />
Any ideas will be VERY appreciated!
Following is an example of XML that's generated and failing to be read/parsed:
<?xml version="1.0" ?>
<!DOCTYPE file_parameters[]= >
<file_parameters>
<compression_flag type="string">false</compression_flag>
<delivery_category type="string">deploy</delivery_category>
.
.
</file_parameters>