System::Xml Namespace Reference

Namespaces

 Details
 
 Schema
 
 Serialization
 
 XPath
 
 Xsl
 

Classes

class  IXmlNamespaceResolver
 Provides read access to a set of namespace and prefix mappings. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  NameTable
 Provides single-threaded implementation of XmlNameTable. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlAttribute
 Represents an attribute associated with an xml element. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlAttributeCollection
 Represents a collection of XML attributes. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlCDataSection
 Represents a CDATA section. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlCharacterData
 Serves as a base class for several classes that represent XML nodes that represent sequences of characters. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlComment
 Represents an XML comment node. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlConvert
 Contains methods for encoding and decoding XML names and methods for converting between C++ types and XSD types. This is a static type with no instance services. You should never create instances of it by any means. More...
 
class  XmlDeclaration
 Represents an XML declaration node. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlDocument
 Represents an XML document. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlDocumentFragment
 Represents a service oject that is useful for tree insert operations. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlDocumentType
 Represents the XML document type declaration node. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlElement
 Represents an XML element node. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  Details_XmlException
 
class  XmlNameTable
 Represents a table of string objects. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlNamedNodeMap
 Represents a collection of XML nodes that can be accessed by index or name. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlNamespaceManager
 Represents a collection of XML namespaces and provides scope management for them. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlNode
 Represents an XML node. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlNodeChangedEventArgs
 Represents information about XML node events. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlNodeList
 Represents a list of XML nodes. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlNodeReader
 Provides non-cached forward-only access to data in an XML node. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlParserContext
 Represents context information required by the XmlReader to parse an XML fragment. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlProcessingInstruction
 Represents the XML processing instruction node. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlQualifiedName
 Represents XML qualified name. More...
 
class  XmlReader
 Provides non-cached forward-only access to XML data. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlReaderSettings
 Specifies a set of features to support on the XmlReader object created by the Create method. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlResolver
 Resolves external XML resources specified by URI. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlText
 Represents the text content of an XML element or attribute. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlTextReader
 Provides non-cached forward-only access to XML data. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlTextWriter
 Represents a non-cached, forward-only writer way of generating streams or files containing XML data. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlUrlResolver
 Resolves external XML resources specified by URL. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlWriter
 Represents a writer that provides a non-cached, forward-only way to generate XML data. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  XmlWriterSettings
 Specifies a set of features to support on the XmlWriter object created by the Create() method. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 

Typedefs

typedef System::Collections::Generic::IEnumerable< XmlAttribute::PtrIAttributeEnumerable
 An alias for IEnumerabe that points to a collection of shared pointers to instances of XmlAttribute. More...
 
typedef System::Collections::Generic::IEnumerator< XmlAttribute::PtrIAttrubuteEnumerator
 An alias for IEnumerator that points to a collection of shared pointers to instances of XmlAttribute. More...
 
typedef SharedPtr< IAttributeEnumerableIAttrubuteEnumerablePtr
 An alias for a shared pointer to an instance of IAttributeEnumerable. More...
 
typedef SharedPtr< IAttrubuteEnumeratorIAttributeEnumeratorPtr
 An alias for a shared pointer to an instance of IAttributeEnumerator. More...
 
using XmlException = System::ExceptionWrapper< Details_XmlException >
 
typedef std::function< void(SharedPtr< Object >, SharedPtr< XmlNodeChangedEventArgs >)> XmlNodeChangedEventHandler
 An alias for a function object type that is used to handle XML node change events. More...
 
typedef System::Event< void(SharedPtr< Object >, SharedPtr< XmlNodeChangedEventArgs >)> XmlNodeChangedEventSignal
 An alias for an event type that signals that an XML node has been changed. More...
 
typedef System::Collections::Generic::IEnumerable< XmlNode::PtrIXmlNodeEnumerable
 An alias for IEnumerabe that points to a collection of shared pointers to instances of XmlNode. More...
 
typedef System::Collections::Generic::IEnumerator< XmlNode::PtrIXmlNodeEnumerator
 An alias for IEnumerator that points to a collection of shared pointers to instances of XmlNode. More...
 

Enumerations

enum class  ConformanceLevel { Auto , Document , Fragment }
 Specifies how much input/output checking objects of XmlReader and XmlWriter classes perform. More...
 
enum class  DtdProcessing { Prohibit = 0 , Ignore = 1 , Parse = 2 }
 Specifies the options for processing DTDs. More...
 
enum class  EntityHandling { ExpandEntities = 1 , ExpandCharEntities = 2 }
 Specifies how the entities are handled by XmlTextReader or XmlValidatingReader objects. More...
 
