mscorlib(4.0.0.0) API with additions
System.Xml Namespace Reference

Classes

interface  IApplicationResourceStreamResolver
 Represents an application resource stream resolver. More...
 
interface  IHasXmlNode
 Enables a class to return an T:System.Xml.XmlNode from the current context or position. More...
 
interface  IXmlLineInfo
 Provides an interface to enable a class to return line and position information. More...
 
interface  IXmlNamespaceResolver
 Provides read-only access to a set of prefix and namespace mappings. More...
 
class  NameTable
 Implements a single-threaded T:System.Xml.XmlNameTable. More...
 
class  XmlAttribute
 Represents an attribute. Valid and default values for the attribute are defined in a document type definition (DTD) or schema. More...
 
class  XmlAttributeCollection
 Represents a collection of attributes that can be accessed by name or index. More...
 
class  XmlCDataSection
 Represents a CDATA section. More...
 
class  XmlCharacterData
 Provides text manipulation methods that are used by several classes. More...
 
class  XmlComment
 Represents the content of an XML comment. More...
 
class  XmlConvert
 Encodes and decodes XML names, and provides methods for converting between common language runtime types and XML Schema definition language (XSD) types. When converting data types, the values returned are locale-independent. More...
 
class  XmlDeclaration
 Represents the XML declaration node <?xml version='1.0'...?>. More...
 
class  XmlDocument
 Represents an XML document. You can use this class to load, validate, edit, add, and position XML in a document. More...
 
class  XmlDocumentFragment
 Represents a lightweight object that is useful for tree insert operations. More...
 
class  XmlDocumentType
 Represents the document type declaration. More...
 
class  XmlElement
 Represents an element. More...
 
class  XmlEntity
 Represents an entity declaration, such as <!ENTITY... >. More...
 
class  XmlEntityReference
 Represents an entity reference node. More...
 
class  XmlException
 Returns detailed information about the last exception. More...
 
class  XmlImplementation
 Defines the context for a set of T:System.Xml.XmlDocument objects. More...
 
class  XmlLinkedNode
 Gets the node immediately preceding or following this node. More...
 
class  XmlNamedNodeMap
 Represents a collection of nodes that can be accessed by name or index. More...
 
class  XmlNamespaceManager
 Resolves, adds, and removes namespaces to a collection and provides scope management for these namespaces. More...
 
class  XmlNameTable
 Table of atomized string objects. More...
 
class  XmlNode
 Represents a single node in the XML document. More...
 
class  XmlNodeChangedEventArgs
 Provides data for the E:System.Xml.XmlDocument.NodeChanged, E:System.Xml.XmlDocument.NodeChanging, E:System.Xml.XmlDocument.NodeInserted, E:System.Xml.XmlDocument.NodeInserting, E:System.Xml.XmlDocument.NodeRemoved and E:System.Xml.XmlDocument.NodeRemoving events. More...
 
class  XmlNodeList
 Represents an ordered collection of nodes. More...
 
class  XmlNodeReader
 Represents a reader that provides fast, non-cached forward only access to XML data in an T:System.Xml.XmlNode. More...
 
class  XmlNotation
 Represents a notation declaration, such as <!NOTATION... >. More...
 
class  XmlParserContext
 Provides all the context information required by the T:System.Xml.XmlReader to parse an XML fragment. More...
 
class  XmlProcessingInstruction
 Represents a processing instruction, which XML defines to keep processor-specific information in the text of the document. More...
 
class  XmlQualifiedName
 Represents an XML qualified name. More...
 
class  XmlReader
 Represents a reader that provides fast, noncached, forward-only access to XML data.To browse the .NET Framework source code for this type, see the Reference Source. More...
 
class  XmlReaderSettings
 Specifies a set of features to support on the T:System.Xml.XmlReader object created by the Overload:System.Xml.XmlReader.Create method. More...
 
class  XmlResolver
 Resolves external XML resources named by a Uniform Resource Identifier (URI). More...
 
class  XmlSecureResolver
 Helps to secure another implementation of T:System.Xml.XmlResolver by wrapping the T:System.Xml.XmlResolver object and restricting the resources that the underlying T:System.Xml.XmlResolver has access to. More...
 
