C# Class System.Xml.XmlDocument

Inheritance: XmlNode
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
AddAttrXmlName XmlName
AddDefaultAttributes void
AddElementWithId void
AddIdInfo bool
AddXmlName XmlName
AfterEvent void
AppendChildForLoad XmlNode
BeforeEvent void
CanInsertAfter bool
CanInsertBefore bool
CheckName void
ConvertToNodeType System.Xml.XmlNodeType
GetDefaultAttribute XmlAttribute
GetElement System.WeakReference
GetEntityNode XmlEntity
GetEventArgs XmlNodeChangedEventArgs
GetIDInfoByElement XmlName
GetIDInfoByElement_ XmlName
GetInsertEventArgsForLoad XmlNodeChangedEventArgs
GetResolver XmlResolver
GetSchemaElementDecl System.Xml.Schema.SchemaElementDecl
GetXmlName XmlName
HasNodeTypeInNextSiblings bool
HasNodeTypeInPrevSiblings bool
ImportAttributes void
ImportChildren void
ImportNodeInternal XmlNode
IsTextNode bool
IsValidChildType bool
NormalizeText XmlNode
PrepareDefaultAttribute XmlAttribute
RemoveElementWithId void
SetBaseURI void
SetDefaultNamespace void
SetupReader XmlTextReader

Méthodes publiques

Méthode Description
CloneNode ( bool deep ) : XmlNode
CreateAttribute ( String name ) : XmlAttribute
CreateAttribute ( String qualifiedName, String namespaceURI ) : XmlAttribute
CreateAttribute ( string prefix, string localName, string namespaceURI ) : XmlAttribute
CreateCDataSection ( String data ) : XmlCDataSection
CreateComment ( String data ) : XmlComment
CreateDocumentFragment ( ) : XmlDocumentFragment
CreateDocumentType ( string name, string publicId, string systemId, string internalSubset ) : XmlDocumentType
CreateElement ( String name ) : XmlElement
CreateElement ( String qualifiedName, String namespaceURI ) : XmlElement
CreateElement ( string prefix, string localName, string namespaceURI ) : XmlElement
CreateEntityReference ( String name ) : XmlEntityReference
CreateNavigator ( ) : XPathNavigator
CreateNode ( System.Xml.XmlNodeType type, string name, string namespaceURI ) : XmlNode
CreateNode ( System.Xml.XmlNodeType type, string prefix, string name, string namespaceURI ) : XmlNode
CreateNode ( string nodeTypeString, string name, string namespaceURI ) : XmlNode
CreateProcessingInstruction ( String target, String data ) : XmlProcessingInstruction
CreateSignificantWhitespace ( string text ) : XmlSignificantWhitespace
CreateTextNode ( String text ) : XmlText
CreateWhitespace ( string text ) : XmlWhitespace
CreateXmlDeclaration ( String version, string encoding, string standalone ) : XmlDeclaration
GetElementById ( string elementId ) : XmlElement
GetElementsByTagName ( String name ) : XmlNodeList
GetElementsByTagName ( String localName, String namespaceURI ) : XmlNodeList
ImportNode ( XmlNode node, bool deep ) : XmlNode
Load ( Stream inStream ) : void
Load ( TextReader txtReader ) : void
Load ( XmlReader reader ) : void
Load ( string filename ) : void
LoadXml ( string xml ) : void
ReadNode ( XmlReader reader ) : XmlNode
Save ( Stream outStream ) : void
Save ( TextWriter writer ) : void
Save ( XmlWriter w ) : void
Save ( string filename ) : void
Validate ( ValidationEventHandler validationEventHandler ) : void
Validate ( ValidationEventHandler validationEventHandler, XmlNode nodeToValidate ) : void
WriteContentTo ( XmlWriter xw ) : void
WriteTo ( XmlWriter w ) : void
XmlDocument ( ) : System
XmlDocument ( XmlNameTable nt ) : System

Méthodes protégées

Méthode Description
CreateDefaultAttribute ( string prefix, string localName, string namespaceURI ) : XmlAttribute
CreateNavigator ( XmlNode node ) : XPathNavigator
XmlDocument ( XmlImplementation imp ) : System

Private Methods

