I developed the application in Android 2.2, and my clients want me to support it on 2.1 Therefore, I have a dependency on XML parsing because I use the following code:
XPathFactory factory = XPathFactory.newInstance();
XPath xpath = factory.newXPath();
xpath.setNamespaceContext(new PersonalNamespaceContext());
XPathExpression expr = xpath.compile(CCRKEY1);
Object result = expr.evaluate(doc, XPathConstants.NODESET);
Now in 2.1 I can not get access to XPathFactory, XPath, XPathExpression
So, what can be similar techniques to replace them in 2.1 ??
Thank,
source
share