class  XmlSignificantWhitespace
 Represents white space between markup in a mixed content node or white space within an xml:space= 'preserve' scope. This is also referred to as significant white space. More...
 
class  XmlText
 Represents the text content of an element or attribute. More...
 
class  XmlTextReader
 Represents a reader that provides fast, non-cached, forward-only access to XML data.Starting with the .NET Framework 2.0, we recommend that you use the T:System.Xml.XmlReader class instead. More...
 
class  XmlTextWriter
 Represents a writer that provides a fast, non-cached, forward-only way of generating streams or files containing XML data that conforms to the W3C Extensible Markup Language (XML) 1.0 and the Namespaces in XML recommendations. Starting with the .NET Framework 2.0, we recommend that you use the T:System.Xml.XmlWriter class instead. More...
 
class  XmlUrlResolver
 Resolves external XML resources named by a Uniform Resource Identifier (URI). More...
 
class  XmlValidatingReader
 Represents a reader that provides document type definition (DTD), XML-Data Reduced (XDR) schema, and XML Schema definition language (XSD) validation.This class is obsolete. Starting with the .NET Framework 2.0, we recommend that you use the T:System.Xml.XmlReaderSettings class and the Overload:System.Xml.XmlReader.Create method to create a validating XML reader. More...
 
class  XmlWhitespace
 Represents white space in element content. More...
 
class  XmlWriter
 Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files that contain XML data. More...
 
class  XmlWriterSettings
 Specifies a set of features to support on the T:System.Xml.XmlWriter object created by the Overload:System.Xml.XmlWriter.Create method. More...
 
class  XmlXapResolver
 The XmlXapResolver type is used to resolve resources in the Silverlight application’s XAP package. More...
 

Enumerations

enum  AttributeProperties : uint { DEFAULT = 0u, URI = 1u, BOOLEAN = 2u, NAME = 4u }
 
enum  BinXmlToken {
  Error = 0, NotImpl = -2, EOF = -1, XmlDecl = 254,
  Encoding = 253, DocType = 252, System = 251, Public = 250,
  Subset = 249, Element = 248, EndElem = 247, Attr = 246,
  EndAttrs = 245, PI = 244, Comment = 243, CData = 242,
  EndCData = 241, Name = 240, QName = 239, XmlText = 237,
  Nest = 236, EndNest = 235, Extn = 234, NmFlush = 233,
  SQL_BIT = 6, SQL_TINYINT = 7, SQL_SMALLINT = 1, SQL_INT = 2,
  SQL_BIGINT = 8, SQL_REAL = 3, SQL_FLOAT = 4, SQL_MONEY = 5,
  SQL_SMALLMONEY = 20, SQL_DATETIME = 18, SQL_SMALLDATETIME = 19, SQL_DECIMAL = 10,
  SQL_NUMERIC = 11, SQL_UUID = 9, SQL_VARBINARY = 0xF, SQL_BINARY = 12,
  SQL_IMAGE = 23, SQL_CHAR = 13, SQL_VARCHAR = 0x10, SQL_TEXT = 22,
  SQL_NVARCHAR = 17, SQL_NCHAR = 14, SQL_NTEXT = 24, SQL_UDT = 27,
  XSD_KATMAI_DATE = 0x7F, XSD_KATMAI_DATETIME = 126, XSD_KATMAI_TIME = 125, XSD_KATMAI_DATEOFFSET = 124,
  XSD_KATMAI_DATETIMEOFFSET = 123, XSD_KATMAI_TIMEOFFSET = 122, XSD_BOOLEAN = 134, XSD_TIME = 129,
  XSD_DATETIME = 130, XSD_DATE = 131, XSD_BINHEX = 132, XSD_BASE64 = 133,
  XSD_DECIMAL = 135, XSD_BYTE = 136, XSD_UNSIGNEDSHORT = 137, XSD_UNSIGNEDINT = 138,
  XSD_UNSIGNEDLONG = 139, XSD_QNAME = 140
}
 
enum  ConformanceLevel { ConformanceLevel.Auto, ConformanceLevel.Fragment, ConformanceLevel.Document }
 Specifies the amount of input or output checking that T:System.Xml.XmlReader and T:System.Xml.XmlWriter objects perform. More...
 
