Convert from SimpleXML to DOMElement
Base XML type adjustments

- Renamed NamespacedNode to XmlNode. It seems more appropriate
- Made XmlNode and DocumentedNode abstract. They should not be instantiated directly
More convert SimpleXML to DOMDocument
Code style fixes