Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
C#
XML 334 codes
Home
C#
XML
1 A Simple XML Example
2 Access Attributes
3 Add XmlElement
4 Adds a new attribute to the given target element
5 Adds an XmlAttribute to a XmlNode
6 Adds node to the beginning of the list of child nodes
7 Adds the specified node to the end of the list of child nodes, of this node
8 Adds the specified XmlAttribute
9 Alphabetical sorting of the XmlNodes
10 Append Child
11 Append element
12 Appends a new element containing a text value to the given target element
13 Appends a new empty element to the given target element
14 Attempts to get and cast attribute from an XmlElement
15 Attempts to get and convert an attribute from an XmlElement
16 Attribute Util
17 Call GetElementsByTagName to get an element
18 Choose ValidationType
19 Clean Xml
20 Close an element
21 Closes one element and pops the corresponding namespace scope
22 Closes this stream and the underlying stream
23 Control Serialization of Derived Classes
24 Control the formatting
25 Convert a stream of text lines separated with newline sequences into an XML build result
26 Convert an XmlNode to an object
27 Convert String To XmlReader
28 Converts a SOAP string to an object
29 Converts an object to a SOAP string
30 Converts an XML string to an object
31 Convets the value in an XML element to a nullable DateTime
32 Copies everything from the reader to the writer
33 Copy everything from the XPathNavigator to writer
34 Create an element type XmlNode like text value
35 Create and set attribute
36 Create Attribute, Text Element, Image Element,Read Image Element
37 Create Stylesheet
38 Create Xml Attribute, Node
39 Create XML document
40 Create XML document with XmlWriter
41 Create Xml Document, Node
42 Create XmlTextReader with TextReader
43 Create XmlTextReader with the specified string, XmlNodeType, and XmlParserContext
44 Create XmlWriter using the static XmlWriter Create method
45 Creates a duplicate of this node
46 Creates a new XmlWriter instance using the specified filename
47 Creates a new XmlWriter instance using the specified stream
48 Creates a new XmlWriter instance using the specified TextWriter
49 Creates a new XmlWriter instance using the stream and XmlWriterSettings object
50 Creates a new XmlWriter instance using the TextWriter and XmlWriterSettings objects
51 Creates a XML encoding of the collection object and its current state with a given root name
52 Creates an XPathNavigator for navigating this object
53 Creates the element
54 Decodes Base64 and returns the decoded binary bytes
55 Deserialize with XmlSerializer
56 DeserializesSerializes an xml document back into an object
57 Display XML file content to TreeView
58 DOM feature check
59 Encodes the specified binary bytes as Base64 and writes out the resulting text
60 Encodes the specified binary bytes as BinHex and writes out the resulting text
61 Extensions XPathSelectElement selects an XElement using a XPath expression
62 Extensions XPathSelectElements Selects a collection of elements using an XPath expression
63 Find a single Attribute of the type attributeType from the supplied class
64 Find and get Attribute value
65 Find Elements with an XPath Search
66 Finds an attribute with the given name in the given XML node and returns the attribute of the value
67 Flush what is in the buffer to the underlying streams and flush the underlying stream
68 Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream
69 For each style iteration over the nodes in the XmlNode
70 Format Xml
71 Get an array of nodes matching an XPath expression
72 Get Attribute and return Int64
73 Get Attribute and return Int64 or throw exception
74 Get attribute from XmlNode
75 Get attribute or return default value
76 Get Attribute Value
77 Get Attribute value (2)
78 Get attribute value (3)
79 Get attribute value and convert to integer type
80 Get attribute value and convert to integer type or throw exception
81 Get attribute value or throw exception
82 Get Attribute With Conversion
83 Get Bool Attribute Or Throw exception
84 Get boolean value from Xml
85 Get boolean value if an attribute is 1 or true
86 Get first child and its Node List
87 Get Formatted Xml
88 Get Inner Xml
89 Get InnerXml without changing the spacing
90 Get Int Attribute
91 Get Int value from xml attribute
92 Get Intrinsic Simple Types Names from System Xml Schema DatatypeImplementation
93 Get int type attribute value
94 Get int value from Xml
95 Get integer value from xml element
96 Get Text Attribute
97 Get the Xml Text node value
98 Get value as DateTime
99 Get Value String from Xml
100 Get XML Elements By Tag Name
101 Get XML Nodes in a Specific XML Namespace
102 Get Xml value as Integer
103 Get Xml value as TimeSpan
104 Gets a boolean value indicating whether the current node has any attributes
105 Gets a string from an attribute or node
106 Gets a value indicating whether the current node can have a Value other than String Empty
107 Gets a value indicating whether the current node is an empty element (for example, MyElement)
108 Gets all the child nodes of the node
109 Gets an appropriate System Xml XmlReader implementation for the supplied System IO Stream
110 Gets an XmlAttributeCollection containing the attributes of this node
111 Gets an XmlAttributeCollection containing the list of attributes
112 Gets or sets a value indicating whether to normalize white space and attribute values
113 Gets or sets a value that specifies how white space is handled
114 Gets or sets the concatenated values of the node and all its child nodes
115 Gets or sets the concatenated values of the node and all its children
116 Gets or sets the tag format of the element
117 Gets the base URI of the current node
118 Gets the current line position
119 Gets the current xml
120 Gets the depth of the current node in the XML document
121 Gets the first child element with the specified Name
122 Gets the first child of the node
123 Gets the last child of the node
124 Gets the local name of the current node
125 Gets the markup representing this node and all its child nodes
126 Gets the node immediately following this node
127 Gets the node immediately preceding this node
128 Gets the number of attributes on the current node
129 Gets the qualified name of the current node
130 Gets the qualified name of the node
131 Gets the text value from the element located by the given XPath
132 Gets the value of the attribute with the specified name
133 Gets the XML namespace manager
134 Gets the XmlDocument to which this node belongs
135 If a Xml node Has Attributes
136 Illustrates the XmlTextReader class
137 Illustrates the XmlTextWriter class
138 Illustrates the XslTransform class
139 Initializes a new instance of the XmlTextReader class with the specified file
140 Inserts the specified node immediately after the specified reference node
141 Inserts the specified node immediately before the specified reference node
142 Is Well Formed Xml
143 Is Xml Valid
144 Load boolean value from xml element
145 Load data in database table to XML format and save it to DataGrid
146 Load String from xml element
147 Load With Includes
148 Load xml document from xml file
149 Load Xml Document Sample
150 Load XML file to DataTable then add DataTable to ListView
151 Load Xml String
152 LoadXml
153 Looks up the closest xmlns declaration for the given namespace URI
154 Moves to the first attribute
155 Moves to the next attribute
156 Non CData Normalize
157 Parse Attribute
158 Parses the attribute value into one or more Text, EntityReference, or EndEntity nodes
159 Perform an XSL Transform
160 Perform an XSL Transformation using XML and XSL content and with some XSLT arguments
161 Pretty Print XML
162 Programmatically creating a new XML document
163 Read an XML Document and display the file as a Tree
164 Read An XML File
165 Read an XML file from the xml element and the xml attribute
166 Read and Write XML Without Loading an Entire Document into Memory
167 Read command line input and do the xml xsl translation
168 Read XML data from file into DataGrid
169 Read XML data from xml file
170 Read XML From URL
171 Read XML node using the XML path
172 Reading from an XML file
173 Reads a XML schema file and returns the information found in that
174 Reads the text contents of an element into a character buffer
175 Remove all the xml namespaces (xmlns) attributes in the xml string
176 Remove empty tags in the Xml string
177 Removes all specified attributes and children of the current node Default attributes are not removed
178 Removes all specified attributes from the element
179 Removes all the child nodes andor attributes of the current node
180 Removes an attribute by name
181 Removes an attribute with the specified local name and namespace URI
182 Removes specified child node
183 Removes the attribute node with the specified index from the element
184 Removes the XmlAttribute specified by the local name and namespace URI
185 Replaces the child node oldChild with newChild node
186 Resets the state of the reader to ReadState Initial
187 Returns an XmlNodeList containing a list of all descendant elements that match the Name
188 Returns the closest prefix defined in the current namespace scope for the namespace URI
189 Returns the InnerText value from a node or string Empty if the node is null
190 Returns the inner text of the single node selected from the specified xpath if found; otherwise, null
191 Returns the string result from evaluating an xpath expression against the given document and context
192 Returns the value for the attribute with the specified name
193 Returns the XmlAttribute with the specified name
194 Save data in DataGrid into XML file
195 Save the current node to the specified XmlWriter
196 Save, AppendChild, CreateXmlDeclaration, CreateElement
197 Saves all the children of the node to the specified XmlWriter
198 Saves the current node to the specified XmlWriter
199 Schema Reference Util
200 Select and display the value of all the ISBN attributes
201 Select by path
202 Selects a list of nodes matching the XPath expression
203 Selects the first XmlNode that matches the XPath expression
204 Serialize List of Objects
205 Serilize to Xml
206 Set Attribute Value
207 Set the value to the Element
208 Set Xml Attribute when serilzation
209 Set Xml Node Value
210 Set XmlReaderSettings
211 Sets the inner text in a node If the node doesnt exist, it creates a new one and adds the text to it
212 Sets the XmlResolver used for resolving DTD references
213 Strip Non Valid XML Characters
214 Takes an XML file and exports the Object it holds
215 Tiny Xml Serializer
216 Use Load method in XmlDocument to load xml document
217 Use SelectNodes to query nodes by XPath
218 Use specified Unicode character value
219 Use XML schema to validate XML documents
220 Use XML Serialization with Custom Objects
221 Use XmlReaderSettings to validate the Xml document
222 Use XmlSerializer
223 Use XmlTextWriter to create Xml document
224 Use XslCompiledTransform
225 Using XPath to get string value, integer value and boolean value
226 Validate an XML Document Against a Schema
227 Validate Schema
228 When overridden in a derived class, saves all the child nodes of the node to the specified XmlWriter
229 Write a processing instruction
230 Write attribute
231 Write the double value out
232 Write To XML File
233 Write XML document to console
234 Writes a DateTime value
235 Writes an attribute with the specified local name, namespace URI, and value
236 Writes out a ![CDATA[ ]] block containing the specified text
237 Writes out all the attributes found at the current position in the XmlReader
238 Writes out the given white space
239 Writes out the namespace-qualified name
240 Writes raw markup manually from a string
241 Writes text content
242 Writing XML with the XmlWriter Class
243 Xml encoding with StringBuilder
244 XML reader
245 XML reading functionality
246 Xml Serialization Helper
247 Xml Serialization Helper 2
248 Xml Serialization Manager
249 XML transformation
250 Xml Validation Helper
251 XML write
252 XmlNameTable of atomized string objects
253 XmlNodeType Text
254 XmlQuery Example
255 XmlReader AttributeCount Property returns the number of attributes
256 XmlReader Create (String) creates a new XmlReader instance with specified URI
257 XmlReader Create (String, XmlReaderSettings) creates XmlReader with URI and XmlReaderSettings
258 XmlReader Create (TextReader) creates a new XmlReader instance with the specified TextReader
259 XmlReader Create (TextReader, XmlReaderSettings, XmlParserContext)
260 XmlReader Create (XmlReader, XmlReaderSettings) creates XmlReader with XmlReader and XmlReaderSettings
261 XmlReader Create creates a new XmlReader instance
262 XmlReader Create creates a new XmlReader instance using the specified stream
263 XmlReader GetAttribute (String) returns the attribute with the specified Name
264 XmlReader GetAttribute return the value of the attribute with the specified index
265 XmlReader HasAttributes tells whether the current node has any attributes
266 XmlReader IsDefault
267 XmlReader IsEmptyElement tells whether the current node is an empty element (for example, MyElement)
268 XmlReader IsStartElement (String) tells if the current content node is a start tag or empty element tag
269 XmlReader Item Property returns the value of the attribute with the specified Name
270 XmlReader LocalName Property gets the local name of the current node
271 XmlReader MoveToAttribute (Int32) moves to the attribute with the specified index
272 XmlReader MoveToFirstAttribute moves to the first attribute
273 XmlReader Name Property gets the qualified name of the current node
274 XmlReader ReadContentAs reads the content as an object of the type specified
275 XmlReader ReadContentAsBoolean reads the text content at the current position as a Boolean
276 XmlReader ReadElementContentAs(Type, IXmlNamespaceResolver) reads the element content as the requested type
277 XmlReader ReadElementContentAsBinHex reads the element and decodes the BinHex content
278 XmlReader ReadElementContentAsDateTime reads the element and returns the contents as a DateTime object
279 XmlReader ReadElementContentAsDouble reads element and returns the contents as a double
280 XmlReader ReadElementContentAsLong reads the element and returns a 64-bit signed integer
281 XmlReader ReadElementContentAsObject reads the current element and returns the contents as an Object
282 XmlReader ReadElementContentAsString reads the element and returns the contents as a String object
283 XmlReader ReadElementString reads a text-only element
284 XmlReader ReadEndElement checks that the current content node is an end tag
285 XmlReader ReadInnerXml reads all the content, including markup, as a string
286 XmlReader ReadSubtree reads the current node, and all its descendants
287 XmlReader ReadToDescendant advances XmlReader to the next descendant element with the specified qualified name
288 XmlReader ReadToNextSibling (String) advances XmlReader to next sibling element with specified qualified name
289 XmlReader represents a reader that provides non-cached, forward-only access to XML data
290 XmlReader Skip skips the children of the current node
291 XmlRootAttribute
292 XmlSchema is an in-memory representation of an XML Schema
293 XmlSerializer Util
294 XmlTextWriter Indentation Property gets or sets how many IndentChars to write
295 XmlTextWriter LookupPrefix returns the closest prefix in the current namespace scope
296 XmlTextWriter WriteCData writes out a ![CDATA[ ]] block containing the specified text
297 XmlWriter writes XML data out
298 XPath Expression Syntax
299 XPath Query Demo
300 XPathNavigator AppendChild Creates a child node using XML data string
301 XPathNavigator AppendChildElement Creates a child element node at the end of the list
302 XPathNavigator CanEdit indicates whether the XPathNavigator can edit the underlying XML data
303 XPathNavigator Clone creates a XPathNavigator positioned at the same node
304 XPathNavigator CreateAttribute creates attribute node using namespace prefix, local name and namespace URI
305 XPathNavigator CreateAttributes returns an XmlWriter to create new attributes
306 XPathNavigator DeleteRange deletes a range of sibling nodes
307 XPathNavigator DeleteSelf deletes the current node and its child nodes
308 XPathNavigator Evaluate evaluates XPath expression and returns typed result
309 XPathNavigator Evaluate Uses context to evaluate the XPathExpression
310 XPathNavigator InnerXml Gets or sets the markup representing the child nodes
311 XPathNavigator InsertAfter creates a sibling node after the selected node
312 XPathNavigator InsertAfter creates node after the selected node
313 XPathNavigator InsertBefore creates a new sibling node before the selected node
314 XPathNavigator InsertElementAfter
315 XPathNavigator Matches tells whether the current node matches the specified XPathExpression
316 XPathNavigator MoveToFirstAttribute moves XPathNavigator to the first attribute of the current node
317 XPathNavigator MoveToFollowing moves XPathNavigator to the element with the local name and namespace URI
318 XPathNavigator NavigatorComparer Gets an IEqualityComparer used for equality comparison of XPathNavigator objects
319 XPathNavigator OuterXml gets or sets the markup of the current node and its child nodes
320 XPathNavigator PrependChild creates child node at the beginning
321 XPathNavigator PrependChildElement
322 XPathNavigator ReadSubtree reads the current node and its child nodes
323 XPathNavigator ReplaceRange replaces a range of sibling nodes
324 XPathNavigator ReplaceSelf replaces the current node
325 XPathNavigator Select Selects a node set, using the specified XPath expression
326 XPathNavigator SelectAncestors selects all the ancestor nodes of the current
327 XPathNavigator SelectSingleNode selects a single node in XPathNavigator using XPath query
328 XPathNavigator SetTypedValue Sets the typed value of the current node
329 XPathNavigator SetValue Sets the value of the current node
330 XPathNavigator ValueAsBoolean Gets the current nodes value as a Boolean
331 XPathNavigator ValueType Gets the NET Framework Type of the current node
332 XPathNavigator WriteSubtree outputs node and its child nodes to the XmlWriter
333 XPathNodeIterator
334 Xslt Transformation Helper