enum  DocumentXmlWriterType {
  InsertSiblingAfter, InsertSiblingBefore, PrependChild, AppendChild,
  AppendAttribute, ReplaceToFollowingSibling
}
 
enum  DtdProcessing { DtdProcessing.Prohibit, DtdProcessing.Ignore, DtdProcessing.Parse }
 Specifies the options for processing DTDs. The T:System.Xml.DtdProcessing enumeration is used by the T:System.Xml.XmlReaderSettings class. More...
 
enum  ElementProperties : uint {
  DEFAULT = 0u, URI_PARENT = 1u, BOOL_PARENT = 2u, NAME_PARENT = 4u,
  EMPTY = 8u, NO_ENTITIES = 0x10, HEAD = 0x20, BLOCK_WS = 0x40,
  HAS_NS = 0x80
}
 
enum  EntityHandling { EntityHandling.ExpandEntities = 1, EntityHandling.ExpandCharEntities }
 Specifies how the T:System.Xml.XmlTextReader or T:System.Xml.XmlValidatingReader handle entities. More...
 
enum  ExceptionType { ArgumentException, XmlException }
 
enum  Formatting { Formatting.None, Formatting.Indented }
 Specifies formatting options for the T:System.Xml.XmlTextWriter. More...
 
enum  NamespaceHandling { NamespaceHandling.Default = 0x0, NamespaceHandling.OmitDuplicates = 0x1 }
 Specifies whether to remove duplicate namespace declarations in the T:System.Xml.XmlWriter. More...
 
enum  NewLineHandling { NewLineHandling.Replace, NewLineHandling.Entitize, NewLineHandling.None }
 Specifies how to handle line breaks. More...
 
enum  ReadState {
  ReadState.Initial, ReadState.Interactive, ReadState.Error, ReadState.EndOfFile,
  ReadState.Closed
}
 Specifies the state of the reader. More...
 
enum  TernaryTreeByte { characterByte, leftTree, rightTree, data }
 
enum  TriState { Unknown = -1, False, True }
 
enum  ValidationType {
  ValidationType.None, ValidationType.Auto, ValidationType.DTD, ValidationType.XDR,
  ValidationType.Schema
}
 Specifies the type of validation to perform. More...
 
enum  WhitespaceHandling { WhitespaceHandling.All, WhitespaceHandling.Significant, WhitespaceHandling.None }
 Specifies how white space is handled. More...
 
enum  WriteState {
  WriteState.Start, WriteState.Prolog, WriteState.Element, WriteState.Attribute,
  WriteState.Content, WriteState.Closed, WriteState.Error
}
 Specifies the state of the T:System.Xml.XmlWriter. More...
 
enum  XmlDateTimeSerializationMode { XmlDateTimeSerializationMode.Local, XmlDateTimeSerializationMode.Utc, XmlDateTimeSerializationMode.Unspecified, XmlDateTimeSerializationMode.RoundtripKind }
 Specifies how to treat the time value when converting between string and T:System.DateTime. More...
 
enum  XmlNamespaceScope { XmlNamespaceScope.All, XmlNamespaceScope.ExcludeXml, XmlNamespaceScope.Local }
 Defines the namespace scope. More...
 
enum  XmlNodeChangedAction { XmlNodeChangedAction.Insert, XmlNodeChangedAction.Remove, XmlNodeChangedAction.Change }
 Specifies the type of node change. More...
 
enum  XmlNodeOrder { XmlNodeOrder.Before, XmlNodeOrder.After, XmlNodeOrder.Same, XmlNodeOrder.Unknown }
 Describes the document order of a node compared to a second node. More...
 
enum  XmlNodeType {
  XmlNodeType.None, XmlNodeType.Element, XmlNodeType.Attribute, XmlNodeType.Text,
  XmlNodeType.CDATA, XmlNodeType.EntityReference, XmlNodeType.Entity, XmlNodeType.ProcessingInstruction,
  XmlNodeType.Comment, XmlNodeType.Document, XmlNodeType.DocumentType, XmlNodeType.DocumentFragment,
  XmlNodeType.Notation, XmlNodeType.Whitespace, XmlNodeType.SignificantWhitespace, XmlNodeType.EndElement,
  XmlNodeType.EndEntity, XmlNodeType.XmlDeclaration
}
 Specifies the type of node. More...
 
