Re: [xml] text between marker nodes





--- On Fri, 21/1/11, Csaba Raduly <rcsaba gmail com> wrote:
You could just grab the next sibling of each v node
(perhaps check
that it is of type text).


Thankyou, I didn't know that was possible to treat text as a node like that. I have tried that and it works 
for me.


IMO, the XML is badly organized. It would have been much
more logical
for the verse tag to contain the verse. But I guess it's
not up to
you.

Yes, I thought the same however somebody else pointed out to me that there are situations where the tags may 
overlap e.g.

<verse>............<quote>"............</verse><verse>............"</quote>.................</verse>








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]