Méthode Description
AddAttrXmlName ( string prefix, string localName, string namespaceURI, IXmlSchemaInfo schemaInfo ) : XmlName
AddDefaultAttributes ( XmlElement elem ) : void
AddElementWithId ( string id, XmlElement elem ) : void
AddIdInfo ( XmlName eleName, XmlName attrName ) : bool
AddXmlName ( string prefix, string localName, string namespaceURI, IXmlSchemaInfo schemaInfo ) : XmlName
AfterEvent ( XmlNodeChangedEventArgs args ) : void
AppendChildForLoad ( XmlNode newChild, XmlDocument doc ) : XmlNode
BeforeEvent ( XmlNodeChangedEventArgs args ) : void
CanInsertAfter ( XmlNode newChild, XmlNode refChild ) : bool
CanInsertBefore ( XmlNode newChild, XmlNode refChild ) : bool
CheckName ( String name ) : void
ConvertToNodeType ( string nodeTypeString ) : System.Xml.XmlNodeType
GetDefaultAttribute ( XmlElement elem, string attrPrefix, string attrLocalname, string attrNamespaceURI ) : XmlAttribute
GetElement ( ArrayList elementList, XmlElement elem ) : WeakReference
GetEntityNode ( String name ) : XmlEntity
GetEventArgs ( XmlNode node, XmlNode oldParent, XmlNode newParent, string oldValue, string newValue, XmlNodeChangedAction action ) : XmlNodeChangedEventArgs
GetIDInfoByElement ( XmlName eleName ) : XmlName
GetIDInfoByElement_ ( XmlName eleName ) : XmlName
GetInsertEventArgsForLoad ( XmlNode node, XmlNode newParent ) : XmlNodeChangedEventArgs
GetResolver ( ) : XmlResolver
GetSchemaElementDecl ( XmlElement elem ) : SchemaElementDecl
GetXmlName ( string prefix, string localName, string namespaceURI, IXmlSchemaInfo schemaInfo ) : XmlName
HasNodeTypeInNextSiblings ( System.Xml.XmlNodeType nt, XmlNode refNode ) : bool
HasNodeTypeInPrevSiblings ( System.Xml.XmlNodeType nt, XmlNode refNode ) : bool
ImportAttributes ( XmlNode fromElem, XmlNode toElem ) : void
ImportChildren ( XmlNode fromNode, XmlNode toNode, bool deep ) : void
ImportNodeInternal ( XmlNode node, bool deep ) : XmlNode
IsTextNode ( System.Xml.XmlNodeType nt ) : bool
IsValidChildType ( System.Xml.XmlNodeType type ) : bool
NormalizeText ( XmlNode n ) : XmlNode
PrepareDefaultAttribute ( SchemaAttDef attdef, string attrPrefix, string attrLocalname, string attrNamespaceURI ) : XmlAttribute
RemoveElementWithId ( string id, XmlElement elem ) : void
SetBaseURI ( String inBaseURI ) : void
SetDefaultNamespace ( String prefix, String localName, String &namespaceURI ) : void
SetupReader ( XmlTextReader tr ) : XmlTextReader

Method Details

CloneNode() public méthode

public CloneNode ( bool deep ) : XmlNode
deep bool
Résultat XmlNode

CreateAttribute() public méthode

public CreateAttribute ( String name ) : XmlAttribute
name String
Résultat XmlAttribute

CreateAttribute() public méthode

public CreateAttribute ( String qualifiedName, String namespaceURI ) : XmlAttribute
qualifiedName String
namespaceURI String
Résultat XmlAttribute

CreateAttribute() public méthode

public CreateAttribute ( string prefix, string localName, string namespaceURI ) : XmlAttribute
prefix string
localName string
namespaceURI string
Résultat XmlAttribute

CreateCDataSection() public méthode

public CreateCDataSection ( String data ) : XmlCDataSection
data String
Résultat XmlCDataSection

CreateComment() public méthode

public CreateComment ( String data ) : XmlComment
data String
Résultat XmlComment

CreateDefaultAttribute() protected méthode

protected CreateDefaultAttribute ( string prefix, string localName, string namespaceURI ) : XmlAttribute
prefix string
localName string
namespaceURI string
Résultat XmlAttribute

CreateDocumentFragment() public méthode

public CreateDocumentFragment ( ) : XmlDocumentFragment
Résultat XmlDocumentFragment

CreateDocumentType() public méthode

public CreateDocumentType ( string name, string publicId, string systemId, string internalSubset ) : XmlDocumentType
name string
publicId string
systemId string
internalSubset string
Résultat XmlDocumentType

CreateElement() public méthode

public CreateElement ( String name ) : XmlElement
name String
Résultat XmlElement

CreateElement() public méthode

public CreateElement ( String qualifiedName, String namespaceURI ) : XmlElement
qualifiedName String
namespaceURI String
Résultat XmlElement

CreateElement() public méthode