enum  XmlOutputMethod { XmlOutputMethod.Xml, XmlOutputMethod.Html, XmlOutputMethod.Text, XmlOutputMethod.AutoDetect }
 Specifies the method used to serialize the T:System.Xml.XmlWriter output. More...
 
enum  XmlSpace { XmlSpace.None, XmlSpace.Default, XmlSpace.Preserve }
 Specifies the current xml:space scope. More...
 
enum  XmlStandalone { Omit, Yes, No }
 
enum  XmlTokenizedType {
  XmlTokenizedType.CDATA, XmlTokenizedType.ID, XmlTokenizedType.IDREF, XmlTokenizedType.IDREFS,
  XmlTokenizedType.ENTITY, XmlTokenizedType.ENTITIES, XmlTokenizedType.NMTOKEN, XmlTokenizedType.NMTOKENS,
  XmlTokenizedType.NOTATION, XmlTokenizedType.ENUMERATION, XmlTokenizedType.QName, XmlTokenizedType.NCName,
  XmlTokenizedType.None
}
 Represents the XML type for the string. This allows the string to be read as a particular XML type, for example a CDATA section type. More...
 

Functions

internal delegate void CachingEventHandler (XsdCachingReader cachingReader)
 
internal delegate void OnRemoveWriter (XmlRawWriter writer)
 
delegate void XmlNodeChangedEventHandler (object sender, XmlNodeChangedEventArgs e)
 Represents the method that handles E:System.Xml.XmlDocument.NodeChanged, E:System.Xml.XmlDocument.NodeChanging, E:System.Xml.XmlDocument.NodeInserted, E:System.Xml.XmlDocument.NodeInserting, E:System.Xml.XmlDocument.NodeRemoved and E:System.Xml.XmlDocument.NodeRemoving events. More...
 

Enumeration Type Documentation

◆ ConformanceLevel

Specifies the amount of input or output checking that T:System.Xml.XmlReader and T:System.Xml.XmlWriter objects perform.

Enumerator
Auto 

The T:System.Xml.XmlReader or T:System.Xml.XmlWriter object automatically detects whether document-level or fragment-level checking should be performed, and does the appropriate checking. If you're wrapping another T:System.Xml.XmlReader or T:System.Xml.XmlWriter object, the outer object doesn't do any additional conformance checking. Conformance checking is left up to the underlying object.See the P:System.Xml.XmlReaderSettings.ConformanceLevel and P:System.Xml.XmlWriterSettings.ConformanceLevel properties for details on how the compliance level is determined.

Fragment 

The XML data is a well-formed XML fragment, as defined by the W3C.

Document 

The XML data complies with the rules for a well-formed XML 1.0 document, as defined by the W3C.

Definition at line 5 of file ConformanceLevel.cs.

◆ DtdProcessing

Specifies the options for processing DTDs. The T:System.Xml.DtdProcessing enumeration is used by the T:System.Xml.XmlReaderSettings class.

Enumerator
Prohibit 

Specifies that when a DTD is encountered, an T:System.Xml.XmlException is thrown with a message that states that DTDs are prohibited. This is the default behavior.

Ignore 

Causes the DOCTYPE element to be ignored. No DTD processing occurs.

Parse 

Used for parsing DTDs.

Definition at line 5 of file DtdProcessing.cs.

◆ EntityHandling

Specifies how the T:System.Xml.XmlTextReader or T:System.Xml.XmlValidatingReader handle entities.

Enumerator
ExpandEntities 

Expands all entities and returns the expanded nodes.

ExpandCharEntities 

Expands character entities and returns general entities as F:System.Xml.XmlNodeType.EntityReference nodes.

Definition at line 4 of file EntityHandling.cs.

◆ Formatting

enum System.Xml.Formatting
strong

Specifies formatting options for the T:System.Xml.XmlTextWriter.

Enumerator
None 

No special formatting is applied. This is the default.

Indented 

Causes child elements to be indented according to the P:System.Xml.XmlTextWriter.Indentation and P:System.Xml.XmlTextWriter.IndentChar settings.

Definition at line 4 of file Formatting.cs.

◆ NamespaceHandling

Specifies whether to remove duplicate namespace declarations in the T:System.Xml.XmlWriter.

