Hi all
I am working on android sdk 2.3.3 and am running this piece of
javascript code inside Android Web view but XPathResult seems to be
undefined.
08-09 10:38:16.976: ERROR/Web Console(336): ReferenceError: Can't find
variable: XPathResult at file:///android_asset/parseEngine.js:65
The piece of code throwing this error is
//Web-kit and FireFox Browsers
else if (document.implementation &&
document.implementation.createDocument) {
var schemaPath = "SCHEMA";
var schemaSequence = xmlDoc.evaluate(schemaPath, xmlDoc, null,
XPathResult.ANY_TYPE, null);
var schemaSequenceResult = schemaSequence.iterateNext();
if I try to replace XPathResult.ANY_TYPE by 0 or 4 I get TypeError..
I have seen this issue raised on this forum but no answers, Please can
somebody post a resolution or workaround if they have one..
Thanks
Bhavna
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en