Re: ignoring whitespace?
"Jason Stewart" <[email protected]> Sun, 1 Jul 2007 19:53:43 +0530
| Newsgroups | gmane.text.xml.xerces-p.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Lev, On 6/26/07, Lev Lvovsky <[email protected]> wrote: > Is there any method which allows for the ignoring of whitespace > between elements? > > <element1> > <element2>some text</element2> > </element1> > Yes, look at the parser settings. There is a setting which is off by default to throw away ignorable whitespace. But you must have validation turned on to make this work = which means that you need a DTD. > this doesn't seem to parse (understandably, I suppose). Sorry, looks like fine XML to me, it should parse... Cheers, jas.