XmlDataDocument XmlDataDocument XmlDataDocument XmlDataDocument Class

定義

警告

此 API 現已淘汰。

允許透過關聯式 DataSet 存放、擷取及管理結構化資料。Allows structured data to be stored, retrieved, and manipulated through a relational DataSet.

public ref class XmlDataDocument : System::Xml::XmlDocument
[System.Obsolete("XmlDataDocument class will be removed in a future release.")]
public class XmlDataDocument : System.Xml.XmlDocument
type XmlDataDocument = class
    inherit XmlDocument
Public Class XmlDataDocument
Inherits XmlDocument
繼承
屬性

備註

這個類別會XmlDocument擴充。This class extends XmlDocument. 它可讓您載入關聯式資料或 XML 資料, 並使用全球資訊網協會 (W3C) 檔物件模型 (DOM) 來操作該資料。It enables you to load either relational data or XML data and manipulate that data using the World Wide Web Consortium (W3C) Document Object Model (DOM). DOM 會將資料呈現為節點物件的階層。The DOM presents data as a hierarchy of node objects. 由於XmlDataDocument會實作為XslTransform介面, 因此也可以當做類別的來源文件使用。 IXPathNavigableBecause XmlDataDocument implements the IXPathNavigable interface, it can also be used as the source document for the XslTransform class.

XmlDataDocument具有DataSet類別的關閉關係, 可提供已載入之 XML 資料的關聯式視圖。XmlDataDocument has a close affiliation with the DataSet class, which provides a relational view of the loaded XML data. 對所做的XmlDataDocument任何變更都會反映DataSet在中, 反之亦然。Any changes made to the XmlDataDocument are reflected in the DataSet and vice versa.

若要載入DataSet具有 XML 資料的, ReadXmlSchema請使用來建立關聯式對應。To load a DataSet with XML data, use ReadXmlSchema to build a relational mapping. 然後, 可以使用LoadLoadXml載入 XML 資料。The XML data can then be loaded using Load or LoadXml.

若要載入關聯式資料, 請DataSet在函式XmlDataDocument中指定包含關聯式資料的做為參數。To load relational data, specify the DataSet containing the relational data as the parameter in the XmlDataDocument constructor.

建構函式

XmlDataDocument() XmlDataDocument() XmlDataDocument() XmlDataDocument()

初始化 XmlDataDocument 類別的新執行個體。Initializes a new instance of the XmlDataDocument class.

XmlDataDocument(DataSet) XmlDataDocument(DataSet) XmlDataDocument(DataSet) XmlDataDocument(DataSet)

使用指定的 XmlDataDocument 初始化 DataSet 類別的新執行個體。Initializes a new instance of the XmlDataDocument class with the specified DataSet.

屬性

Attributes Attributes Attributes Attributes

取得包含這個節點屬性 (Attribute) 的 XmlAttributeCollectionGets an XmlAttributeCollection containing the attributes of this node.

(Inherited from XmlNode)
BaseURI BaseURI BaseURI BaseURI

取得目前節點的基底 (Base) URI。Gets the base URI of the current node.

(Inherited from XmlDocument)
ChildNodes ChildNodes ChildNodes ChildNodes

取得節點的所有子節點。Gets all the child nodes of the node.

(Inherited from XmlNode)
DataSet DataSet DataSet DataSet

取得提供 XmlDataDocument 中之資料的關聯式表示的 DataSetGets a DataSet that provides a relational representation of the data in the XmlDataDocument.

DocumentElement DocumentElement DocumentElement DocumentElement

取得文件的根 XmlElementGets the root XmlElement for the document.

(Inherited from XmlDocument)
DocumentType DocumentType DocumentType DocumentType

取得包含 DOCTYPE 宣告的節點。Gets the node containing the DOCTYPE declaration.

(Inherited from XmlDocument)
FirstChild FirstChild FirstChild FirstChild

取得節點的第一個子節點。Gets the first child of the node.

(Inherited from XmlNode)
HasChildNodes HasChildNodes HasChildNodes HasChildNodes

取得值,指出這個節點是否有子節點。Gets a value indicating whether this node has any child nodes.

(Inherited from XmlNode)
Implementation Implementation Implementation Implementation

