Polyfill Xml component

Provides a fallback implementation for the following functions in the abscense of the XML extension.

Resources: Code