Home  >  Support  >  Support Forum  >  why Cannot create XmlPullParser?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

why Cannot create XmlPullParser?

0 votes
Hello

I am trying to convert from xml file that i created back to Object.

Code:
XStream xstream = new XStream(); xstream.alias("Model", Model.class); String xml = xstream.toXML(bigMaze); System.out.println(xml); Model bigMaze9 = (Model) xstream.fromXML(xml); int x9 = bigMaze9.solveDomain(); System.out.println(x9);[/b]

that what i get:
Exception in thread "main" com.thoughtworks.xstream.io.StreamException: Cannot create XmlPullParser
at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:56)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1040)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1031)
at controller.boot.Run.main(Run.java:46)


please help
asked Apr 13 in Other/Legacy by bitWise New to the Community (0 points)
edited Apr 12 by bitWise

Please log in or register to answer this question.

Contact a Digi expert and get started today! CONTACT US
...