Re: Help with XML processing using DOM
- From: "Jeff Higgins" <oohiggins@xxxxxxxxx>
- Date: Fri, 29 Jun 2007 17:16:33 -0400
Joshua Cranmer wrote:
On Thu, 28 Jun 2007 18:57:39 -0400, Jeff Higgins wrote:
Also note that every Element node contains a Text node, so that Element
<b> is probably the next sibling of the Text node you're printing out.
Also when you print the value of this Text node it is equal to a single
whitespace because parser collapses all whitespace to a single space
unless you tell it not to.
Not necessarily. <br />'s don't contain any text nodes and writing
<a><b>Foo</b></a> gives a only one child: the b element.
Yes, thanks for correcting that.
<a><b/></a> Element node <a> contains Element node <b>
<a>
<b/>
</a> Element node <a> contains Text node and Element node <b>
.
- Follow-Ups:
- Re: Help with XML processing using DOM
- From: Lew
- Re: Help with XML processing using DOM
- References:
- Help with XML processing using DOM
- From: kernco
- Re: Help with XML processing using DOM
- From: Jeff Higgins
- Re: Help with XML processing using DOM
- From: kernco
- Re: Help with XML processing using DOM
- From: Jeff Higgins
- Re: Help with XML processing using DOM
- From: Jeff Higgins
- Re: Help with XML processing using DOM
- From: Joshua Cranmer
- Help with XML processing using DOM
- Prev by Date: Re: Help with XML processing using DOM
- Next by Date: Re: test imap and pop3
- Previous by thread: Re: Help with XML processing using DOM
- Next by thread: Re: Help with XML processing using DOM
- Index(es):
Relevant Pages
|