System.Xml.XmlParserContext.PublicId Property

Gets or sets the public identifier.

Syntax

public string PublicId { get; set; }

Value

A string specifying the public identifier.

Remarks

This property, along with XmlParserContext.DocTypeName, XmlParserContext.SystemId, and XmlParserContext.InternalSubset, provides all the document type declaration information. It is used to find and load the required DTD information so that you get all the default attributes and entities defined in the DTD.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0