Hi,
when
the XML document is parsed there may be one or more text nodes (due to the
specification of the way that parsers work.
These
splits can be removed if you call normalise() on the document and the text nodes
are concatinated.
I
presume that you have the text as one node
The
problem that you have is not XML, just string parsing, so use String.split()
(JDK1.4+) or StringTokeniser
Mike
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Old Man
Sent: Monday 30 December 2002 10:36
To: [EMAIL PROTECTED]
Subject: [dom4j-user] Please Help on Extracting TextHi dom4j usersI have a problem on breaking up the Text using dom4J. Can someone give some tips on how to handle this problem. Let say I have have a node called<ListValues> 1 abc2 def3 ghj </ListValue>when i call the node.getText() on this Node, is there anyway that i can extract the text fragments out of this Node.thanx
Add photos to your messages with MSN 8. Get 3 months FREE*. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user