com.liferay.portal.kernel.xml
Interface SAXReader
public interface SAXReader
Method Summary |
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 is)
|
Document |
read(InputStream is,
boolean validate)
|
Document |
read(Reader reader)
|
Document |
read(Reader reader,
boolean validate)
|
Document |
read(String xml)
|
Document |
read(String xml,
boolean validate)
|
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)
|
createAttribute
Attribute createAttribute(Element element,
QName qName,
String value)
createAttribute
Attribute createAttribute(Element element,
String name,
String value)
createDocument
Document createDocument()
createDocument
Document createDocument(Element rootElement)
createDocument
Document createDocument(String encoding)
createElement
Element createElement(QName qName)
createElement
Element createElement(String name)
createEntity
Entity createEntity(String name,
String text)
createNamespace
Namespace createNamespace(String uri)
createNamespace
Namespace createNamespace(String prefix,
String uri)
createProcessingInstruction
ProcessingInstruction createProcessingInstruction(String target,
Map<String,String> data)
createProcessingInstruction
ProcessingInstruction createProcessingInstruction(String target,
String data)
createQName
QName createQName(String localName)
createQName
QName createQName(String localName,
Namespace namespace)
createText
Text createText(String text)
createXPath
XPath createXPath(String xPathExpression)
createXPath
XPath createXPath(String xPathExpression,
Map<String,String> namespaceContextMap)
createXPath
XPath createXPath(String xPathExpression,
String prefix,
String namespace)
read
Document read(File file)
throws DocumentException
- Throws:
DocumentException
read
Document read(File file,
boolean validate)
throws DocumentException
- Throws:
DocumentException
read
Document read(InputStream is)
throws DocumentException
- Throws:
DocumentException
read
Document read(InputStream is,
boolean validate)
throws DocumentException
- Throws:
DocumentException
read
Document read(Reader reader)
throws DocumentException
- Throws:
DocumentException
read
Document read(Reader reader,
boolean validate)
throws DocumentException
- Throws:
DocumentException
read
Document read(String xml)
throws DocumentException
- Throws:
DocumentException
read
Document read(String xml,
boolean validate)
throws DocumentException
- Throws:
DocumentException
read
Document read(URL url)
throws DocumentException
- Throws:
DocumentException
read
Document read(URL url,
boolean validate)
throws DocumentException
- Throws:
DocumentException
readURL
Document readURL(String url)
throws DocumentException,
MalformedURLException
- Throws:
DocumentException
MalformedURLException
readURL
Document readURL(String url,
boolean validate)
throws DocumentException,
MalformedURLException
- Throws:
DocumentException
MalformedURLException
selectNodes
List<Node> selectNodes(String xPathFilterExpression,
List<Node> nodes)
selectNodes
List<Node> selectNodes(String xPathFilterExpression,
Node node)
sort
void sort(List<Node> nodes,
String xPathExpression)
sort
void sort(List<Node> nodes,
String xPathExpression,
boolean distinct)