public class XML extends Object
| Constructor and Description |
|---|
XML() |
XML(boolean XIncludeAware) |
XML(File xmlfile) |
XML(File xmlfile,
boolean XIncludeAware) |
XML(File xmlfile,
String roottag) |
XML(File xmlfile,
String roottag,
boolean XIncludeAware) |
XML(InputStream is) |
XML(InputStream is,
boolean XIncludeAware) |
XML(String roottag) |
XML(String roottag,
boolean XIncludeAware) |
protected Logger logger
public XML()
public XML(boolean XIncludeAware)
public XML(String roottag)
public XML(String roottag, boolean XIncludeAware)
public XML(File xmlfile) throws IOException
IOExceptionpublic XML(File xmlfile, boolean XIncludeAware) throws IOException
IOExceptionpublic XML(File xmlfile, String roottag) throws IOException
IOExceptionpublic XML(File xmlfile, String roottag, boolean XIncludeAware) throws IOException
IOExceptionpublic XML(InputStream is)
public XML(InputStream is, boolean XIncludeAware)
public Element appendElement(Element e)
e - public Element appendElement(Element e, Element root)
e - root - public Element createElement(String tagName)
tagName - The tag name of the elementpublic Element createElement(String tagName, Element root)
tagName - The tag name of the elementroot - The root element of the new elementpublic Element getRoot()
public Element getFirstElement(String tag) throws DOMException
DOMExceptionpublic Element getFirstElement(Element e, String tag) throws DOMException
DOMExceptionpublic List<Element> getElementsWithAttribute(Element e, String attr, String name)
public List<Element> getElementsWithAttribute(Element e, String tag, String attr, String name)
public String getXML()
public Source getXMLAsSource()
public String transform(Source xmlSource, StreamSource xsltSource, File output)
public void saveState(File filename)
Copyright © 2018. All rights reserved.