RE: expat and leading white spaces

"Sinha, Raj (Raj)" <[email protected]>
Newsgroups gmane.comp.lib.libwww
Message-ID <8CA1128D59AD27429985B397118CEDDF3E2486@nj7460avexu1.global.avaya.com>
Hi All

I would like to strip off any leading spaces before any XML files.

I understand the best way to do is to manually strip off any leading
spaces before invoking the parser. Looking at the Libwww code and the
XML integration, I fail (much to my experience with libwww) to
understand where to put the hooks in. I looked at the concept of filters
before and after but it seems that using those is too late to do the
needfull.

So I supposed I have to do the stripping on the xml stream. Can anyone
help me with this. Do I have to stream conversions .... (iu have no
clue..)

Any help is appreciated.


Thanks
raj

-----Original Message-----
From: Sinha, Raj (Raj) 
Sent: Monday, October 07, 2002 11:23 AM
To: [email protected]
Subject: expat and leading white spaces


I was looking around to see if there might be a way to allow
expat/libwww to accept xml files with leading white spaces before the
standard <?xml version="1.0" ?> line without invoking the
XML_ERROR_MISPLACED_XML_PI.
 
I know that it is invalid to do so but this is one of those quirky
requests to make the parser less forgiving for this case.
 
Any help appreciated
Thanks
 
raj
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.