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

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

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, 2014 in Other/Legacy by bitWise New to the Community (0 points)
edited Apr 12, 2014 by bitWise

Please log in or register to answer this question.