Click or drag to resize

XmlUtils Class

Xml utility methods for all classes inside this namespace or child namespaces
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.Core.XmlXmlUtils

Namespace:  SD.LLBLGen.Pro.Core.Xml
Assembly:  SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.10.0.0 (5.10.0)
Syntax
public static class XmlUtils

The XmlUtils type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateXmlReader(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.
Public methodStatic memberCreateXmlReader(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.
Public methodStatic memberCreateXmlReader(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.
Public methodStatic memberCreateXmlWriter(Stream, Encoding)
Creates a new XML text writer with the encoding specified which will write to the stream specified.
Public methodStatic memberCreateXmlWriter(String, Encoding)
Creates a new XML text writer with the encoding specified
Public methodStatic memberDeserializeNameValuePairs(XmlReader, DictionaryString, String, Boolean)
Deserializes name value pairs serialized with SerializeNameValuePairs.
Public methodStatic memberDeserializeNameValuePairs(XmlReader, DictionaryString, String, Boolean, String)
Deserializes name value pairs serialized with SerializeNameValuePairs.
Public methodStatic memberFixUpXmlExceptionFromSource
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.
Public methodStatic memberGetAttributeValue(XmlNode, String)
Gets the attribute value.
Public methodStatic memberGetAttributeValue(XmlNode, String, String)
Gets the attribute value.
Public methodStatic memberGetNamespaceManager
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'
Public methodStatic memberSerializeNameValuePairs(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'.
Public methodStatic memberSerializeNameValuePairs(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'.
Public methodStatic memberXmlAddAttribute
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
Public methodStatic memberXmlAddNode(XmlNode, String)
Adds a new XmlNode with the name nodeName to the node parentNode specified
Public methodStatic memberXmlAddNode(XmlNode, String, String)
Adds a new XmlNode with the name nodeName and the value nodeValue to the node parentNode specified
Public methodStatic memberXmlCreateNewNode
Adds a new XmlNode with the name nodeName to the document specified. Does not add the node to any parent node.
Top
See Also