取得目前文件的 XmlImplementation 物件。Gets the XmlImplementation object for the current document.

(Inherited from XmlDocument)
InnerText InnerText InnerText InnerText

在所有情況下都擲回 InvalidOperationExceptionThrows an InvalidOperationException in all cases.

(Inherited from XmlDocument)
InnerXml InnerXml InnerXml InnerXml

取得或設定表示目前節點子系的標記。Gets or sets the markup representing the children of the current node.

(Inherited from XmlDocument)
IsReadOnly IsReadOnly IsReadOnly IsReadOnly

取得值,指示目前節點是否為唯讀。Gets a value indicating whether the current node is read-only.

(Inherited from XmlDocument)
Item[String, String] Item[String, String] Item[String, String] Item[String, String]

取得具有指定的 LocalNameNamespaceURI 的第一個子項目。Gets the first child element with the specified LocalName and NamespaceURI.

(Inherited from XmlNode)
Item[String] Item[String] Item[String] Item[String]

取得具有指定的 Name 的第一個子項目。Gets the first child element with the specified Name.

(Inherited from XmlNode)
LastChild LastChild LastChild LastChild

取得節點的最後一個子節點。Gets the last child of the node.

(Inherited from XmlNode)
LocalName LocalName LocalName LocalName

取得節點的區域名稱。Gets the local name of the node.

(Inherited from XmlDocument)
Name Name Name Name

取得節點的限定名稱。Gets the qualified name of the node.

(Inherited from XmlDocument)
NamespaceURI NamespaceURI NamespaceURI NamespaceURI

取得這個節點的命名空間 URI。Gets the namespace URI of this node.

(Inherited from XmlNode)
NameTable NameTable NameTable NameTable

取得與這個實作關聯的 XmlNameTableGets the XmlNameTable associated with this implementation.

(Inherited from XmlDocument)
NextSibling NextSibling NextSibling NextSibling

取得這個節點的後置節點。Gets the node immediately following this node.

(Inherited from XmlNode)
NodeType NodeType NodeType NodeType

取得目前節點的類型。Gets the type of the current node.

(Inherited from XmlDocument)
OuterXml OuterXml OuterXml OuterXml

取得包含這個節點和其所有子節點的標記。Gets the markup containing this node and all its child nodes.

(Inherited from XmlNode)
OwnerDocument OwnerDocument OwnerDocument OwnerDocument

取得目前節點所屬的 XmlDocumentGets the XmlDocument to which the current node belongs.

(Inherited from XmlDocument)
ParentNode ParentNode ParentNode ParentNode

取得這個節點的父節點 (針對可以具有父代的節點而言)。Gets the parent node of this node (for nodes that can have parents).

(Inherited from XmlDocument)
Prefix Prefix Prefix Prefix

取得或設定這個節點的命名空間前置詞。Gets or sets the namespace prefix of this node.

(Inherited from XmlNode)
PreserveWhitespace PreserveWhitespace PreserveWhitespace PreserveWhitespace

取得或設定值,指出是否要保留項目內容中的空白字元。Gets or sets a value indicating whether to preserve white space in element content.

(Inherited from XmlDocument)
PreviousSibling PreviousSibling PreviousSibling PreviousSibling

取得這個節點的前置節點。Gets the node immediately preceding this node.

(Inherited from XmlNode)
PreviousText PreviousText PreviousText PreviousText

取得這個節點的前置文字節點。Gets the text node that immediately precedes this node.

(Inherited from XmlNode)
SchemaInfo SchemaInfo SchemaInfo SchemaInfo

傳回節點的後結構描述驗證資訊集 (PSVI)。Returns the Post-Schema-Validation-Infoset (PSVI) of the node.

(Inherited from XmlDocument)
Schemas Schemas Schemas Schemas

取得或設定與這個 XmlDocument 相關聯的 XmlSchemaSet 物件。Gets or sets the XmlSchemaSet object associated with this XmlDocument.

(Inherited from XmlDocument)
Value Value Value Value

取得或設定節點的值。Gets or sets the value of the node.

(Inherited from XmlNode)
XmlResolver XmlResolver XmlResolver XmlResolver

