…XmlNode reads xml_obj->doc->_private
…ew unrelated xmlNode to avoid the crashes. DO NOT suppose child is the newly added child: in some cases it's not.
In preparation for adding support for buffers. The old names are still supported.
When an XPath expression evaluates to a boolean, number or string it gets turned into the corresponding JS value.
XPath expressions like '@attr' evaluate to a nodeset containing attributes. This would sometimes work in libxmljs (when the libxml xmlNode for an attribute already had a _private pointing to a libxmljs attribute wrapper). But in other cases you could end up with a libxmljs element wrapper wrapping a libxmljs xmlAttr. This makes it work in general.
… form for GH-124. Signed-off-by: Nick Campbell <email@example.com>
…ces() now returns root element's namespaces.