{"title":"XmlDocumentType data type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/xmldocumenttype/xmldocumenttype-data-type/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/xmldocumenttype/xmldocumenttype-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/xmldocumenttype/xmldocumenttype-data-type","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Represents an XML document type.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Static methods","slug":"static-methods","at":93,"chars":526},{"level":2,"title":"Instance methods","slug":"instance-methods","at":619,"chars":2938},{"level":2,"title":"Related information","slug":"related-information","at":3557,"chars":117}],"text":"> Version: _Available or changed with runtime version 1.0._\nRepresents an XML document type.\n## Static methods\nThe following methods are available on the XmlDocumentType data type.\nMethod name|Description\nCreate(Text)<xmldocumenttype-create-string-method>|Creates an XmlDocumentType node.\nCreate(Text, Text)<xmldocumenttype-create-string-string-method>|Creates an XmlDocumentType node.\nCreate(Text, Text, Text)<xmldocumenttype-create-string-string-string-method>|Creates an XmlDocumentType node.\nCreate(Text, Text, Text, Text)<xmldocumenttype-create-string-string-string-string-method>|Creates an XmlDocumentType node.\n## Instance methods\nThe following methods are available on instances of the XmlDocumentType data type.\nMethod name|Description\nAddAfterSelf(Any,...)<xmldocumenttype-addafterself-method>|Adds the specified content immediately after this node.\nAddBeforeSelf(Any,...)<xmldocumenttype-addbeforeself-method>|Adds the specified content immediately before this node.\nxmldocumenttype-asxmlnode-method|Converts the node to an XmlNode.\nGetDocument(var XmlDocument)<xmldocumenttype-getdocument-method>|Gets the XmlDocument for this node.\nGetInternalSubset(var Text)<xmldocumenttype-getinternalsubset-method>|Gets the internal subset for this Document Type Definition (DTD).\nGetName(var Text)<xmldocumenttype-getname-method>|Gets the name for this Document Type Definition (DTD).\nGetParent(var XmlElement)<xmldocumenttype-getparent-method>|Gets the parent XmlElement of this node.\nGetPublicId(var Text)<xmldocumenttype-getpublicid-method>|Gets the public identifier for this Document Type Definition (DTD).\nGetSystemId(var Text)<xmldocumenttype-getsystemid-method>|Gets the system identifier for this Document Type Definition (DTD).\nxmldocumenttype-remove-method|Removes this node from its parent element.\nReplaceWith(Any,...)<xmldocumenttype-replacewith-method>|Replaces this node with the specified content.\nSelectNodes(Text, var XmlNodeList)<xmldocumenttype-selectnodes-string-xmlnodelist-method>|Selects a list of nodes matching the XPath expression.\nSelectNodes(Text, XmlNamespaceManager, var XmlNodeList)<xmldocumenttype-selectnodes-string-xmlnamespacemanager-xmlnodelist-method>|Selects a list of nodes matching the XPath expression.\nSelectSingleNode(Text, var XmlNode)<xmldocumenttype-selectsinglenode-string-xmlnode-method>|Selects the first XmlNode that matches the XPath expression.\nSelectSingleNode(Text, XmlNamespaceManager, var XmlNode)<xmldocumenttype-selectsinglenode-string-xmlnamespacemanager-xmlnode-method>|Selects the first XmlNode that matches the XPath expression.\nSetInternalSubset(Text)<xmldocumenttype-setinternalsubset-method>|Sets the internal subset for this Document Type Definition (DTD).\nSetName(Text)<xmldocumenttype-setname-method>|Sets the name for this Document Type Definition (DTD).\nSetPublicId(Text)<xmldocumenttype-setpublicid-method>|Sets the public identifier for this Document Type Definition (DTD).\nSetSystemId(Text)<xmldocumenttype-setsystemid-method>|Sets the system identifier for this Document Type Definition (DTD).\nxmldocumenttype-writeto-outstream-method|Serializes and saves the current node to the given variable.\nxmldocumenttype-writeto-xmlwriteoptions-outstream-method|Serializes and saves the current node to the given variable.\nWriteTo(var Text)<xmldocumenttype-writeto-text-method>|Serializes and saves the current node to the given variable.\nWriteTo(XmlWriteOptions, var Text)<xmldocumenttype-writeto-xmlwriteoptions-text-method>|Serializes and saves the current node to the given variable.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}