設定用於解析外部資源的 XmlResolverSets the XmlResolver to use for resolving external resources.

(Inherited from XmlDocument)

方法

AppendChild(XmlNode) AppendChild(XmlNode) AppendChild(XmlNode) AppendChild(XmlNode)

將指定的節點加入這個節點之子節點清單的結尾。Adds the specified node to the end of the list of child nodes, of this node.

(Inherited from XmlNode)
Clone() Clone() Clone() Clone()

建立這個節點的複本。Creates a duplicate of this node.

(Inherited from XmlNode)
CloneNode(Boolean) CloneNode(Boolean) CloneNode(Boolean) CloneNode(Boolean)

建立目前節點的複本。Creates a duplicate of the current node.

CreateAttribute(String) CreateAttribute(String) CreateAttribute(String) CreateAttribute(String)

建立具有指定 NameXmlAttributeCreates an XmlAttribute with the specified Name.

(Inherited from XmlDocument)
CreateAttribute(String, String) CreateAttribute(String, String) CreateAttribute(String, String) CreateAttribute(String, String)

建立具有指定限定名稱和 NamespaceURIXmlAttributeCreates an XmlAttribute with the specified qualified name and NamespaceURI.

(Inherited from XmlDocument)
CreateAttribute(String, String, String) CreateAttribute(String, String, String) CreateAttribute(String, String, String) CreateAttribute(String, String, String)

建立具有指定的 PrefixLocalNameNamespaceURIXmlAttributeCreates an XmlAttribute with the specified Prefix, LocalName, and NamespaceURI.

(Inherited from XmlDocument)
CreateCDataSection(String) CreateCDataSection(String) CreateCDataSection(String) CreateCDataSection(String)

建立包含指定資料的 XmlCDataSectionCreates an XmlCDataSection containing the specified data.

(Inherited from XmlDocument)
CreateComment(String) CreateComment(String) CreateComment(String) CreateComment(String)

建立包含指定資料的 XmlCommentCreates an XmlComment containing the specified data.

(Inherited from XmlDocument)
CreateDefaultAttribute(String, String, String) CreateDefaultAttribute(String, String, String) CreateDefaultAttribute(String, String, String) CreateDefaultAttribute(String, String, String)

建立具有指定前置詞、區域名稱和命名空間 URI 的預設屬性。Creates a default attribute with the specified prefix, local name and namespace URI.

(Inherited from XmlDocument)
CreateDocumentFragment() CreateDocumentFragment() CreateDocumentFragment() CreateDocumentFragment()

建立 XmlDocumentFragmentCreates an XmlDocumentFragment.

(Inherited from XmlDocument)
CreateDocumentType(String, String, String, String) CreateDocumentType(String, String, String, String) CreateDocumentType(String, String, String, String) CreateDocumentType(String, String, String, String)

傳回新的 XmlDocumentType 物件。Returns a new XmlDocumentType object.

(Inherited from XmlDocument)
CreateElement(String) CreateElement(String) CreateElement(String) CreateElement(String)

建立具有指定名稱的項目。Creates an element with the specified name.

(Inherited from XmlDocument)
CreateElement(String, String) CreateElement(String, String) CreateElement(String, String) CreateElement(String, String)

建立具有限定名稱和 NamespaceURIXmlElementCreates an XmlElement with the qualified name and NamespaceURI.

(Inherited from XmlDocument)
CreateElement(String, String, String) CreateElement(String, String, String) CreateElement(String, String, String) CreateElement(String, String, String)

建立具有指定之 PrefixLocalNameNamespaceURI 的項目。Creates an element with the specified Prefix, LocalName , and NamespaceURI.

CreateEntityReference(String) CreateEntityReference(String) CreateEntityReference(String) CreateEntityReference(String)

建立具有指定名稱的 XmlEntityReferenceCreates an XmlEntityReference with the specified name.

CreateNavigator() CreateNavigator() CreateNavigator() CreateNavigator()

建立巡覽這份文件的新 XPathNavigator 物件。Creates a new XPathNavigator object for navigating this document.

(Inherited from XmlDocument)
CreateNavigator(XmlNode) CreateNavigator(XmlNode) CreateNavigator(XmlNode) CreateNavigator(XmlNode)

