At least then you'll have ideas about which problems you might run into
- and in how many cases.
Maybe somebody else has better ideas.
Marc Weber
On 03/03/2012 05:13 PM, David Peek wrote:
> I understand the RegEx based parser was built to address differences
> in browser XML parsing. Has the browser landscape changed enough for
> us to remove this fallback?
There's still no standard for XML parsing as far as I know. DOMParser
doesn't work in IE, but it looks like their API is similar enough.
We should keep the regex based parser as a fallback if there's no
available native API, for non-browser environments like nodeJS.
Could you open an issue for this?
Bruno
Well, I think the RegEx parser could be optimized by using one single
regexp check in the form (node|pcdata|cdata|...) instead of trying the
different ones.
We could also port the Neko XML parser (written in C here :
http://nekovm.googlecode.com/svn/trunk/libs/std/xml.c) that should be
faster than Regexp (I guess) on most modern browsers.
Providing an alternative not-crossplatform js-specific XML parser (in
js.FastXml or something) is also a solution but not my favorite :)
Best,
Nicolas