Try using a java.util.StringTokenizer on the text
value?
The example isn't a terribly good XML encoding.
Something better would be
<listValues>
<listValue
id="1">abc</listValue>
<listValue
id="2">def</listValue>
<listValue
id="3">ghj</listValue> </listValues>
Then you'd be able to navigate this structure
easily with XPath etc.
----- Original Message -----
Sent: Monday, December 30, 2002 10:36
AM
Subject: [dom4j-user] Please Help on
Extracting Text
Hi dom4j users
I 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 abc
2 def
3 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
|