> <?xml version="1.0" encoding="UTF-8" ?>
using xerces through JAXP, if this line is present, I get a SAXException
every time when parsing the doc, along the lines of xml element not
allowed here. I have to remove the line before the doc will parse.
Am I missing something?
thanks,
Alistair
--
Alistair Young
Senior Software Engineer
UHI@Sabhal Mòr Ostaig
Isle of Skye
Scotland
> Hello,
>
> Consider the following xml snippet:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <foo TYPE="bar">
> </foo>
>
> I have some code which uses a jaxp DocumentBuilder to
> parse this xml and then walk to tree and do various
> things. This code works fine with xerces (1.4.x and
> 2.2.x) but when it's deployed in the Oracle 10g
> application server which uses it's own jaxp
> implementation there are problems. It turns out that
> the xerces Document resulting from the parse has only
> one child which is the 'foo' element while the Oracle
> Document has two - the first is the xml declaration
> and the second is the 'foo' element.
>
> Obviusly I can code around this easily enough but I'm
> wondering which behavior is correct with respect to
> the standard or if the standard even applies.
> Possibly the implemenations are free to make whichever
> choice they want? Thanks in advance.
>
> -jason
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xxxxxxxxxxxxxx
> For additional commands, e-mail: xerces-j-user-help@xxxxxxxxxxxxxx
>
>
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|