Package nu.xom

Examples of nu.xom.Namespace.toXML()


    public void testToXML() {
    
        Element root = new Element("pre:root", "http://www.example.org/");
        Nodes result = root.query("namespace::pre");
        Namespace namespace = (Namespace) result.get(0);
        assertEquals("xmlns:pre=\"http://www.example.org/\"", namespace.toXML());
       
    }

   
    public void testGetChildCount() {
View Full Code Here


    public void testToXMLOnDefaultNamespace() {
    
        Element root = new Element("root", "http://www.example.org/");
        Nodes result = root.query("namespace::*[name() != 'xml']");
        Namespace namespace = (Namespace) result.get(0);
        assertEquals("xmlns=\"http://www.example.org/\"", namespace.toXML());
       
    }

   
    public void testDetachNamespaceNode() {
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.