Terry,

text1 and text2 are TEXT nodes within the piece Node (or if you grab
<piece> through Element). Don't know if there is an easier way, but you
can get either an Iterator (using nodeIterator()) or a List (using
content()) of the piece node, and then test if they are TEXT nodes
(using getNodeType()), then do you want with them.

HTH
steve


Terry Steichen wrote:

> Assume I have an XML document including the following
> fragment: <piece>text1<blob1>stuff</blob1>text2</piece> How do you
> extract text1 separately from text2 - that is, programmatically
> distinguish where text1 ends and text2 begins? Regards, Terry




-------------------------------------------------------
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

Reply via email to