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

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


    public void addAttribute (String attrName, String attrVal)
            throws DocumentBuilderException {
        XMLNode currentNode = peek ();
        if (currentNode instanceof Element ||
                currentNode instanceof ProcessingInstruction) {
            Attribute attr = new Attribute (attrName);
            attr.setValue (attrVal);
            currentNode.addChild (attr);
        } else {
            throw new DocumentBuilderException (
                    "Attributes not allowed here.");
        }
View Full Code Here

TOP

Related Classes of hu.jokeman.xparser.impl.document.nodes.Attribute

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.