awsXML::_constructor

Back awsXML __construct( mixed $from, string $encoding)

Where $from can be:
- string: build an awsXML object from the given sting;
- DOMDocument: build an awsXML using this DOMDocument; default context will be $from DOMDocument;
- DOMNode: build an awsXML using this DOMNode->ownerDocument; default context will be $from DOMNode;
- DOMElement: build an awsXML using this DOMNode->ownerDocument; default context will be $from DOMElement;
- awsXML: build an awsXML using doc property of $from object; default context will be doc DOMDocument;

Why setting up a default context:
- DOMXpath::query and DOMXpath::evaluate have two parameters, selector and context;
When setting up a default context, each time when a query is made, context parameter of DOMXpath::query or DOMXpath::evaluate will be default one, if no other specified when calling awsXML::q or awsXML::e or awsXML::cssq or awsXML::csse;