Uses of Class org.gjt.xpp.XmlPullParserException

Uses in package org.gjt.xpp

Methods which throw type org.gjt.xpp.XmlPullParserException

void
XmlStartTag.addAttribute(String namespaceUri, String localName, String rawName, String value)
parameters modeled after SAX2 attribute approach
void
XmlStartTag.addAttribute(String namespaceUri, String localName, String rawName, String value, boolean isNamespaceDeclaration)
Parameter isNamespaceDeclaration if true indicates that attribute is related to namespace management and may be ignored by normal processing

NOTE: this class has no support for resolving namespaces and such support may be added later (see XmlNode and namespaces methids)

void
XmlNode.addDeclaredNamespaces(String[] prefix, int off, int len, String[] namespaceUri)
NOTE: node SHOULD NOT keep references to passed arrays!
void
XmlNode.addNamespaceDeclaration(String prefix, String namespaceUri)
void
XmlNode.appendChild(Object child)
void
Pre-allocate if necessary tag data structure to hold at least minCapacity attributes .
void
void
int
Return how big is content.
byte
Returns the type of the current element (START_TAG, END_TAG, CONTENT, etc)
Writer
XmlPullParser
Get parser that is use to build this node tree and this pull node becomes finished - the caller is responsibile to move pull parser state to the end tag of this node (or parent pull node will be left in unconsistent state!!!!).
String
XmlNode.getQNameLocal(String qName)
Return local part of qname.
String
Return local part of qname.
String
XmlNode.getQNameUri(String qName)
Return uri part of qname.
String
XmlPullParser.getQNameUri(String qName)
Return uri part of qname.
void
XmlNode.insertChildAt(int pos, Object child)
boolean
Check if last CONTENT contained only whitespace characters.
void
XmlTag.modifyTag(String namespaceURI, String localName, String rawName)
Modify tag to have namespace URI, localName and rawName.
String
XmlNode.namespace2Prefix(String namespaceUri)
return prefix for namesapce searching node tree upward.
XmlEndTag
Create new end tag.
XmlFormatter
Return new XML formatter.
XmlPullParserFactory
Get a new instance of a PullParserFactory used to create XPP.
XmlPullParserFactory
XmlPullParserFactory.newInstance(Class classLoaderCtx)
Get a new instance of a PullParserFactory used to create XPP.
XmlPullParserFactory
XmlPullParserFactory.newInstance(String factoryClassName)
Get a new instance of a PullParserFactory from given class name.
XmlNode
context sensitive factory method to create the same type of node
XmlNode
context sensitive factory method to create the same type of node
XmlNode
Return new XML node.
XmlNode
XmlNode.newNode(String amespaceUri, String localName)
XmlNode
Return new XML node that is represeting tree from current pull parser start tag.
XmlPullNode
XmlPullNode
Return new XML pull node that is represeting tree from current pull parser start tag.
XmlPullParser
Create new XML pull parser.
XmlRecorder
Return new XML recorder.
XmlStartTag
Return new XML start tag.
byte
Get next parsing event.
String
XmlNode.prefix2Namespace(String prefix)
return namespace for prefix searching node tree upward.
void
Read all reminaing children up to end tag.
String
Read current content as Stirng.
void
XmlNode.readDeclaredNamespaceUris(String[] uris, int off, int len)
void
XmlNode.readDeclaredPrefixes(String[] prefixes, int off, int len)
void
Read current end tag.
void
XmlPullParser.readNamespacesPrefixes(int depth, String[] prefixes, int off, int len)
Return namespace prefixes for element at depth
void
XmlPullParser.readNamespacesUris(int depth, String[] uris, int off, int len)
Return namespace URIs for element at depth
Object
This is preferred method to pull children (children() requires .wrapping object Enumeration).
XmlNode
Equivalent to calling readNode(reader, false);
XmlNode
XmlPullParserFactory.readNode(Reader reader, boolean closeAtEnd)
Read XmlNode from input - essentially it is utility function that will create instance of pull parser, feed input inpt it and return new node tree parsed form the input.
byte
Read subtree into node: call readNodeWithoutChildren and then parse subtree adding children (values obtained with readXontent or readNodeWithoutChildren).
void
Read node: it calls readStartTag and then if parser is namespaces aware currently declared nemaspeces will be added and defaultNamespace will be set.
void
Read current start tag.
boolean
XmlStartTag.removeAttributeByName(String uri, String localName)
This method tries to remove attribute identified by namespace uti and local name.
boolean
This method tries to remove attribute identified by raw name.
void
remove all atribute
void
void
Removes all children - every child that was implementing XmlNode will have set parent to null.
void
void
XmlNode.replaceChildAt(int pos, Object child)
void
Reset the parser state.
void
Allow for mixed element content.
void
void
XmlNode.setDefaultNamespaceUri(String defaultNamespaceUri)
Set default namesapce URI (xmlns='....')
void
void
Set the input for parser.
void
XmlPullParser.setInput(char[] buf)
Set the input for parser.
void
XmlPullParser.setInput(char[] buf, int off, int len)
Set the input for parser.
void
Make parser to report xmlns* attributes.
void
Indicate that the parser understands XML Namespaces

NOTE: this is not resetable parameter.

void
Specifies that the parser produced by this factory will provide support for XML namespaces.
void
XmlRecorder.setOutput(Writer out)
void
void
Reset pull node to use pull parser.
void
void
byte
Goes directly to the next sibling

NOTE: parser must be on START_TAG event.

void
XmlRecorder.write(Object o)
void
void
void
void
XmlPullParserFactory.writeNode(XmlNode node, Writer writer)
Equivalent to calling writeNode(node, writer, false);
void
XmlPullParserFactory.writeNode(XmlNode node, Writer writer, boolean closeAtEnd)
void
void
void
void

Copyright (c) 2003 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.

Note this package is deprecated by XPP3 that implements XmlPull API