Click or drag to resize

XmlUtils Methods

The XmlUtils type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetOptionalAttribute(XmlElement, String, String)
Gets the named attribute value. Returns a default value if the attribute is not available.
Public methodStatic memberGetOptionalAttributeT(XmlElement, String, XmlUtilsParseUTT, UTT)
Public methodStatic memberGetRequiredAttribute(XmlElement, String)
Gets the named attribute value. Throws an exception if the attribute is not available.
Public methodStatic memberGetRequiredAttributeT(XmlElement, String, XmlUtilsParseUTT)
Public methodStatic memberGetRequiredElement
Gets the named child element. Throws an exception if the child element is not available.
Public methodStatic memberImportAuthorization
Imports authorization (permissions, qualifications) after successful data import.
Public methodStatic memberImportKeys
Imports keys after successful data import.
Public methodStatic memberIsLegalXmlChar
Whether a given character is allowed by XML 1.0.
Public methodStatic memberIsLegalXmlText
Whether a given text is allowed by XML 1.0.
Public methodStatic memberLocalize(String, XmlElement)
Localizes XML content by treating text content embedded in "[T:...]" as resource keys. The resource texts are retrieved from configuration component componentName.
Public methodStatic memberLocalize(String, XmlElement, CultureInfo)
Localizes XML content by treating text content embedded in "[T:...]" as resource keys. The resource texts are retrieved from configuration component componentName.
Public methodStatic memberLocalize(String, XmlReader, XmlWriter)
Localizes XML content by transferring nodes from reader to writer and treating text content embedded in "[T:...]" as resource keys. The resource texts are retrieved from configuration component componentName.
Public methodStatic memberLocalize(String, XmlReader, XmlWriter, CultureInfo)
Localizes XML content by transferring nodes from reader to writer and treating text content embedded in "[T:...]" as resource keys. The resource texts are retrieved from configuration component componentName.
Public methodStatic memberProcessOptionalElement
Processes an optional child element by executing the specified action if available. If no matching child element is available, the action is not executed.
Public methodStatic memberProcessRequiredElement
Processes a required child element by executing the specified action. Throws an exception if the child element is not available.
Public methodStatic memberSaveFormatted(Stream, XmlDocument)
Saves an XmlDocument to a stream using hierarchical indenting (four spaces per level).
Public methodStatic memberSaveFormatted(String, XmlDocument)
Saves an XmlDocument to a file using hierarchical indenting (four spaces per level).
Public methodStatic memberSaveFormatted(Stream, XmlDocument, String)
Saves an XmlDocument to a stream using hierarchical indenting.
Public methodStatic memberSaveFormatted(String, XmlDocument, String)
Saves an XmlDocument to a file using hierarchical indenting.
Public methodStatic memberSaveUnformatted(Stream, XmlDocument)
Saves an XmlDocument to a stream without hierarchical indenting.
Public methodStatic memberSaveUnformatted(String, XmlDocument)
Saves an XmlDocument to a file without hierarchical indenting.
Public methodStatic memberSerializeToXmlString
Serializes a CLR object to XML for diagnostic/debugging purpose.
Public methodStatic memberCode exampleWriteShallowNode
This method is useful for streaming transformation with the XmlReader and the XmlWriter. It pushes through single nodes in the stream. The XmlWriter.WriteNode method is useful in pulling from an XmlReader and pushing to an XmlWriter to achieve this, but it does have a limitation in that it writes the current node and all its children to the XmlWriter without providing more fine-grained control.
Top
See Also