logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Re: XML Declaration: msg#00022

Subject: Re: XML Declaration
> <?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 ...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo