[jdom-interest] Namespacing declaration out of order
LCCarver at dstsystems.com
LCCarver at dstsystems.com
Thu Aug 23 13:54:53 PDT 2001
That was an honest mistake! I did that on accident when I copied and
pasted it to the e-mail.
philip.nelson at omnires
ources.com To: LCCarver at dstsystems.com, jdom-interest at jdom.org
Sent by: cc:
jdom-interest-admin at j Subject: RE: [jdom-interest] Namespacing declaration out of order
dom.org
08/23/01 03:29 PM
could it be the space that's missing after the quote? I *think* that the
space is required but some parsers may be more tolerant than others.
> http://schemas.xmlsoap.org/soap/envelope/"xmlns:dst="
You could try using xerces instead of crimson.
> -----Original Message-----
> From: LCCarver at dstsystems.com [mailto:LCCarver at dstsystems.com]
> Sent: Thursday, August 23, 2001 1:54 PM
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] Namespacing declaration out of order
>
>
> 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/yo
uraddr at yourhost.com
_______________________________________________
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