poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57356] XWPFDocument does not deal with name space xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
Date Wed, 17 Dec 2014 08:26:55 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=57356

--- Comment #4 from yang zhao <kaiser_zhao1983@hotmail.com> ---
I want to get the val from <wx:t wx:val="1."/>, in this case I want to get
"1.".

1. I debug class org.apache.poi.xwpf.usermodel.XWPFDocument.java, for code: 
           // parse the document with cursor and add
            // the XmlObject to its lists
            XmlCursor cursor = ctDocument.getBody().newCursor();
            cursor.selectPath("./*");
            while (cursor.toNextSelection()) {
                XmlObject o = cursor.getObject();

Found thatin XmlObject o, content in tag <wx:t> was not there.

2. The xml for the paragraph is as below, so I tried with
p.getCTP().getPPr().getNumPr(), but only getIlvl() and getgetNumId() are
provided for it.
org.apache.poi.xwpf.usermodel.XWPFParagraph.getCTP().getPPr().getNumPr() will
return node <w:listPr>, right?

<w:p wsp:rsidR="003670EF" wsp:rsidRPr="007233F7" wsp:rsidRDefault="003670EF"
wsp:rsidP="00FD47FD">
    <w:pPr>
        <w:pStyle w:val="1"/>
        <w:listPr>
            <w:ilvl w:val="0"/>
            <w:ilfo w:val="5"/>
            <wx:t wx:val="1."/>
            <wx:font wx:val="Times New Roman"/>
        </w:listPr>

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message