@ProviderType
public class SAXReaderUtil
extends Object
Constructor and Description |
---|
SAXReaderUtil() |
Modifier and Type | Method and Description |
---|---|
static Attribute |
createAttribute(Element element,
QName qName,
String value) |
static Attribute |
createAttribute(Element element,
String name,
String value) |
static Document |
createDocument() |
static Document |
createDocument(Element rootElement) |
static Document |
createDocument(String encoding) |
static Element |
createElement(QName qName) |
static Element |
createElement(String name) |
static Entity |
createEntity(String name,
String text) |
static Namespace |
createNamespace(String uri) |
static Namespace |
createNamespace(String prefix,
String uri) |
static ProcessingInstruction |
createProcessingInstruction(String target,
Map<String,String> data) |
static ProcessingInstruction |
createProcessingInstruction(String target,
String data) |
static QName |
createQName(String localName) |
static QName |
createQName(String localName,
Namespace namespace) |
static Text |
createText(String text) |
static XPath |
createXPath(String xPathExpression) |
static XPath |
createXPath(String xPathExpression,
Map<String,String> namespaceContextMap) |
static XPath |
createXPath(String xPathExpression,
String prefix,
String namespace) |
static SAXReader |
getSAXReader() |
static Document |
read(File file) |
static Document |
read(File file,
boolean validate) |
static Document |
read(InputStream is) |
static Document |
read(InputStream is,
boolean validate) |
static Document |
read(Reader reader) |
static Document |
read(Reader reader,
boolean validate) |
static Document |
read(String xml) |
static Document |
read(String xml,
boolean validate) |
static Document |
read(String xml,
XMLSchema xmlSchema) |
static Document |
read(URL url) |
static Document |
read(URL url,
boolean validate) |
static Document |
readURL(String url) |
static Document |
readURL(String url,
boolean validate) |
static List<Node> |
selectNodes(String xPathFilterExpression,
List<Node> nodes) |
static List<Node> |
selectNodes(String xPathFilterExpression,
Node node) |
void |
setSAXReader(SAXReader saxReader) |
static void |
sort(List<Node> nodes,
String xPathExpression) |
static void |
sort(List<Node> nodes,
String xPathExpression,
boolean distinct) |
public static Document createDocument()
public static Document createDocument(String encoding)
public static Element createElement(String name)
public static Entity createEntity(String name, String text)
public static Namespace createNamespace(String uri)
public static Namespace createNamespace(String prefix, String uri)
public static ProcessingInstruction createProcessingInstruction(String target, Map<String,String> data)
public static ProcessingInstruction createProcessingInstruction(String target, String data)
public static QName createQName(String localName)
public static Text createText(String text)
public static XPath createXPath(String xPathExpression)
public static XPath createXPath(String xPathExpression, Map<String,String> namespaceContextMap)
public static XPath createXPath(String xPathExpression, String prefix, String namespace)
public static SAXReader getSAXReader()
public static Document read(File file) throws DocumentException
DocumentException
public static Document read(File file, boolean validate) throws DocumentException
DocumentException
public static Document read(InputStream is) throws DocumentException
DocumentException
public static Document read(InputStream is, boolean validate) throws DocumentException
DocumentException
public static Document read(Reader reader) throws DocumentException
DocumentException
public static Document read(Reader reader, boolean validate) throws DocumentException
DocumentException
public static Document read(String xml) throws DocumentException
DocumentException
public static Document read(String xml, boolean validate) throws DocumentException
DocumentException
public static Document read(String xml, XMLSchema xmlSchema) throws DocumentException
DocumentException
public static Document read(URL url) throws DocumentException
DocumentException
public static Document read(URL url, boolean validate) throws DocumentException
DocumentException
public static Document readURL(String url) throws DocumentException, MalformedURLException
DocumentException
MalformedURLException
public static Document readURL(String url, boolean validate) throws DocumentException, MalformedURLException
DocumentException
MalformedURLException
public static void sort(List<Node> nodes, String xPathExpression)
public static void sort(List<Node> nodes, String xPathExpression, boolean distinct)
public void setSAXReader(SAXReader saxReader)