From: <bma...@br...> - 2004-01-28 17:23:47
|
I am working on integrating eXist into our project (sourceforge.net/projects/bie). I am having difficulty serializing org.exist.dom objects using org.apache.xml.serialize.XMLSerializer (xerces) and javax.xml.Transform (xalan). The Xalan transformer method throws exceptions or, if passed the Document node only serializes the XML processing instruction and version/encoding attribute. XMLSerializer behaves strangely, all text nodes in the document are concatenated as a child of the first Element, all text nodes but the first one are concatenated as a child of the next Element in the heirarchy, all text nodes but the first two appear in the next element, and so forth. (see second half of testOutput.txt). I am currently testing with Xerces version 2.6.0. I have attached a high level test, the test XML, and test output. If anyone knows an alternate method of serializing org.exist.dom impl objects, it would be greatly appreciated! Currently many of our plugins and APIs are dependent on the DOM api. Thanks, Brian Madigan WDI 200 Fairway Drive, Unit 184, Vernon Hills, IL 60061 P: 847-970-6826 F: 847-970-6869 C: 847-962-0858 www.brunswickwdi.com (See attached file: testOutput.txt) (See attached file: TestEXistXMLSerialize.java) (See attached file: PerformanceTest.xml) |