Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add XML namespace support for MSIE #2

Open
dnewcome opened this issue Apr 20, 2010 · 1 comment
Open

Add XML namespace support for MSIE #2

dnewcome opened this issue Apr 20, 2010 · 1 comment

Comments

@dnewcome
Copy link
Owner

Current implementation of Jath for MSIE does not resolve namespaces. XML namespace support should be added to bring MSIE to parity with the other supported browsers.

See test cases 8 on. Namespaces specified as part of the XPath query will work, but prefixes that require a resolver will not work currently.

@dnewcome
Copy link
Owner Author

Adding a resolver to an xml document in MSIE looks something like this:

xmldoc.setProperty("SelectionNamespaces",
"xmlns:wrox='http://www.wrox.com/' xmlns='http://www.amazon.com/'");
var book = xmldoc.documentElement.selectSingleNode("wrox:book");

Note that the resolver list is added as a property of the xml document that we wish to parse using jath.

From:
http://www.nczonline.net/blog/2009/04/04/xpath-in-javascript-part-3/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant