[jdom-interest] Namespacing declaration out of order

LCCarver at dstsystems.com LCCarver at dstsystems.com
Thu Aug 23 11:53:44 PDT 2001


Hello jdom world.  Got a little problem here.

I created a little servlet that passes some XML over to a SmallTalk
program.  The SmallTalk then does a query and passes my servlet back
some XML.  One problem though.  I can get the XML fine, but when I use the
SAX (or DOM) builder to create a Document, it throws two exceptions.
#1
org.jdom.JDOMException: Error on line 2: org.apache.crimson.parser/P-084
SOAP-ENV:encodingStyle

#2
Root cause: org.xml.sax.SAXParseException: org.apache.crimson.parser/P-084
SOAP-ENV:encodingStyle

Here is the start of the XML (what is passed from SmallTalk)

- <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/"xmlns:dst="
http://www.dstsystems.com/DSTWebServices" xmlns:xsi="
http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2000/08/XMLSchema">


Now if I store the XML to a file and switch around one thing it works fine.
Here is that one thing (between the ((((((( and ))))))) ).

- <SOAP-ENV:Envelope (((((((xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/"))))))) xmlns:dst="
http://www.dstsystems.com/DSTWebServices" xmlns:xsi="
http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2000/08/XMLSchema">

The smalltalk XML builder cannot be changed, and has never had any problems
doing the name spacing that way with any other parser, including IE, Spy,
etc, etc....  Is this a JDOM issue?  Or a dumb programmer issue?

Anyway,  If anyone knows any workarounds or suggestions that don't involve
destroying SmallTalk, please let me know!

Thanks in advance!
Luke




More information about the jdom-interest mailing list