public static object createDocument([This] DOMImplementation instance, string namespaceUri, string qualifiedName, [Nullable] DOMDocumentType docType) { XmlImplementation impl = (instance != null ? instance.XmlImplementation : new XmlImplementation()); XmlDocument doc = impl.CreateDocument(); if (docType != null) { if (!docType.IsAssociated) { docType.Associate(doc); } else { DOMException.Throw(ExceptionCode.WrongDocument); return(false); } } doc.AppendChild(docType.XmlNode); doc.AppendChild(doc.CreateElement(qualifiedName, namespaceUri)); return(new DOMDocument(doc)); }
public static object hasFeature([This] DOMImplementation instance, string feature, string version) { XmlImplementation impl = (instance != null ? instance.XmlImplementation : new XmlImplementation()); return(impl.HasFeature(feature, version)); }
public static object createDocumentType([This] DOMImplementation instance, string qualifiedName, string publicId, string systemId) { return(new DOMDocumentType(qualifiedName, publicId, systemId)); }
public static void getFeature([This] DOMImplementation instance, string feature, string version) { PhpException.Throw(PhpError.Warning, Resources.NotYetImplemented); }