Hi gang,

Am trying to use the DOMGenerate sample included with the Xerces2 package.
I've tried working with the sample code and compiling it myself, but I
always get the same error:
- - - - -
D:\apache\xerces-2_0_0>java -cp
xercesImpl.jar;xmlParserAPIs.jar;xercesSamples.jar dom.DOMGenerate
Exception in thread "main" java.lang.NoSuchMethodError
        at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer
.java:674)
        at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerial
izer.java:1062)
        at
org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer
.java:426)
        at dom.DOMGenerate.main(DOMGenerate.java:100)
- - - - -

Line 674 of XMLSerializer.java is this:

            fDOML1 = (elem.getLocalName() == null)? true: false;

in the method:

            protected void serializeElement( Element elem )


Can anyone give me a hand, or provide a quick Xerces2 DOM-building example?

Much obliged,
Chris Galtenberg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to