XdmWriter.WriteDocType MethodXdmWriter.WriteDocType MethodXdmWriter::WriteDocType Method
Writes the DOCTYPE declaration with the specified name and optional attributes.
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Syntax
Parameters
- name
Type: System.StringSystem.StringSystem::String^
The name of the DOCTYPE. This must be non-empty.
- pubid
Type: System.StringSystem.StringSystem::String^
If non-null it also writes PUBLIC "pubid" "sysid" where pubid and sysid are replaced with the value of the given arguments.
- sysid
Type: System.StringSystem.StringSystem::String^
If pubid is null and sysid is non-null it writes SYSTEM "sysid" where sysid is replaced with the value of this argument.
- subset
Type: System.StringSystem.StringSystem::String^
If non-null it writes [subset] where subset is replaced with the value of this argument.
Exceptions
Exception | Condition |
InvalidOperationExceptionInvalidOperationExceptionInvalidOperationException | This method was called outside the prologue (after the root element). |
ArgumentExceptionArgumentExceptionArgumentException | The value for name would result in invalid XML. |