enum class  Formatting { None = 0 , Indented = 1 }
 Specifies the formatting options. More...
 
enum class  NewLineHandling { Replace = 0 , Entitize = 1 , None = 2 }
 Specifies how the line breaks are handled. More...
 
enum class  ValidationType {
  None , Auto , DTD , XDR ,
  Schema
}
 Specifies the validation type. More...
 
enum class  WhitespaceHandling { All = 0 , Significant = 1 , None = 2 }
 Specifies how to handle the white spaces. More...
 
enum class  XmlDateTimeSerializationMode { Local = 0 , Utc = 1 , Unspecified = 2 , RoundtripKind = 3 }
 Specifies how to treat the time value when converting between string and System::DateTime. More...
 
enum class  XmlNamespaceScope { All , ExcludeXml , Local }
 Specifies the namespace scope. More...
 
enum class  XmlNodeChangedAction { Insert = 0 , Remove = 1 , Change = 2 }
 Specifies the type of XML node change. More...
 
enum class  XmlNodeType {
  None = 0 , Element = 1 , Attribute = 2 , Text = 3 ,
  CDATA = 4 , EntityReference = 5 , Entity = 6 , ProcessingInstruction = 7 ,
  Comment = 8 , Document = 9 , DocumentType = 10 , DocumentFragment = 11 ,
  Notation = 12 , Whitespace = 13 , SignificantWhitespace = 14 , EndElement = 15 ,
  EndEntity = 16 , XmlDeclaration = 17
}
 Specifies an XML node type. More...
 
enum class  XmlOutputMethod { Xml = 0 , Html = 1 , Text = 2 , AutoDetect = 3 }
 Specifies the method of XmlWriter output serialization. More...
 
enum class  ReadState {
  Initial = 0 , Interactive = 1 , Error = 2 , EndOfFile = 3 ,
  Closed = 4
}
 Indicates XmlReader's state. More...
 
enum class  XmlSpace { None = 0 , Default = 1 , Preserve = 2 }
 Specifies xml:space scope. More...
 
enum  LibxmlError { LIBXML_ER = -1 , LIBXML_OK = XML_ERR_OK }
 Specifies the status of a libxml2 operation. More...
 
enum class  WriteState {
  Start = 0 , Prolog = 1 , Element = 2 , Attribute = 3 ,
  Content = 4 , Closed = 5 , Error = 6
}
 Indicates XmlWriter's state. More...
 

Functions

bool operator== (System::SharedPtr< XmlQualifiedName > a, System::SharedPtr< XmlQualifiedName > b)
 Compares XML qualified names. More...
 
bool operator!= (System::SharedPtr< XmlQualifiedName > a, System::SharedPtr< XmlQualifiedName > b)
 Compares XML qualified names. More...
 

Typedef Documentation

◆ IAttributeEnumerable

An alias for IEnumerabe that points to a collection of shared pointers to instances of XmlAttribute.

◆ IAttributeEnumeratorPtr

An alias for a shared pointer to an instance of IAttributeEnumerator.

◆ IAttrubuteEnumerablePtr

An alias for a shared pointer to an instance of IAttributeEnumerable.

◆ IAttrubuteEnumerator

An alias for IEnumerator that points to a collection of shared pointers to instances of XmlAttribute.

◆ IXmlNodeEnumerable

An alias for IEnumerabe that points to a collection of shared pointers to instances of XmlNode.

◆ IXmlNodeEnumerator

An alias for IEnumerator that points to a collection of shared pointers to instances of XmlNode.

◆ XmlException

◆ XmlNodeChangedEventHandler

An alias for a function object type that is used to handle XML node change events.

◆ XmlNodeChangedEventSignal

An alias for an event type that signals that an XML node has been changed.

Enumeration Type Documentation

◆ ConformanceLevel

Specifies how much input/output checking objects of XmlReader and XmlWriter classes perform.

Enumerator
Auto 

Auto.

Document 

Document-level checking.

Fragment 

Fragment-level checking.

◆ DtdProcessing

Specifies the options for processing DTDs.

Enumerator
Prohibit 

Specifies that when a DTD is encountered, an 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.

◆ EntityHandling

Specifies how the entities are handled by XmlTextReader or XmlValidatingReader objects.

Enumerator
ExpandEntities 

Expand all entities.

ExpandCharEntities 

Expand character entities and return general entities as nodes of EntityReference type.

◆ Formatting

Specifies the formatting options.

Enumerator
None 

No special formatting.

Indented 

