# why Cannot create XmlPullParser?

**URL:** <https://forums.digi.com/t/why-cannot-create-xmlpullparser/12801>\
**Category:** Other & Legacy Products\
**Tags:** java, xstream\
**Created:** [April 13, 2014, 11:31pm UTC](https://forums.digi.com/t/why-cannot-create-xmlpullparser/12801 "2014-04-13T23:31:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitWise](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@bitWise](https://forums.digi.com/u/bitWise)\
**Post date:** [April 13, 2014, 11:31pm UTC](https://forums.digi.com/t/why-cannot-create-xmlpullparser/12801/1 "2014-04-13T23:31:45Z")

</div>

Hello

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

[b]

```auto
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
