Page 1 of 1

docx4j changes bulleted lists to numbered lists

PostPosted: Mon Jun 24, 2013 8:04 am
by wreed12345
Hello, examining the code of a document through the docx4j web app thingy, I wanted to figure out how to add lists to my documents so I uploaded to the tool and took out the necessary code, but when I use it in my program it changes the once bulleted list into a numbered list. This is the string I am using for a list:

Code: Select all
      String observation1 =  "<w:p xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\">"
            + "<w:pPr>"
                + "<w:pStyle w:val=\"ListParagraph\"/>"
                + "<w:numPr>"
                    + "<w:ilvl w:val=\"0\"/>"
                    + "<w:numId w:val=\"1\"/>"
                +"</w:numPr>"
            +"</w:pPr>"
            + "<w:r>"
                + "<w:t>bulletOne</w:t>"
            +"</w:r>"
        +"</w:p>";


Which was given to me by the web app for docx4j. Any help here is appreciated

Re: docx4j changes bulleted lists to numbered lists

PostPosted: Mon Jun 24, 2013 4:39 pm
by jason

Re: docx4j changes bulleted lists to numbered lists

PostPosted: Tue Jun 25, 2013 2:58 am
by wreed12345
Thats what I tried and used the web tool too, but I am still getting results of a numbered list.

Re: docx4j changes bulleted lists to numbered lists

PostPosted: Tue Jun 25, 2013 8:35 am
by jason
Post the XML contents of your numbering definitions part (numbering.xml)?