1

does javascript has native xml api?

0

3 Answers 3

2

Mozilla implementations of JavaScript (Rhino and Spidermonkey) includes an extension to the standard JavaScript syntax that adds a native syntax for XML: https://developer.mozilla.org/en/e4x

This can allow declarative creation of XML literals (which can span multiple lines - a nice workaround for js's lack of support for multi-line strings), as well as a syntax for XPath-like querying.

Sign up to request clarification or add additional context in comments.

Comments

1

No. XML and DOM functionality are provided by the browser. Use something like XML for <SCRIPT> if you need it independent of a browser.

Comments

0

I stand corrected, but i think most of JavaScript's DOM api can be used to access an XML document.

1 Comment

It can, but it isn't a native api.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.