Package org.javarosa.xml
Class TreeElementParser
public class TreeElementParser extends ElementParser<TreeElement>
- Author:
- ctsims, johnthebeloved
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TreeElementParser(org.kxml2.io.KXmlParser parser, int multiplicity, String instanceId) -
Method Summary
Modifier and Type Method Description TreeElementparse()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)
-
Constructor Details
-
Method Details
-
parse
public TreeElement parse() throws InvalidStructureException, IOException, org.xmlpull.v1.XmlPullParserExceptionDescription copied from class:ElementParserParses the XML document at the current level, returning the datatype described by the document.- Specified by:
parsein classElementParser<TreeElement>- Returns:
- The datatype which is described by the appropriate XML definition.
- Throws:
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.
-
parseInternalSecondaryInstances
public List<TreeElement> parseInternalSecondaryInstances() throws InvalidStructureException, org.xmlpull.v1.XmlPullParserException, IOExceptionParses the internal instances from an XForm (excluding the main instance)- Returns:
- List of #TreeElement representation of the internal instance nodes.
- Throws:
IOException- There was an error parsing the xml fileInvalidStructureExceptionorg.xmlpull.v1.XmlPullParserException
-