IsBefore Returns a Boolean value that specifies whether the current node
appears before a specified node.
Load Provides multiple mechanisms for creating new XElement objects from
an external source. Sources can include a TextReader, String, or
XmlReader (each with an additional option to preserve whitespace).
Nodes Returns a collection of child nodes of the current element or document.
NodesAfterSelf Returns a collection of ordered nodes after (that follow) the current
node.
NodesBeforeSelf Returns a collection of ordered nodes before the current node.
Parse Loads an XML document from a string containing XML. Can optionally
preserve whitespace.
Remove Removes the current node from its parent.
RemoveNodes Removes all nodes from the XML document or current element.
Save Serializes the current element??™s XmlTree to several output options, such
as a file, XmlTextWriter, XmlWriter, and TextWriter.
The following example creates an XML document that contains employee information along with
processing instructions and a comment, utilizing all of the classes previously discussed, including the
XDocument and XElement classes.
Pages:
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199