public CreateElement ( string prefix, string localName, string namespaceURI ) : XmlElement
prefix string
localName string
namespaceURI string
Résultat XmlElement

CreateEntityReference() public méthode

public CreateEntityReference ( String name ) : XmlEntityReference
name String
Résultat XmlEntityReference

CreateNavigator() public méthode

public CreateNavigator ( ) : XPathNavigator
Résultat System.Xml.XPath.XPathNavigator

CreateNavigator() protected méthode

protected CreateNavigator ( XmlNode node ) : XPathNavigator
node XmlNode
Résultat System.Xml.XPath.XPathNavigator

CreateNode() public méthode

public CreateNode ( System.Xml.XmlNodeType type, string name, string namespaceURI ) : XmlNode
type System.Xml.XmlNodeType
name string
namespaceURI string
Résultat XmlNode

CreateNode() public méthode

public CreateNode ( System.Xml.XmlNodeType type, string prefix, string name, string namespaceURI ) : XmlNode
type System.Xml.XmlNodeType
prefix string
name string
namespaceURI string
Résultat XmlNode

CreateNode() public méthode

public CreateNode ( string nodeTypeString, string name, string namespaceURI ) : XmlNode
nodeTypeString string
name string
namespaceURI string
Résultat XmlNode

CreateProcessingInstruction() public méthode

public CreateProcessingInstruction ( String target, String data ) : XmlProcessingInstruction
target String
data String
Résultat XmlProcessingInstruction

CreateSignificantWhitespace() public méthode

public CreateSignificantWhitespace ( string text ) : XmlSignificantWhitespace
text string
Résultat XmlSignificantWhitespace

CreateTextNode() public méthode

public CreateTextNode ( String text ) : XmlText
text String
Résultat XmlText

CreateWhitespace() public méthode

public CreateWhitespace ( string text ) : XmlWhitespace
text string
Résultat XmlWhitespace

CreateXmlDeclaration() public méthode

public CreateXmlDeclaration ( String version, string encoding, string standalone ) : XmlDeclaration
version String
encoding string
standalone string
Résultat XmlDeclaration

GetElementById() public méthode

public GetElementById ( string elementId ) : XmlElement
elementId string
Résultat XmlElement

GetElementsByTagName() public méthode

public GetElementsByTagName ( String name ) : XmlNodeList
name String
Résultat XmlNodeList

GetElementsByTagName() public méthode

public GetElementsByTagName ( String localName, String namespaceURI ) : XmlNodeList
localName String
namespaceURI String
Résultat XmlNodeList

ImportNode() public méthode

public ImportNode ( XmlNode node, bool deep ) : XmlNode
node XmlNode
deep bool
Résultat XmlNode

Load() public méthode

public Load ( Stream inStream ) : void
inStream Stream
Résultat void

Load() public méthode

public Load ( TextReader txtReader ) : void
txtReader TextReader
Résultat void

Load() public méthode

public Load ( XmlReader reader ) : void
reader XmlReader
Résultat void

Load() public méthode

public Load ( string filename ) : void
filename string
Résultat void

LoadXml() public méthode

public LoadXml ( string xml ) : void
xml string
Résultat void

ReadNode() public méthode

public ReadNode ( XmlReader reader ) : XmlNode
reader XmlReader
Résultat XmlNode

Save() public méthode

public Save ( Stream outStream ) : void
outStream Stream
Résultat void

Save() public méthode

public Save ( TextWriter writer ) : void
writer TextWriter
Résultat void

Save() public méthode

public Save ( XmlWriter w ) : void
w XmlWriter
Résultat void

Save() public méthode

public Save ( string filename ) : void
filename string
Résultat void

Validate() public méthode

public Validate ( ValidationEventHandler validationEventHandler ) : void
validationEventHandler ValidationEventHandler
Résultat void

Validate() public méthode

public Validate ( ValidationEventHandler validationEventHandler, XmlNode nodeToValidate ) : void
validationEventHandler ValidationEventHandler
nodeToValidate XmlNode
Résultat void

WriteContentTo() public méthode

public WriteContentTo ( XmlWriter xw ) : void
xw XmlWriter
Résultat void

WriteTo() public méthode

public WriteTo ( XmlWriter w ) : void
w XmlWriter
Résultat void

XmlDocument() public méthode

public XmlDocument ( ) : System
Résultat System

XmlDocument() protected méthode

protected XmlDocument ( XmlImplementation imp ) : System
imp XmlImplementation
Résultat System

XmlDocument() public méthode

public XmlDocument ( XmlNameTable nt ) : System
nt XmlNameTable
Résultat System