Package com.liferay.portal.kernel.xml
Class SAXReaderUtil
Object
com.liferay.portal.kernel.xml.SAXReaderUtil
- Author:
- Brian Wing Shun Chan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute
createAttribute
(Element element, QName qName, String value) static Attribute
createAttribute
(Element element, String name, String value) static Document
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, String data) static ProcessingInstruction
createProcessingInstruction
(String target, Map<String, 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, String prefix, String namespace) static XPath
createXPath
(String xPathExpression, Map<String, String> namespaceContextMap) static SAXReader
static Document
static Document
static Document
read
(InputStream inputStream) static Document
read
(InputStream inputStream, boolean validate) static Document
static Document
static Document
static Document
static Document
static Document
static Document
static Document
static Document
selectNodes
(String xPathFilterExpression, Node node) selectNodes
(String xPathFilterExpression, List<Node> nodes) void
setSAXReader
(SAXReader saxReader) static void
static void
-
Constructor Details
-
SAXReaderUtil
public SAXReaderUtil()
-
-
Method Details
-
createAttribute
-
createAttribute
-
createDocument
-
createDocument
-
createDocument
-
createElement
-
createElement
-
createEntity
-
createNamespace
-
createNamespace
-
createProcessingInstruction
public static ProcessingInstruction createProcessingInstruction(String target, Map<String, String> data) -
createProcessingInstruction
-
createQName
-
createQName
-
createText
-
createXPath
-
createXPath
-
createXPath
-
getSAXReader
-
read
- Throws:
DocumentException
-
read
- Throws:
DocumentException
-
read
- Throws:
DocumentException
-
read
- Throws:
DocumentException
-
read
- Throws:
DocumentException
-
read
- Throws:
DocumentException
-
read
- Throws:
DocumentException
-
read
- Throws:
DocumentException
-
read
- Throws:
DocumentException
-
read
- Throws:
DocumentException
-
read
- Throws:
DocumentException
-
readURL
-
readURL
public static Document readURL(String url, boolean validate) throws DocumentException, MalformedURLException -
selectNodes
-
selectNodes
-
sort
-
sort
-
setSAXReader
-