Are processing instructions before the first element legal? 2003-02-25 - By Elliotte Rusty Harold
At 8:06 AM -0600 2/25/03, Wake, Chris wrote: >Hi- > >I am running data through the SAX parser that looks like the following: > ><?WGXPPrightHandPageStart pagePrefix="Page 1-" ??> ><?page type='recto' seq='025000' lev='|||||' fol='1'??> ><publication> > <publication.front> >...
It's not illegal, but since we you haven't shown us your entire document and code, I suspect there's a different bug in your document or cod that is something other than what you expect. Then again, you may have uncovered a bug in Xerces. A simple test case could prove it. What happens if you run your document through sax.Counter? --
+-----------------------+------------------------+-------------------+ | Elliotte Rusty Harold | elharo@(protected) | Writer/Programmer | +-----------------------+------------------------+-------------------+ | Processing XML with Java (Addison-Wesley, 2002) | | http://www.cafeconleche.org/books/xmljava | | http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA | +----------------------------------+---------------------------------+ | Read Cafe au Lait for Java News: http://www.cafeaulait.org/ | | Read Cafe con Leche for XML News: http://www.cafeconleche.org/ | +----------------------------------+---------------------------------+
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|