Package org.odftoolkit.odfdom.pkg

Examples of org.odftoolkit.odfdom.pkg.OdfFileDom.createElementNS()


            p.setAttributeNS("http://myAttributeNamespace", "my:attr", "attrValue");
            String resAttr1 = xpath.evaluate("//*[@my:attr = 'attrValue']", contentDom);
            Assert.assertTrue(resAttr1 != null);

            // Test XPath on none ODF element (added explicitly via DOM)
            p.appendChild(contentDom.createElementNS("http://myElementNamespace", "my:element"));
            String resElement1 = xpath.evaluate("//my:element", contentDom);
            Assert.assertTrue(resElement1 != null);

            // Save documnet
            File targetFile = ResourceUtilities.newTestOutputFile(TARGET);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.