public class XmlFieldExtractor extends Object
| Constructor and Description |
|---|
XmlFieldExtractor()
Constructor.
|
public Map<String,String> extract(InputStream xml, String[] fields)
For example, for the xml: <xml><bar>BAR</bar></xml></code> and
field "bar", this class return a map with key "bar" and value "BAR".
xml - Stream of XML to process.fields - List of fields to look for.Copyright © 2015. All Rights Reserved.