建立巡覽這份文件的新 XPathNavigator 物件。Creates a new XPathNavigator object for navigating this document. XPathNavigator 定位在 node 參數中指定的節點上。The XPathNavigator is positioned on the node specified in the node parameter.

CreateNode(String, String, String) CreateNode(String, String, String) CreateNode(String, String, String) CreateNode(String, String, String)

建立具有指定節點類型、NameNamespaceURIXmlNodeCreates an XmlNode with the specified node type, Name, and NamespaceURI.

(Inherited from XmlDocument)
CreateNode(XmlNodeType, String, String) CreateNode(XmlNodeType, String, String) CreateNode(XmlNodeType, String, String) CreateNode(XmlNodeType, String, String)

建立具有指定的 XmlNodeTypeNameNamespaceURIXmlNodeCreates an XmlNode with the specified XmlNodeType, Name, and NamespaceURI.

(Inherited from XmlDocument)
CreateNode(XmlNodeType, String, String, String) CreateNode(XmlNodeType, String, String, String) CreateNode(XmlNodeType, String, String, String) CreateNode(XmlNodeType, String, String, String)

建立具有指定之 XmlNodeTypePrefixNameNamespaceURIXmlNodeCreates a XmlNode with the specified XmlNodeType, Prefix, Name, and NamespaceURI.

(Inherited from XmlDocument)
CreateProcessingInstruction(String, String) CreateProcessingInstruction(String, String) CreateProcessingInstruction(String, String) CreateProcessingInstruction(String, String)

建立具有指定名稱和資料的 XmlProcessingInstructionCreates an XmlProcessingInstruction with the specified name and data.

(Inherited from XmlDocument)
CreateSignificantWhitespace(String) CreateSignificantWhitespace(String) CreateSignificantWhitespace(String) CreateSignificantWhitespace(String)

建立 XmlSignificantWhitespace 節點。Creates an XmlSignificantWhitespace node.

(Inherited from XmlDocument)
CreateTextNode(String) CreateTextNode(String) CreateTextNode(String) CreateTextNode(String)

建立具有指定文字的 XmlTextCreates an XmlText with the specified text.

(Inherited from XmlDocument)
CreateWhitespace(String) CreateWhitespace(String) CreateWhitespace(String) CreateWhitespace(String)

建立 XmlWhitespace 節點。Creates an XmlWhitespace node.

(Inherited from XmlDocument)
CreateXmlDeclaration(String, String, String) CreateXmlDeclaration(String, String, String) CreateXmlDeclaration(String, String, String) CreateXmlDeclaration(String, String, String)

建立具有指定值的 XmlDeclaration 節點。Creates an XmlDeclaration node with the specified values.

(Inherited from XmlDocument)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetElementById(String) GetElementById(String) GetElementById(String) GetElementById(String)

取得具有指定 ID 的 XmlElementGets the XmlElement with the specified ID. XmlDataDocument 類別不支援這個方法。This method is not supported by the XmlDataDocument class. 呼叫這個方法會擲回例外狀況。Calling this method throws an exception.

GetElementFromRow(DataRow) GetElementFromRow(DataRow) GetElementFromRow(DataRow) GetElementFromRow(DataRow)

擷取與指定的 XmlElement 關聯的 DataRowRetrieves the XmlElement associated with the specified DataRow.

GetElementsByTagName(String) GetElementsByTagName(String) GetElementsByTagName(String) GetElementsByTagName(String)

傳回 XmlNodeList,其中包含符合指定 Name 之所有子代 (Descendant) 項目的清單。Returns an XmlNodeList containing a list of all descendant elements that match the specified Name.

GetElementsByTagName(String, String) GetElementsByTagName(String, String) GetElementsByTagName(String, String) GetElementsByTagName(String, String)

傳回 XmlNodeList,其中包含符合指定之 LocalNameNamespaceURI 的所有子代元素的清單。Returns an XmlNodeList containing a list of all descendant elements that match the specified LocalName and NamespaceURI.

(Inherited from XmlDocument)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

取得逐一查看目前節點中子節點的列舉程式。Gets an enumerator that iterates through the child nodes in the current node.

