Search in sources :

Example 1 with XppDomReader

use of com.thoughtworks.xstream.io.xml.XppDomReader in project camel by apache.

the class MapOfMapsConverterTest method readerFor.

HierarchicalStreamReader readerFor(final String xml) throws XmlPullParserException, IOException {
    parser.setInput(new StringReader(xml));
    final XppDom dom = XppDom.build(parser);
    final HierarchicalStreamReader reader = new XppDomReader(dom);
    return reader;
}
Also used : XppDom(com.thoughtworks.xstream.io.xml.xppdom.XppDom) StringReader(java.io.StringReader) HierarchicalStreamReader(com.thoughtworks.xstream.io.HierarchicalStreamReader) XppDomReader(com.thoughtworks.xstream.io.xml.XppDomReader)

Aggregations

HierarchicalStreamReader (com.thoughtworks.xstream.io.HierarchicalStreamReader)1 XppDomReader (com.thoughtworks.xstream.io.xml.XppDomReader)1 XppDom (com.thoughtworks.xstream.io.xml.xppdom.XppDom)1 StringReader (java.io.StringReader)1