Gets the first annotation object of the specified type from this XObject. Only elements that have a matching XName are included in the collection. Returns a filtered collection of the ancestor elements of this node. Returns a collection of the ancestor elements of this node. Gets the root element of the XML Tree for this document.Īdds the specified content as children of this XContainer.Īdds the specified content immediately after this node.Īdds an object to the annotation list of this XObject.Īdds the specified content immediately before this node.Īdds the specified content as the first children of this document or element. Gets the previous sibling node of this node. Gets the parent XElement of this XObject. Gets the Document Type Definition (DTD) for this document. Gets or sets the XML declaration for this document. Initializes a new instance of the XDocument class from an existing XDocument object. Initializes a new instance of the XDocument class with the specified XDeclaration and content. Initializes a new instance of the XDocument class with the specified content. Initializes a new instance of the XDocument class. This example produces the following output: įor details about the valid content of an XDocument, see Valid Content of XElement and XDocument Objects. XDocument srcTree = new XDocument(įrom el in srcTree.Element("Root").Elements() It then composes another document using the results of a query. The following example creates a document, and then adds a comment and an element to it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |