https://bz.apache.org/bugzilla/show_bug.cgi?id=64418

--- Comment #8 from j-lawyer.org <[email protected]> ---
Thanks for the suggestion PJ!

I am not too familiar with the more low level APIs of POI. 

In the code I initially posted (findInTextfield method), I am using an XWPFRun
which cannot be fed with a CTP


                CTR ctr = CTR.Factory.parse(obj.xmlText());
                XWPFRun bufferrun = new XWPFRun(ctr, (IRunBody) xwpfParagraph);
                String text = bufferrun.getText(0);
                if (text != null && text.contains(key)) {
                    if (!resultList.contains(key)) {
                        resultList.add(key);
                        return;
                    }
                }


When replacing 

CTR ctr = CTR.Factory.parse(obj.xmlText());

with

CTR ctr = CTR.Factory.parse(obj.getDomNode());

my code does no longer work - the text retrieved does no longer contain / find
my search strings. Using the first line however (which involves re-parsing XML)
works as expected. 
I have challenges finding proper Javadocs for CTP and CTR, assume they
represent some disjoint sets of XML complex types. 

Do you have any hints on why the two variations above have different behaviour?

Thanks,
Jens

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to