Enumerator
Default 

Specifies that duplicate namespace declarations will not be removed.

OmitDuplicates 

Specifies that duplicate namespace declarations will be removed. For the duplicate namespace to be removed, the prefix and the namespace must match.

Definition at line 6 of file NamespaceHandling.cs.

◆ NewLineHandling

Specifies how to handle line breaks.

Enumerator
Replace 

New line characters are replaced to match the character specified in the P:System.Xml.XmlWriterSettings.NewLineChars property.

Entitize 

New line characters are entitized. This setting preserves all characters when the output is read by a normalizing T:System.Xml.XmlReader.

None 

The new line characters are unchanged. The output is the same as the input.

Definition at line 5 of file NewLineHandling.cs.

◆ ReadState

enum System.Xml.ReadState
strong

Specifies the state of the reader.

Enumerator
Initial 

The Read method has not been called.

Interactive 

The Read method has been called. Additional methods may be called on the reader.

Error 

An error occurred that prevents the read operation from continuing.

EndOfFile 

The end of the file has been reached successfully.

Closed 

The M:System.Xml.XmlReader.Close method has been called.

Definition at line 5 of file ReadState.cs.

◆ ValidationType

Specifies the type of validation to perform.

Enumerator
None 

No validation is performed. This setting creates an XML 1.0 compliant non-validating parser.

Auto 

Validates if DTD or schema information is found.

DTD 

Validates according to the DTD.

XDR 

Validate according to XML-Data Reduced (XDR) schemas, including inline XDR schemas. XDR schemas are recognized using the x-schema namespace prefix or the P:System.Xml.XmlValidatingReader.Schemas property.

Schema 

Validate according to XML Schema definition language (XSD) schemas, including inline XML Schemas. XML Schemas are associated with namespace URIs either by using the schemaLocation attribute or the provided Schemas property.

Definition at line 4 of file ValidationType.cs.

◆ WhitespaceHandling

Specifies how white space is handled.

Enumerator
All 

Return Whitespace and SignificantWhitespace nodes. This is the default.

Significant 

Return SignificantWhitespace nodes only.

None 

Return no Whitespace and no SignificantWhitespace nodes.

Definition at line 4 of file WhitespaceHandling.cs.

◆ WriteState

enum System.Xml.WriteState
strong

Specifies the state of the T:System.Xml.XmlWriter.

Enumerator
Start 

Indicates that a Write method has not yet been called.

Prolog 

Indicates that the prolog is being written.

Element 

Indicates that an element start tag is being written.

Attribute 

Indicates that an attribute value is being written.

Content 

Indicates that element content is being written.

Closed 

Indicates that the M:System.Xml.XmlWriter.Close method has been called.

Error 

An exception has been thrown, which has left the T:System.Xml.XmlWriter in an invalid state. You can call the M:System.Xml.XmlWriter.Close method to put the T:System.Xml.XmlWriter in the F:System.Xml.WriteState.Closed state. Any other T:System.Xml.XmlWriter method calls results in an T:System.InvalidOperationException.

Definition at line 5 of file WriteState.cs.

◆ XmlDateTimeSerializationMode

Specifies how to treat the time value when converting between string and T:System.DateTime.

Enumerator
Local 

Treat as local time. If the T:System.DateTime object represents a Coordinated Universal Time (UTC), it is converted to the local time.

Utc 

Treat as a UTC. If the T:System.DateTime object represents a local time, it is converted to a UTC.

Unspecified 

Treat as a local time if a T:System.DateTime is being converted to a string.

RoundtripKind 

Time zone information should be preserved when converting.

Definition at line 5 of file XmlDateTimeSerializationMode.cs.

◆ XmlNamespaceScope

Defines the namespace scope.

Enumerator
All 

All namespaces defined in the scope of the current node. This includes the xmlns:xml namespace which is always declared implicitly. The order of the namespaces returned is not defined.

ExcludeXml 

All namespaces defined in the scope of the current node, excluding the xmlns:xml namespace, which is always declared implicitly. The order of the namespaces returned is not defined.

Local 

All namespaces that are defined locally at the current node.

Definition at line 5 of file XmlNamespaceScope.cs.

◆ XmlNodeChangedAction

