Hi,
the
number and typ of the nodes that you get is to do with the way that SAX parses
things
If you
want to only have one text node then you can
1.
call normalise() on the document/some parent element, which will combine
the text nodes together
or
2.
when you parse the document call setMergeAdjacentText(true) on the SAXReader,
which will do the merge as you read the document
Mike
-----Original Message-----
From: Samuel Cheung [mailto:[EMAIL PROTECTED]
Sent: Monday 10 March 2003 18:24
To: [EMAIL PROTECTED]
Subject: [dom4j-user] Text nodes in dom4jHi,
If I have a xml source like this (with "\n" and "\t" before the <name> node), does dom4j has 1 text node for the "\n" and another text node for the "\t"? and these text nodes (2) along with the name node are the children of the <person> node?
<person id="Big.Boss">
<name><family>Boss</family> <given>Big</given></name>
</person>thank you