Closed hshorter closed 11 years ago
Looks like I was using the wrong parser. When using the YangXMLParser the correct class types are used. Not sure why there are two XMLParsers though?
@hshorter thanks, I met the same problem, YangXMLParser is the right answer
When saving XML we will need to parse this back into a NodeSet with our own types in. The code below shows casting an Element to an Equipment type after reading from a device. (The use of the 'delimeter' will be explained in another bug). The cast is successful on the NodeSet returned from the NetconfSession, but when I try to save that XML and use it to build a new NodeSet the children are all Elements and cannot be cast into our model types.