(Inherited from XmlNode)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetNamespaceOfPrefix(String) GetNamespaceOfPrefix(String) GetNamespaceOfPrefix(String) GetNamespaceOfPrefix(String)

查閱目前節點範圍內最接近指定前置詞的 xmlns 宣告,並傳回宣告中的命名空間 URI。Looks up the closest xmlns declaration for the given prefix that is in scope for the current node and returns the namespace URI in the declaration.

(Inherited from XmlNode)
GetPrefixOfNamespace(String) GetPrefixOfNamespace(String) GetPrefixOfNamespace(String) GetPrefixOfNamespace(String)

查閱目前節點範圍內最接近指定命名空間 URI 的 xmlns 宣告,並傳回宣告中所定義的前置詞。Looks up the closest xmlns declaration for the given namespace URI that is in scope for the current node and returns the prefix defined in that declaration.

(Inherited from XmlNode)
GetRowFromElement(XmlElement) GetRowFromElement(XmlElement) GetRowFromElement(XmlElement) GetRowFromElement(XmlElement)

擷取與指定的 DataRow 關聯的 XmlElementRetrieves the DataRow associated with the specified XmlElement.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
ImportNode(XmlNode, Boolean) ImportNode(XmlNode, Boolean) ImportNode(XmlNode, Boolean) ImportNode(XmlNode, Boolean)

從其他文件匯入節點至目前的文件。Imports a node from another document to the current document.

(Inherited from XmlDocument)
InsertAfter(XmlNode, XmlNode) InsertAfter(XmlNode, XmlNode) InsertAfter(XmlNode, XmlNode) InsertAfter(XmlNode, XmlNode)

在指定的參考節點之後,插入指定的節點。Inserts the specified node immediately after the specified reference node.

(Inherited from XmlNode)
InsertBefore(XmlNode, XmlNode) InsertBefore(XmlNode, XmlNode) InsertBefore(XmlNode, XmlNode) InsertBefore(XmlNode, XmlNode)

在指定的參考節點之前,插入指定的節點。Inserts the specified node immediately before the specified reference node.

(Inherited from XmlNode)
Load(Stream) Load(Stream) Load(Stream) Load(Stream)

從指定的資料流載入 XmlDataDocumentLoads the XmlDataDocument from the specified stream.

Load(String) Load(String) Load(String) Load(String)

使用指定的 URL 載入 XmlDataDocumentLoads the XmlDataDocument using the specified URL.

Load(TextReader) Load(TextReader) Load(TextReader) Load(TextReader)

從指定的 TextReader 載入 XmlDataDocumentLoads the XmlDataDocument from the specified TextReader.

Load(XmlReader) Load(XmlReader) Load(XmlReader) Load(XmlReader)

從指定的 XmlReader 載入 XmlDataDocumentLoads the XmlDataDocument from the specified XmlReader.

LoadXml(String) LoadXml(String) LoadXml(String) LoadXml(String)

從指定的字串載入 XML 文件。Loads the XML document from the specified string.

(Inherited from XmlDocument)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
Normalize() Normalize() Normalize() Normalize()

使這個 XmlNode 之下子樹狀結構的整個深度中所有 XmlText 節點成為「一般」形式,其中只用標記 (Markup) (亦即標記 (Tag)、註解、處理指示、CDATA 區段與實體參考) 來分隔 XmlText 節點,也就是說,沒有相鄰的 XmlText 節點。Puts all XmlText nodes in the full depth of the sub-tree underneath this XmlNode into a "normal" form where only markup (that is, tags, comments, processing instructions, CDATA sections, and entity references) separates XmlText nodes, that is, there are no adjacent XmlText nodes.

(Inherited from XmlNode)
PrependChild(XmlNode) PrependChild(XmlNode) PrependChild(XmlNode) PrependChild(XmlNode)

將指定的節點加入這個節點之子節點清單的開頭。Adds the specified node to the beginning of the list of child nodes for this node.

(Inherited from XmlNode)
ReadNode(XmlReader) ReadNode(XmlReader) ReadNode(XmlReader) ReadNode(XmlReader)

根據 XmlReader 中的資訊建立一個 XmlNode 物件。Creates an XmlNode object based on the information in the XmlReader. 讀取器必須定位在節點或屬性上。The reader must be positioned on a node or attribute.

