You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parse2.parse(""+config.getChildren().toXMLString()+ "") // this will fail since after parsing the xml once and then using toXMlString() to create the DOM object again with unescape character is causing it to fail.
The text was updated successfully, but these errors were encountered:
String xml = "<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"\n"
2001:db8:2000:2000::33\n"+ " message-id="3">\n"
+ " <edit-config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">\n"
+ " \n"
+ " \n"
+ " \n"
+ " \n"
+ " \n"
+ " QAZxswedcvgfyjuegrthnyjmkergthyjuerghtyjuerghtyc@#$%^&()(&^%$#@~QWERTYUIOPLKJHGFDSAZXCVBNM<>\n"
+ " example.com\n"
+ " 2001:db8:3000:3000::42\n"
+ " \n"
+ "
+ " \n"
+ " \n"
+ " \n"
+ " \n"
+ " \n"
+ " \n"
+ " \n"
+ "";
XMLParser parser=new XMLParser();
com.tailf.jnc.Element parse2=parser.parse( String xml);
com.tailf.jnc.Element config=parse2.getChild("?").getChild("");
System.out.println("Children Parser "+ config.getChildren().toXMLString());
parse2.parse(""+config.getChildren().toXMLString()+ "") // this will fail since after parsing the xml once and then using toXMlString() to create the DOM object again with unescape character is causing it to fail.
The text was updated successfully, but these errors were encountered: