public class YangXMLParser extends XMLParser
YangElement tree.
This parser is data model aware and will try to construct classes that are generated by the JNC pyang plugin.
| Constructor and Description |
|---|
YangXMLParser()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
parse(org.xml.sax.InputSource is)
Parses an XML string returning a configuration tree from it,
instantiating an ElementHandler to use as content handler.
|
YangElement |
readFile(java.lang.String filename)
Read in an XML file, parse it using an ElementHandler as content
handler, and return the parsed YangElement tree.
|
public YangXMLParser()
throws JNCException
JNCExceptionpublic YangElement readFile(java.lang.String filename) throws JNCException
readFile in class XMLParserJNCExceptionpublic Element parse(org.xml.sax.InputSource is) throws JNCException
parse in class XMLParseris - Input source (byte stream) where the XML text is read fromJNCException