Added namespaces and declaration support to XmlElement.