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: White spaces before Processing Instruction: msg#00055

Subject: Re: White spaces before Processing Instruction
Prashant <prashant@xxxxxxxxxxx> wrote on 03/27/2006 10:16:27 AM:

> 
> Can Parser be forgiving about the white spaces before <?xml processing 
> instruction ?

No. The XML declaration [1] (which by the way is not a processing 
instruction, even though it looks like one) cannot [2] be preceded by 
whitespace. If it is then your document isn't well-formed and you'll get a 
fatal error.

> I saw the code in XMLDocumentScannerImpl and noticed that there no way 
> around this. I wonder what the motivation is for parser to behave so in 
> handling the processing instruction.
> 
> -Prashant
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx

[1] http://www.w3.org/TR/2004/REC-xml-20040204/#NT-XMLDecl
[2] http://www.w3.org/TR/2004/REC-xml-20040204/#NT-prolog

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx



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