Code example for XPathExpressionException

Methods: printStackTrace

0
					mConfig.getOwnerDocument(), XPathConstants.NODESET);
 
			if (classnodeList.getLength() > 0)
				classnode = (Element) classnodeList.item(0);
		} catch (XPathExpressionException e) {
			e.printStackTrace();
		} 
 
		return classnode;
	} 
 
	public XsdElement getElement(String className) {
		String xPathStr = "//xs:complexType[@name='" + className + "']";
		Element x = getDef(xPathStr);
		return new XsdElement(this, x);
	} 
 
	public XsdElement getAttributeGroupDef(String groupName) {
		String xPathStr = "//xs:attributeGroup[@name='" + groupName + "']";
		Element x = getDef(xPathStr);
		return new XsdElement(this, x);