(Inherited from XmlDocument)
RemoveAll() RemoveAll() RemoveAll() RemoveAll()

移除目前節點的所有子節點和/或屬性。Removes all the child nodes and/or attributes of the current node.

(Inherited from XmlNode)
RemoveChild(XmlNode) RemoveChild(XmlNode) RemoveChild(XmlNode) RemoveChild(XmlNode)

移除指定的子節點。Removes specified child node.

(Inherited from XmlNode)
ReplaceChild(XmlNode, XmlNode) ReplaceChild(XmlNode, XmlNode) ReplaceChild(XmlNode, XmlNode) ReplaceChild(XmlNode, XmlNode)

將子節點 oldChildnewChild 節點取代。Replaces the child node oldChild with newChild node.

(Inherited from XmlNode)
Save(Stream) Save(Stream) Save(Stream) Save(Stream)

將 XML 文件儲存至指定的資料流。Saves the XML document to the specified stream.

(Inherited from XmlDocument)
Save(String) Save(String) Save(String) Save(String)

將 XML 文件儲存至指定的檔案。Saves the XML document to the specified file. 如果指定的檔案存在,則這個方法會覆寫該檔案。If the specified file exists, this method overwrites it.

(Inherited from XmlDocument)
Save(TextWriter) Save(TextWriter) Save(TextWriter) Save(TextWriter)

將 XML 文件儲存至指定的 TextWriterSaves the XML document to the specified TextWriter.

(Inherited from XmlDocument)
Save(XmlWriter) Save(XmlWriter) Save(XmlWriter) Save(XmlWriter)

將 XML 文件儲存至指定的 XmlWriterSaves the XML document to the specified XmlWriter.

(Inherited from XmlDocument)
SelectNodes(String) SelectNodes(String) SelectNodes(String) SelectNodes(String)

選取符合 XPath 運算式的節點清單。Selects a list of nodes matching the XPath expression.

(Inherited from XmlNode)
SelectNodes(String, XmlNamespaceManager) SelectNodes(String, XmlNamespaceManager) SelectNodes(String, XmlNamespaceManager) SelectNodes(String, XmlNamespaceManager)

選取符合 XPath 運算式的節點清單。Selects a list of nodes matching the XPath expression. 使用提供的 XmlNamespaceManager 解析 XPath 運算式中找到的任何前置詞。Any prefixes found in the XPath expression are resolved using the supplied XmlNamespaceManager.

(Inherited from XmlNode)
SelectSingleNode(String) SelectSingleNode(String) SelectSingleNode(String) SelectSingleNode(String)

選取符合 XPath 運算式的第一個 XmlNodeSelects the first XmlNode that matches the XPath expression.

(Inherited from XmlNode)
SelectSingleNode(String, XmlNamespaceManager) SelectSingleNode(String, XmlNamespaceManager) SelectSingleNode(String, XmlNamespaceManager) SelectSingleNode(String, XmlNamespaceManager)

選取符合 XPath 運算式的第一個 XmlNodeSelects the first XmlNode that matches the XPath expression. 使用提供的 XmlNamespaceManager 解析 XPath 運算式中找到的任何前置詞。Any prefixes found in the XPath expression are resolved using the supplied XmlNamespaceManager.

(Inherited from XmlNode)
Supports(String, String) Supports(String, String) Supports(String, String) Supports(String, String)

測試 DOM 實作 (Implementation) 是否實作特定功能。Tests if the DOM implementation implements a specific feature.

(Inherited from XmlNode)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
Validate(ValidationEventHandler) Validate(ValidationEventHandler) Validate(ValidationEventHandler) Validate(ValidationEventHandler)

根據 Schemas 屬性中包含的 XML 結構描述定義語言 (XSD) 結構描述,驗證 XmlDocumentValidates the XmlDocument against the XML Schema Definition Language (XSD) schemas contained in the Schemas property.

(Inherited from XmlDocument)
Validate(ValidationEventHandler, XmlNode) Validate(ValidationEventHandler, XmlNode) Validate(ValidationEventHandler, XmlNode) Validate(ValidationEventHandler, XmlNode)

