XmlUtils Class |
Namespace: SD.LLBLGen.Pro.Core.Xml
The XmlUtils type exposes the following members.
Name | Description | |
---|---|---|
CreateXmlReader(Stream) |
Creates a new XML text reader which will read xml from the input stream specified. It creates an XmlTextReader, as the XmlReader.Create()
routine creates always a normalizing reader which always converts CRLFs into \n.
| |
CreateXmlReader(TextReader) |
Creates a new XML text reader. It creates an XmlTextReader, as the XmlReader.Create() routine creates always a normalizing reader which always converts
CRLFs into \n.
| |
CreateXmlReader(String) |
Creates a new XML text reader. It creates an XmlTextReader, as the XmlReader.Create() routine creates always a normalizing reader which always converts
CRLFs into \n.
| |
CreateXmlWriter(Stream, Encoding) |
Creates a new XML text writer with the encoding specified which will write to the stream specified.
| |
CreateXmlWriter(String, Encoding) |
Creates a new XML text writer with the encoding specified
| |
DeserializeNameValuePairs(XmlReader, DictionaryString, String, Boolean) |
Deserializes name value pairs serialized with SerializeNameValuePairs.
| |
DeserializeNameValuePairs(XmlReader, DictionaryString, String, Boolean, String) |
Deserializes name value pairs serialized with SerializeNameValuePairs.
| |
FixUpXmlExceptionFromSource |
Fixes up XML exception with real xml from the source represented by streamReader. It reads 10 lines max around the line number in the exception.
| |
GetAttributeValue(XmlNode, String) |
Gets the attribute value.
| |
GetAttributeValue(XmlNode, String, String) |
Gets the attribute value.
| |
GetNamespaceManager |
Gets the namespace manager for the document passed in. This lame namespace manager is needed because MS' XPath methods like SelectNode REQUIRE
a namespace manager if a default namespace is defined, which is cumbersome, as all xpath queries have to use a FAKE prefix now. The fake prefix
is 'sd'
| |
SerializeNameValuePairs(XmlWriter, DictionaryString, String, Boolean, Boolean, String) |
Serializes the name value pairs passed in to the writer passed in in elements of the name elementName. By default, the key is written as attribute 'Name'
and the value is written as attribute 'Value'.
| |
SerializeNameValuePairs(XmlWriter, DictionaryString, String, Boolean, Boolean, String, String) |
Serializes the name value pairs passed in to the writer passed in in elements of the name elementName. By default, the key is written as attribute 'Name'
and the value is written as attribute 'Value'.
| |
XmlAddAttribute |
Creates a new attribute with the name attributeName and the value attributeValue in the attributeCollection of the node parentNode, using
the parentNode's owner document
| |
XmlAddNode(XmlNode, String) |
Adds a new XmlNode with the name nodeName to the node parentNode specified
| |
XmlAddNode(XmlNode, String, String) |
Adds a new XmlNode with the name nodeName and the value nodeValue to the node parentNode specified
| |
XmlCreateNewNode |
Adds a new XmlNode with the name nodeName to the document specified. Does not add the node to any
parent node.
|