Package net.sourceforge.nanoxml

Examples of net.sourceforge.nanoxml.XMLParseException


     * @throws XMLParseException if the xml element doesn't represent the given tag.
     */
    private void checkTag(XMLElement xml, String tag) {
        final String actualTag = xml.getName();
        if (!tag.equals(actualTag)) {
            throw new XMLParseException("", "tag is not '" + tag + "' (actual: '" + actualTag + "')");
        }       
    }
View Full Code Here


                    sb.append(',');
                }
                sb.append(tags[i]);
            }
            sb.append(')');
            throw new XMLParseException("", "tag is not one of " + sb.toString() + " (actual: '" + actualTag + "')");
        }
       
        return indexTag;
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.nanoxml.XMLParseException

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.