public class TreeElementParser extends ElementParser<TreeElement>
parser| Constructor and Description |
|---|
TreeElementParser(org.kxml2.io.KXmlParser parser,
int multiplicity,
String instanceId) |
| Modifier and Type | Method and Description |
|---|---|
TreeElement |
parse()
Parses the XML document at the current level, returning the datatype
described by the document.
|
List<TreeElement> |
parseInternalSecondaryInstances()
Parses the internal instances from an XForm (excluding the main instance)
|
instantiateParserpublic TreeElementParser(org.kxml2.io.KXmlParser parser,
int multiplicity,
String instanceId)
public TreeElement parse() throws InvalidStructureException, IOException, org.xmlpull.v1.XmlPullParserException
ElementParserparse in class ElementParser<TreeElement>InvalidStructureException - If the XML does not contain properly
structured XMLIOException - If there is a problem retrieving the documentorg.xmlpull.v1.XmlPullParserException - If the document does not contain well-
formed XML.public List<TreeElement> parseInternalSecondaryInstances() throws InvalidStructureException, org.xmlpull.v1.XmlPullParserException, IOException
IOException - There was an error parsing the xml fileInvalidStructureExceptionorg.xmlpull.v1.XmlPullParserExceptionCopyright © 2024. All rights reserved.