I am looking for a parser that can work in a javascript environment where there is no access to document , DOMParser or any other browser extension. The javascript application can work in browsers (IE, Firefox, Chrome, Safari ...) in node.js, but it is designed to run mainly built-in in V8 or in SpiderMonkey. The environment is spreading without the support of conventional XML parsers, and I cannot parse a string containing the correct XML from javascript.
All libraries that rely on browser extensions, such as DOMParser and ActiveXObject , fail with messages such as ReferenceError: DOMParser is not defined .
Access to the file system is not required (I need to parse from a string into a DOM-like structure).
source share