Re: Can't get the DOM Node text representation of the markup

Andreas Beeker <[email protected]>
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <[email protected]>
Hi Nadav,

using the dom node usually results in some disconnected xml fragments.
When our schema doesn't cover current elements, I always use XmlCursor.
Have a look for instance at the SignatureLine class [1]
There you can see, how to add XmlObjects to a xml element having any content [2] and therefore no assessor methods are available.
XmlCursors can be used with XPath too, but usually it's faster to provide your own tree walker, when looking for child elements in the hierarchy.

Cheers,
Andi


[1] https://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/dsig/SignatureLine.java?view=markup#l255
[2] https://svn.apache.org/viewvc/poi/trunk/src/ooxml/resources/org/apache/poi/schemas/vmlDrawing.xsd?view=markup#l30
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.