根據 Schemas 屬性中包含的 XML 結構描述定義語言 (XSD) 結構描述,驗證指定的 XmlNode 物件。Validates the XmlNode object specified against the XML Schema Definition Language (XSD) schemas in the Schemas property.

(Inherited from XmlDocument)
WriteContentTo(XmlWriter) WriteContentTo(XmlWriter) WriteContentTo(XmlWriter) WriteContentTo(XmlWriter)

XmlDocument 節點的所有子系儲存到指定的 XmlWriterSaves all the children of the XmlDocument node to the specified XmlWriter.

(Inherited from XmlDocument)
WriteTo(XmlWriter) WriteTo(XmlWriter) WriteTo(XmlWriter) WriteTo(XmlWriter)

XmlDocument 節點儲存至指定的 XmlWriterSaves the XmlDocument node to the specified XmlWriter.

(Inherited from XmlDocument)

事件

NodeChanged NodeChanged NodeChanged NodeChanged

發生於屬於這份文件之節點的 Value 變更時。Occurs when the Value of a node belonging to this document has been changed.

(Inherited from XmlDocument)
NodeChanging NodeChanging NodeChanging NodeChanging

發生於屬於這份文件之節點的 Value 即將變更時。Occurs when the Value of a node belonging to this document is about to be changed.

(Inherited from XmlDocument)
NodeInserted NodeInserted NodeInserted NodeInserted

發生於屬於這份文件的節點插入另一個節點時。Occurs when a node belonging to this document has been inserted into another node.

(Inherited from XmlDocument)
NodeInserting NodeInserting NodeInserting NodeInserting

發生於屬於這份文件的節點將要插入另一個節點時。Occurs when a node belonging to this document is about to be inserted into another node.

(Inherited from XmlDocument)
NodeRemoved NodeRemoved NodeRemoved NodeRemoved

發生於屬於這份文件的節點從其父代 (Parent) 移除時。Occurs when a node belonging to this document has been removed from its parent.

(Inherited from XmlDocument)
NodeRemoving NodeRemoving NodeRemoving NodeRemoving

發生於屬於這份文件的節點即將從文件中移除時。Occurs when a node belonging to this document is about to be removed from the document.

(Inherited from XmlDocument)

明確介面實作

ICloneable.Clone() ICloneable.Clone() ICloneable.Clone() ICloneable.Clone()

如需這個成員的說明,請參閱 Clone()For a description of this member, see Clone().

(Inherited from XmlNode)
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

如需這個成員的說明,請參閱 GetEnumerator()For a description of this member, see GetEnumerator().

(Inherited from XmlNode)

擴充方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

CreateNavigator(XmlDocument) CreateNavigator(XmlDocument) CreateNavigator(XmlDocument) CreateNavigator(XmlDocument)
CreateNavigator(XmlDocument, XmlNode) CreateNavigator(XmlDocument, XmlNode) CreateNavigator(XmlDocument, XmlNode) CreateNavigator(XmlDocument, XmlNode)
CreateNavigator(XmlNode) CreateNavigator(XmlNode) CreateNavigator(XmlNode) CreateNavigator(XmlNode)
SelectNodes(XmlNode, String) SelectNodes(XmlNode, String) SelectNodes(XmlNode, String) SelectNodes(XmlNode, String)
SelectNodes(XmlNode, String, XmlNamespaceManager) SelectNodes(XmlNode, String, XmlNamespaceManager) SelectNodes(XmlNode, String, XmlNamespaceManager) SelectNodes(XmlNode, String, XmlNamespaceManager)
SelectSingleNode(XmlNode, String) SelectSingleNode(XmlNode, String) SelectSingleNode(XmlNode, String) SelectSingleNode(XmlNode, String)
SelectSingleNode(XmlNode, String, XmlNamespaceManager) SelectSingleNode(XmlNode, String, XmlNamespaceManager) SelectSingleNode(XmlNode, String, XmlNamespaceManager) SelectSingleNode(XmlNode, String, XmlNamespaceManager)
ToXPathNavigable(XmlNode) ToXPathNavigable(XmlNode) ToXPathNavigable(XmlNode) ToXPathNavigable(XmlNode)

適用於