Package hu.jokeman.xparser.impl.document.nodes

Examples of hu.jokeman.xparser.impl.document.nodes.Comment


    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.impl.document.nodes.Comment

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.