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 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
