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 AttributecreateAttribute(Element element, QName qName, String value) static AttributecreateAttribute(Element element, String name, String value) static Documentstatic DocumentcreateDocument(Element rootElement) static DocumentcreateDocument(String encoding) static ElementcreateElement(QName qName) static ElementcreateElement(String name) static EntitycreateEntity(String name, String text) static NamespacecreateNamespace(String uri) static NamespacecreateNamespace(String prefix, String uri) static ProcessingInstructioncreateProcessingInstruction(String target, String data) static ProcessingInstructioncreateProcessingInstruction(String target, Map<String, String> data) static QNamecreateQName(String localName) static QNamecreateQName(String localName, Namespace namespace) static TextcreateText(String text) static XPathcreateXPath(String xPathExpression) static XPathcreateXPath(String xPathExpression, String prefix, String namespace) static XPathcreateXPath(String xPathExpression, Map<String, String> namespaceContextMap) static SAXReaderstatic Documentstatic Documentstatic Documentread(InputStream inputStream) static Documentread(InputStream inputStream, boolean validate) static Documentstatic Documentstatic Documentstatic Documentstatic Documentstatic Documentstatic Documentstatic Documentstatic DocumentselectNodes(String xPathFilterExpression, Node node) selectNodes(String xPathFilterExpression, List<Node> nodes) voidsetSAXReader(SAXReader saxReader) static voidstatic 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
-