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

    return wrapper;
  }
예제 #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());
        }
예제 #3
0
 private DOMXPath(Env env, DOMDocument document)
 {
     _document = document;
 }
예제 #4
0
 public static DOMXPath __construct(Env env, DOMDocument document)
 {
     return(new DOMXPath(env, document));
 }