I want to create constructor which takes xml as string and all variables would be fill from that. That xml is created by XStream so I think that something like this would work but don´t know what to add to left side: 

```
    public xmlpacket(String xml)
    {
        XStream xstream = new XStream(new DomDriver());
       .... =  (xmlpacket)xstream.fromXML(xml);
    }

```

Thank you