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