Exemple #1
0
  DOMDocument createWrapper(Document node)
  {
    DOMDocument wrapper = new DOMDocument(this, node);
    _wrapperMap.put(node, wrapper);

    return wrapper;
  }
Exemple #2
0
        public static DOMElement dom_import_simplexml(Env env, SimpleXMLElement node)
        {
            if (node == null)
            {
                return(null);
            }

            DOMDocument document = DOMDocument.__construct(env, "1.0", null);

            Value xml = node.asXML(env, DefaultValue.DEFAULT);

            document.loadXML(env, xml.ToStringValue(env), DefaultValue.DEFAULT);

            return(document.getDocumentElement());
        }
 private DOMXPath(Env env, DOMDocument document)
 {
     _document = document;
 }
 public static DOMXPath __construct(Env env, DOMDocument document)
 {
     return(new DOMXPath(env, document));
 }