Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] ParentNode::getChildCount()

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: David Ondzes <dao AT pobox.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] ParentNode::getChildCount()
  • Date: Mon, 05 Mar 2007 17:13:42 -0500

David Ondzes wrote:

<foo>
</foo>
1. There's a text node in there that consists of white space. If you
parsed <foo></foo> you'd get 0 for the child count.

When I get child count of 1 how can i determine if my xml was
<foo>
</foo>

or
<foo>

The latter causes an exception. No end-tag.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/




Archive powered by MHonArc 2.6.24.

Top of Page