[jdom-interest] Namespacing declaration out of order
LCCarver at dstsystems.com
LCCarver at dstsystems.com
Thu Aug 23 13:16:15 PDT 2001
OK, got it working. I had to read it in with the CrimsonDOMAdapter, then
set it to a JDOM Document. Worked fine.
I would still like to know if there is another way around this or if this
is a bug.
Thanks
LCCarver at dstsystem
s.com To: jdom-interest at jdom.org
Sent by: cc:
jdom-interest-admi Subject: [jdom-interest] Namespacing declaration out of order
n at jdom.org
08/23/01 01:53 PM
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
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list