Prashant <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] [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: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
