Re: parsing scalars instead of files?

Lev Lvovsky <[email protected]> Thu, 15 Mar 2007 11:13:16 -0700
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
On Mar 15, 2007, at 11:01 AM, Garrett, Philip (MAN-Corporate) wrote:
>> Thanks Garrett
>
> It's Philip :-)

Doh!  My apologies!

> Not necessarily.  It's possible (and likely) to have a large xml file
> with no line breaks.  You wouldn't want to load the entire thing into
> memory to parse it.

Makes sense - good thing to remember too, I've prettified all of my  
XML (line breaks and all), so it's likely that later on down the road  
printing out the line would make output unreadable - I suppose the  
colmumn number could allow for printing out snippets from that single  
line however.

> I get FAKE_SYSTEM_ID if I do not specify a system ID when I create the
> MemBufInputSource.  When I do (like in the example I sent earlier), I
> get the correct value (e.g. "foo.xml").

right!

>
> P.S.  Please keep the mailing list CC'ed.  You benefit by having more
> people (undoubtedly better than me) hear your problem, and they might
> benefit from seeing the answer to a problem.

previously it was for the purposes of saving face for what were  
likely n00b questions, but I'll definitely reveal my ignorance to  
others in the future ;)

thanks Philip!
-lev