Thanks Andreas,
1. I didn't get your reply to my email inbox, only when I logged in again to
https://lists.apache.org/ I saw it, any idea why the system doesnt send
notifications to email?
2. I didn;t understand from your answer how can you get the list (with the
right order) of XWPF elements found in a specific Run. I guess that XmlCursor
can bring the XML elements, but how you get the higher XWPF abstraction.
3. Another wierd behaviour , from these lines of codes I get a fragment, but i
dont see any <w:t> tag, do you know why?
CTText tmpTextNode = CTText.Factory.newInstance();
tmpTextNode.setStringValue("A");
XmlOptions opts = new XmlOptions();
opts.setSaveOuter();
opts.setSaveNoXmlDecl();
System.out.println(tmpTextNode.xmlText(opts));
On 2020/10/15 20:48:57, Andreas Beeker <[email protected]> wrote:
> 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]