Oops - forgot to send this to the list as well as to Steve.

Terry

----- Original Message -----
From: "Terry Steichen" <[EMAIL PROTECTED]>
To: "Stephen C. Upton" <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 5:16 PM
Subject: Re: [dom4j-user] Extracting Text Fragments


> Steve,
>
> Thanks much.  It is not easy, but a *heck* of a lot better than the
> alternative (which, in desperation, I was lowering myself to) of substring
> manipulations.
>
> Regards,
>
> Terry
>
> ----- Original Message -----
> From: "Stephen C. Upton" <[EMAIL PROTECTED]>
> To: "Terry Steichen" <[EMAIL PROTECTED]>
> Cc: "dom4j-user" <[EMAIL PROTECTED]>
> Sent: Monday, September 23, 2002 4:44 PM
> Subject: Re: [dom4j-user] Extracting Text Fragments
>
>
> > 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