public class XmlReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE |
static int |
CDATA |
static int |
COMMENT |
static int |
DEFAULTATTRS |
static int |
DOC |
static int |
DOC_FRAGMENT |
static int |
DOC_TYPE |
static int |
ELEMENT |
static int |
END_ELEMENT |
static int |
END_ENTITY |
static int |
ENTITY |
static int |
ENTITY_REF |
static int |
LOADDTD |
static int |
NONE |
static int |
NOTATION |
static int |
PI |
static int |
SIGNIFICANT_WHITESPACE |
static int |
SUBST_ENTITIES |
static int |
TEXT |
static int |
VALIDATE |
static int |
WHITESPACE |
static int |
XML_DECLARATION |
Constructor and Description |
---|
XmlReader(java.lang.String[] string)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
BooleanValue |
close()
Closes the reader.
|
Value |
expand() |
StringValue |
getAttribute(java.lang.String name) |
Value |
getAttributeCount()
Returns the number of attributes of the current element.
|
StringValue |
getAttributeNo(int index) |
StringValue |
getAttributeNS(java.lang.String localName,
java.lang.String namespaceURI) |
Value |
getBaseURI()
Returns the base uniform resource locator of the current element.
|
Value |
getDepth()
Returns the depth of the current element.
|
Value |
getHasAttributes()
Determines whether this element has attributes.
|
Value |
getHasValue()
Determines whether this element has content.
|
Value |
getIsDefault()
Determines whether this element is default.
|
Value |
getIsEmptyElement()
Determines whether this element is empty.
|
Value |
getLocalName()
Determines whether this element has attributes.
|
Value |
getName(Env env)
Returns the name of the current element.
|
Value |
getNamespaceURI()
Returns the namespace uniform resource locator of the current element.
|
LongValue |
getNextType() |
Value |
getNodeType()
Returns the node type of the current element.
|
BooleanValue |
getParserProperty(int property) |
Value |
getPrefix()
Returns the prefix of the current element.
|
Value |
getValue()
Returns the value of the current element.
|
Value |
getXmlLang()
Returns the node type of the current element.
|
BooleanValue |
isValid() |
BooleanValue |
lookupNamespace(java.lang.String prefix) |
BooleanValue |
moveToAttribute(java.lang.String name) |
BooleanValue |
moveToAttributeNo(int index) |
BooleanValue |
moveToAttributeNs(java.lang.String localName,
java.lang.String namespaceURI) |
BooleanValue |
moveToElement() |
BooleanValue |
moveToFirstAttribute() |
BooleanValue |
moveToNextAttribute() |
BooleanValue |
next(java.lang.String localname) |
BooleanValue |
open(Env env,
Path path)
Opens a stream using the uniform resource locator.
|
BooleanValue |
read(Env env)
Moves the cursor to the next node.
|
BooleanValue |
setParserProperty(int property,
boolean value) |
BooleanValue |
setRelaxNGSchema(java.lang.String filename) |
BooleanValue |
setRelaxNGSchemaSource(java.lang.String source) |
BooleanValue |
XML(java.lang.String source) |
public static final int NONE
public static final int ELEMENT
public static final int ATTRIBUTE
public static final int TEXT
public static final int CDATA
public static final int ENTITY_REF
public static final int ENTITY
public static final int PI
public static final int COMMENT
public static final int DOC
public static final int DOC_TYPE
public static final int DOC_FRAGMENT
public static final int NOTATION
public static final int WHITESPACE
public static final int SIGNIFICANT_WHITESPACE
public static final int END_ELEMENT
public static final int END_ENTITY
public static final int XML_DECLARATION
public static final int LOADDTD
public static final int DEFAULTATTRS
public static final int VALIDATE
public static final int SUBST_ENTITIES
public XmlReader(java.lang.String[] string)
string
- not usedpublic Value getAttributeCount()
public Value getBaseURI()
public Value getDepth()
public Value getHasAttributes()
public Value getHasValue()
public Value getIsDefault()
public Value getIsEmptyElement()
public Value getLocalName()
public Value getName(Env env)
public Value getNamespaceURI()
public Value getNodeType()
public Value getPrefix()
public Value getValue()
public Value getXmlLang()
public BooleanValue close()
public Value expand()
public StringValue getAttribute(java.lang.String name)
name
- public StringValue getAttributeNo(int index)
index
- public StringValue getAttributeNS(java.lang.String localName, java.lang.String namespaceURI)
localName
- namespaceURI
- public BooleanValue getParserProperty(int property)
property
- public BooleanValue isValid()
public BooleanValue lookupNamespace(java.lang.String prefix)
prefix
- public BooleanValue moveToAttribute(java.lang.String name)
name
- public BooleanValue moveToAttributeNo(int index)
index
- public BooleanValue moveToAttributeNs(java.lang.String localName, java.lang.String namespaceURI)
localName
- namespaceURI
- public BooleanValue moveToElement()
public BooleanValue moveToFirstAttribute()
public BooleanValue moveToNextAttribute()
public BooleanValue next(java.lang.String localname)
localname
- public BooleanValue open(Env env, Path path)
uri
- uniform resource locator to openpublic BooleanValue read(Env env)
public LongValue getNextType()
public BooleanValue setParserProperty(int property, boolean value)
property
- value
- public BooleanValue setRelaxNGSchema(java.lang.String filename)
filename
- public BooleanValue setRelaxNGSchemaSource(java.lang.String source)
source
- public BooleanValue XML(java.lang.String source)
source
-