Package hu.jokeman.xparser.document

Examples of hu.jokeman.xparser.document.XMLNode


        pop ();
    }

    public void addEntityReference (String entityName)
            throws DocumentBuilderException {
        XMLNode currentNode = peek ();
        if (currentNode instanceof Element) {
            currentNode.addChild (new EntityReference (entityName));
        } else {
            throw new DocumentBuilderException (
                    "Entity references not allowed here.");
        }
    }
View Full Code Here


                    "Entity references not allowed here.");
        }
    }

    public void addComment (String content) throws DocumentBuilderException {
        XMLNode currentNode = peek ();
        if (currentNode instanceof Element ||
                currentNode instanceof Document) {
            currentNode.addChild (new Comment (content));
        } else {
            throw new DocumentBuilderException (
                    "Comments not allowed here.");
        }
    }
View Full Code Here

TOP

Related Classes of hu.jokeman.xparser.document.XMLNode

Copyright © 2018 www.massapicom. 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.