Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] DOMConverter bug

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] DOMConverter bug
  • Date: Thu, 19 Aug 2004 19:04:37 -0700

Hi,

The 1.0b2 DOMConverter still has a bug (last time it worked flawlessly was in 1.0d25 - before all the iterative complications).
Try reading the example file below with a Builder, print doc.toXML(), then convert to DOM and back to XOM, then print again with doc.toXML().
The output nesting levels are bogus at the end of the document (scope/responseMode).

I'd try to find a fix but the iterative version is incomprehensible to me so i'd rather not touch it and revert back to xom-1.0d25 for the time being.

before conversion:

<?xml version="1.0"?>
<open xmlns="http://dsd.lbl.gov/p2pio-1.0";>
<transactionID>ec14f115-d97e-4f76-8d0a-40d81de79445</transactionID>
<query>
<p2pQuery xmlns="http://dsd.lbl.gov/firefish-1.0"; mergeOperator="concat">
<dataSourceQuery>
<xPathQuery>
<expression>/*/*</expression>
</xPathQuery>
</dataSourceQuery>
</p2pQuery>
</query>
<scope>
<timeout>2003-10-03T13:48:36.917-07:00</timeout>
<maxHops>3</maxHops>
<extension />
</scope>
<responseMode>
<routedResponseMode />
</responseMode>
</open>


after conversion:

<?xml version="1.0"?>
<open xmlns="http://dsd.lbl.gov/p2pio-1.0";>
<transactionID>ec14f115-d97e-4f76-8d0a-40d81de79445</transactionID>
<query>
<p2pQuery xmlns="http://dsd.lbl.gov/firefish-1.0"; mergeOperator="concat">
<dataSourceQuery>
<xPathQuery>
<expression>/*/*</expression>
</xPathQuery>
</dataSourceQuery>
</p2pQuery>
</query>
<scope>
<timeout>2003-10-03T13:48:36.917-07:00</timeout>
<maxHops>3</maxHops>
<extension>
</extension>
<responseMode>
<routedResponseMode>
</routedResponseMode>
</responseMode></scope></open>





Archive powered by MHonArc 2.6.24.

Top of Page