| Issue 3: | Unable to readList with XmlReader in Chrome (v7 or v8) |
1 of 3
Next ›
|
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. Create a simple xml document with multiple elements
2. Attempt to use XmlReader.readList
What is the expected output? What do you see instead?
Expect to get a List of objects returned, exception encountered instead
name.pehl.totoe.xml.client.XPathException: (Error): TypeError: Object #<an Element> has no method 'selectSingleNode' stack: Error: TypeError: Object #<an Element> has no method 'selectSingleNode' at [object Object].<anonymous> (unknown source) at __gwt_jsInvoke
What version of the product are you using? On what operating system?
piriti-core 0.6.2 / totoe 0.2.1
Please provide any additional information below.
I believe this is caused by using the Node.selectValue(xpath) method in Totoe. I can replicate this same behavior by using Totoe directly:
List<Node> rootChildren = doc.getRoot().getChildren();
for (Node element : rootChildren) {
if (element instanceof Element) {
String value = element.selectValue("//author"); //FAIL
}
}
I have a simple project that can reproduce this behavior that I can share.
Issue was moved from https://code.google.com/p/piriti/issues/detail?id=21 to Totoe since it is related to XmlParser / Sarissa.
Dec 26, 2010
Issue 1 has been merged into this issue.
Feb 18, 2011
Implemented the bugfix from Greg.
Status:
Fixed
|
5.3 KB View Download