use of us.parr.bookish.parse.XMLParser in project bookish by parrt.
the class Translator method parseXMLAttrs.
public static Map<String, String> parseXMLAttrs(String attrs) {
XMLLexer lexer = new XMLLexer(CharStreams.fromString(attrs));
CommonTokenStream tokens = new CommonTokenStream(lexer);
XMLParser parser = new XMLParser(tokens);
XMLParser.AttrsContext attrsTree = parser.attrs();
Map<String, String> attrMap = attrsTree.attrMap;
return attrMap;
}
Aggregations