类的使用
net.apexes.commons.xml.XmlElement
使用XmlElement的程序包
-
net.apexes.commons.xml中XmlElement的使用
修饰符和类型方法说明protected XmlElementXmlElement.createAnotherElement()Creates a new similar XML element.XmlElement.getChild(int index) XmlElement.getParent()Returns the parent of the element.static XmlElementXmls.node(XmlElement xml, String path) static XmlElementstatic XmlElementstatic XmlElementXmls.xml(InputStream input, String charsetName) static XmlElementXmls.xml(InputStream input, Charset charset) static XmlElementstatic XmlElement返回变量类型为XmlElement的类型的net.apexes.commons.xml中的方法修饰符和类型方法说明XmlElement.getChildren()Returns the child elements as a List.XmlElement.getChildren(String name) 参数类型为XmlElement的net.apexes.commons.xml中的方法修饰符和类型方法说明voidXmlElement.addChild(XmlElement child) Adds a child element.static XmlElementXmls.node(XmlElement xml, String path) static StringXmls.nodeAttr(XmlElement xml, String path, String name) static StringXmls.nodeAttr(XmlElement xml, String path, String name, String defaultValue) static StringXmls.nodeContent(XmlElement xml, String path) voidXmlElement.removeChild(XmlElement child) Removes a child element.static voidXmls.save(XmlElement xml, File xmlFile, String charsetName) static voidXmls.save(XmlElement xml, File xmlFile, Charset charset) protected voidXmlElement.scanElement(XmlElement elt) Scans an XML element.protected voidXmlElement.setParent(XmlElement parent) protected static voidXmlElement.write(Writer writer, XmlElement element, boolean standalone, int indent, int level) Writes the XML element to a writer.