CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ | 
| LangLanguage | Obj-CObjective C | 
| License | MIT | 
| ReleasedLast Release | Nov 2015 | 
Maintained by Artem Yarulin.
| Depends on: | |
| GDataXML-HTML | = 1.3.0 | 
| React | > 0.10.0 | 
React native compatable XML/HTML parser with XPath support
let xml = require('react-native').NativeModules.RNMXml
xml.queryXml('<doc a="V1">V2</doc>',
            ['/doc/@a', '/doc'],
            results => results.map(nodes => console.log(nodes[0])))
// Output:
//  V1
//  V2queryXml(xmlString,queries) -> results
queryHtml(htmlString,queries) -> results
xmlString|htmlString - xml or html stringqueries - array of xpath strings which would be executed against xml stringresults - array of results such as queries.length == results.length. Each result is an array as welllet xml = require('react-native').NativeModules.RNMXml
xml.queryHtml('<html><div>a</div><div>b</div></html>',
             ['/html/body/div'],
             results => console.log(results[0]))
//Output: ['a','b']
parseString(string,isHtml) -> parsedTree
Where parsedTree is a dictionary (inspired by Clojure data.xml) with a structure:
{"tag":"tagName",
 "attrs:{"attrName":"attrValue"},
 "content":[either text content or the same structure for each childs]}
See tests for more information
Using Cocoapods:
pod 'react-native-xml', '0.2.1'