Indent child elements according to the System.Xml.XmlTextWriter.Indentation and System.Xml.XmlTextWriter.IndentChar settings.

◆ LibxmlError

Specifies the status of a libxml2 operation.

Enumerator
LIBXML_ER 

Error.

LIBXML_OK 

Success.

◆ NewLineHandling

Specifies how the line breaks are handled.

Enumerator
Replace 

The new line characetrs are replaced by the specified character.

Entitize 

The new line characters are entitized.

None 

The new line characters are not changed.

◆ ReadState

Indicates XmlReader's state.

Enumerator
Initial 

The Read method has not been called yet.

Interactive 

Reading is in progress.

Error 

An error occurred that prevents the XmlReader from continuing.

EndOfFile 

The end of the stream has been reached successfully.

Closed 

The Close() method has been called and the XmlReader object is closed.

◆ ValidationType

Specifies the validation type.

Enumerator
None 

No validation.

Auto 

Validate if schema or DTD information is found.

DTD 

Validate according to DTD.

XDR 

Validate according to XDR schemas.

Schema 

Validate according to XSD schemas.

◆ WhitespaceHandling

Specifies how to handle the white spaces.

Enumerator
All 

Return SignificantWhitespace and Whitespace nodes. This option is default.

Significant 

Return only SignificantWhitespace nodes.

None 

Don't return Whitespace and SignificantWhitespace nodes.

◆ WriteState

Indicates XmlWriter's state.

Enumerator
Start 

A Write() method has not been called yet.

Prolog 

The prolog is being written.

Element 

A start tag of an element is being written.

Attribute 

A value of an attribute is being written.

Content 

Content of an element is being written.

Closed 

Method XmlWriter::Close() has been called.

Error 

An exception has been thrown leaving the System::Xml::XmlWriter in an invalid state. System::Xml::XmlWriter::Close() method can be called to put the System::Xml::XmlWriter in the System::Xml::WriteState::Closed state. Any other System::Xml::XmlWriter method calls result in an System::InvalidOperationException being thrown.

◆ XmlDateTimeSerializationMode

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

Enumerator
Local 

The time value represents a local time.

Utc 

The time value represents a UTC time.

Unspecified 

The time value represents a local time if a System::DateTime object is being converted to a string.

RoundtripKind 

Preserve the time zone information when converting.

◆ XmlNamespaceScope

Specifies the namespace scope.

Enumerator
All 

The scope includes all namespaces defined in the scope of the current XML node.

ExcludeXml 

The scope includes all namespaces defined in the scope of the current XML node excluding xmlns:xml.

Local 

The scope includes all namespaces defined locally at the current XML node.

◆ XmlNodeChangedAction

Specifies the type of XML node change.

Enumerator
Insert 

An XML node has been inserted in a nodes tree.

Remove 

An XML node has been removed from a nodes tree.

Change 

A node's value has been changed.

◆ XmlNodeType

Specifies an XML node type.

Enumerator
None 

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

Element 

An element.

Attribute 

An attribute.

Text 

The text content of a node.

CDATA 

A CDATA section.

EntityReference 

A reference to an entity.

Entity 

An entity declaration.

ProcessingInstruction 

A processing instruction.

Comment 

A 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.

DocumentFragment 

A document fragment.

Notation 

A notation in the document type declaration.

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 tag of an element.

EndEntity 

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

XmlDeclaration 

The XML declaration.

◆ XmlOutputMethod

Specifies the method of XmlWriter output serialization.

Enumerator
Xml 

Serialize according to the rules of XML 1.0.

Html 

Serialize according to the rules of HTML specified by XSLT.

Text 

Serialize only text blocks.

AutoDetect 

Follow the XSLT rules to choose between the Xml and Html output methods at runtime.

◆ XmlSpace

enum System::Xml::XmlSpace
strong

Specifies xml:space scope.

Enumerator
None 

No xml:space scope.

Default 

The xml:space scope equals default.

Preserve 

The xml:space scope equals preserve.

Function Documentation

◆ operator!=()

bool System::Xml::operator!= ( System::SharedPtr< XmlQualifiedName a,
System::SharedPtr< XmlQualifiedName b 
)

Compares XML qualified names.

Friend declaration.

Parameters
aLHS name to compare.
bRHS name to compare.
Returns
false if names match, true otherwise.

◆ operator==()

bool System::Xml::operator== ( System::SharedPtr< XmlQualifiedName a,
System::SharedPtr< XmlQualifiedName b 
)

Compares XML qualified names.

Friend declaration.

Parameters
aLHS name to compare.
bRHS name to compare.
Returns
true if names match, false otherwise.