public class MXStAXParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MXStAXParser.XMLElementValue |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
evaluateXPath(byte[] data,
java.lang.String xpath,
java.util.Map<java.lang.String,java.lang.String> prefixNSMap) |
java.util.List<java.lang.String> |
evaluateXPath(byte[] data,
XPathExpression xpathExpr) |
java.util.List<java.lang.String> |
evaluateXPath(java.io.InputStream xmlStream,
XPathExpression xpathExpr) |
static MXStAXParser |
getInstance() |
javax.xml.namespace.QName |
getRootElementName(byte[] data) |
java.util.Map<javax.xml.namespace.QName,MXStAXParser.XMLElementValue> |
parse(byte[] data,
java.util.Set<javax.xml.namespace.QName> tags) |
java.util.Map<javax.xml.namespace.QName,MXStAXParser.XMLElementValue> |
parse(byte[] data,
java.util.Set<javax.xml.namespace.QName> tags,
boolean fetchAttrs) |
java.util.Map<javax.xml.namespace.QName,MXStAXParser.XMLElementValue> |
parse(java.io.InputStream ip,
java.util.Set<javax.xml.namespace.QName> tags,
boolean fetchAttrs) |
byte[] |
removeXMLComments(byte[] xmlWithComments) |
public static final MXStAXParser getInstance()
public javax.xml.namespace.QName getRootElementName(byte[] data) throws MXException
data
- MXException
public java.util.Map<javax.xml.namespace.QName,MXStAXParser.XMLElementValue> parse(byte[] data, java.util.Set<javax.xml.namespace.QName> tags) throws javax.xml.stream.XMLStreamException
data
- tags
- javax.xml.stream.XMLStreamException
public java.util.Map<javax.xml.namespace.QName,MXStAXParser.XMLElementValue> parse(byte[] data, java.util.Set<javax.xml.namespace.QName> tags, boolean fetchAttrs) throws javax.xml.stream.XMLStreamException
data
- tags
- fetchAttrs
- javax.xml.stream.XMLStreamException
public java.util.Map<javax.xml.namespace.QName,MXStAXParser.XMLElementValue> parse(java.io.InputStream ip, java.util.Set<javax.xml.namespace.QName> tags, boolean fetchAttrs) throws javax.xml.stream.XMLStreamException
ip
- tags
- fetchAttrs
- javax.xml.stream.XMLStreamException
public java.util.List<java.lang.String> evaluateXPath(byte[] data, java.lang.String xpath, java.util.Map<java.lang.String,java.lang.String> prefixNSMap) throws MXException
MXException
public java.util.List<java.lang.String> evaluateXPath(java.io.InputStream xmlStream, XPathExpression xpathExpr) throws MXException
MXException
public java.util.List<java.lang.String> evaluateXPath(byte[] data, XPathExpression xpathExpr) throws MXException
data
- the xml bytesxpathExpr
- the xpath expressionjavax.xml.stream.XMLStreamException
MXException
public byte[] removeXMLComments(byte[] xmlWithComments)
xmlWithComments
-