Specifies the type of node change.

Enumerator
Insert 

A node is being inserted in the tree.

Remove 

A node is being removed from the tree.

Change 

A node value is being changed.

Definition at line 4 of file XmlNodeChangedAction.cs.

◆ XmlNodeOrder

Describes the document order of a node compared to a second node.

Enumerator
Before 

The current node of this navigator is before the current node of the supplied navigator.

After 

The current node of this navigator is after the current node of the supplied navigator.

Same 

The two navigators are positioned on the same node.

Unknown 

The node positions cannot be determined in document order, relative to each other. This could occur if the two nodes reside in different trees.

Definition at line 4 of file XmlNodeOrder.cs.

◆ XmlNodeType

Specifies the type of node.

Enumerator
None 

This is returned by the T:System.Xml.XmlReader if a Read method has not been called.

Element 

An element (for example, <item> ).

Attribute 

An attribute (for example, id='123' ).

Text 

The text content of a node.

CDATA 

A CDATA section (for example, <![CDATA[my escaped text]]> ).

EntityReference 

A reference to an entity (for example, &num; ).

Entity 

An entity declaration (for example, <!ENTITY...> ).

ProcessingInstruction 

A processing instruction (for example, <?pi test?> ).

Comment 

A comment (for example, <!– my comment –> ).

Document 

A document object that, as the root of the document tree, provides access to the entire XML document.

DocumentType 

The document type declaration, indicated by the following tag (for example, <!DOCTYPE...> ).

DocumentFragment 

A document fragment.

Notation 

A notation in the document type declaration (for example, <!NOTATION...> ).

Whitespace 

White space between markup.

SignificantWhitespace 

White space between markup in a mixed content model or white space within the xml:space="preserve" scope.

EndElement 

An end element tag (for example, </item> ).

EndEntity 

Returned when XmlReader gets to the end of the entity replacement as a result of a call to M:System.Xml.XmlReader.ResolveEntity.

XmlDeclaration 

The XML declaration (for example, <?xml version='1.0'?> ).

Definition at line 5 of file XmlNodeType.cs.

◆ XmlOutputMethod

Specifies the method used to serialize the T:System.Xml.XmlWriter output.

Enumerator
Xml 

Serialize according to the XML 1.0 rules.

Html 

Serialize according to the HTML rules specified by XSLT.

Text 

Serialize text blocks only.

AutoDetect 

Use the XSLT rules to choose between the F:System.Xml.XmlOutputMethod.Xml and F:System.Xml.XmlOutputMethod.Html output methods at runtime.

Definition at line 4 of file XmlOutputMethod.cs.

◆ XmlSpace

enum System.Xml.XmlSpace
strong

Specifies the current xml:space scope.

Enumerator
None 

No xml:space scope.

Default 

The xml:space scope equals default.

Preserve 

The xml:space scope equals preserve.

Definition at line 5 of file XmlSpace.cs.

◆ XmlTokenizedType

Represents the XML type for the string. This allows the string to be read as a particular XML type, for example a CDATA section type.

Enumerator
CDATA 

CDATA type.

ID 

ID type.

IDREF 

IDREF type.

IDREFS 

IDREFS type.

ENTITY 

ENTITY type.

ENTITIES 

ENTITIES type.

NMTOKEN 

NMTOKEN type.

NMTOKENS 

NMTOKENS type.

NOTATION 

NOTATION type.

ENUMERATION 

ENUMERATION type.

QName 

QName type.

NCName 

NCName type.

None 

No type.

Definition at line 4 of file XmlTokenizedType.cs.

Function Documentation

◆ XmlNodeChangedEventHandler()

delegate void System.Xml.XmlNodeChangedEventHandler ( object  sender,
XmlNodeChangedEventArgs  e 
)

Represents the method that handles E:System.Xml.XmlDocument.NodeChanged, E:System.Xml.XmlDocument.NodeChanging, E:System.Xml.XmlDocument.NodeInserted, E:System.Xml.XmlDocument.NodeInserting, E:System.Xml.XmlDocument.NodeRemoved and E:System.Xml.XmlDocument.NodeRemoving events.

Parameters
senderThe source of the event.
eAn T:System.Xml.XmlNodeChangedEventArgs containing the event data.