Hi,
Anybody using Cb2Xml
http://cb2xml.sourceforge.net/ ??
I ran into an issue with converting the Mainframe Buffer and copybook DOM to a DOM object. Specifially in the method
MainframeToXml.convert(
String mainFramebuffer, Document copybook);
When I pass the mainframe buffer and copybook document to this method I am supposed to get back a Document object of the contents of buffer. I do get a DOM but the contents of the DOM are empty.
Example::
input:
mainframe buffer: CHEVABS Y
Document copybook (Document object of this XML file)::
<copybook filename="vehicle.ccp">
<item display-length="68" level="01" name="DFHCOMMAREA" position="1">
...........................................
...........................................
...........................................
</item>
</copybook>
Output that I am getting is::::
<?xml version="1.0" encoding="UTF-8"><copybook><item><item><item></item><item></item><item></item><item></item><item></item></item><item><item></item><item></item><item></item></item></item></copybook>
Any suggestions/ideas??