Hi folks,
I've done pretty well getting dom4j to take content from my database and
construct a document object and then an XML file, but I'm having a bit
of a trouble getting the data I need out of a document and putting into
the database.
The problem appears to be rooted in the fact that my XML documents are
somewhat unstructured with mixed content at different levels.
For example:
<intro>
<p><b>Content, content, content</b></p>
<p>More, content, contentcontent, contentcontent,
contentcontent, contentcontent, contentcontent, contentcontent,
contentcontent, contentcontent, contentcontent, contentcontent,
contentcontent, contentcontent, contentcontent, contentcontent,
contentcontent, <some other tag>contentcontent</some other tag>,
contentcontent, contentcontent, contentcontent, contentcontent,
content</p>
</intro>
If I grab this content using the asXML method on the intro node, the
<intro> tags come with it, and I don't want them to. But if I use the
getText or the getValueOf method, it won't return anything in the <p>
tags. Is there a better way to go about this?
Thanks,
Marc
..................................................
Marc Elliott
Director of Information Architecture / HNW Inc.
Digital Solutions for High-Net-Worth Marketers
ph: 617-243-9199 x224
fx: 815-327-4167
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user