XmlUtils Class |
Namespace: PDTec.IceNet.Sdk.Utils
public static class XmlUtils
The XmlUtils type exposes the following members.
Name | Description | |
---|---|---|
GetOptionalAttribute(XmlElement, String, String) |
Gets the named attribute value. Returns a default value if the attribute
is not available.
| |
GetOptionalAttributeT(XmlElement, String, XmlUtilsParseUTT, UTT) | ||
GetRequiredAttribute(XmlElement, String) |
Gets the named attribute value. Throws an exception if the attribute
is not available.
| |
GetRequiredAttributeT(XmlElement, String, XmlUtilsParseUTT) | ||
GetRequiredElement |
Gets the named child element. Throws an exception if the child element
is not available.
| |
ImportAuthorization |
Imports authorization (permissions, qualifications) after successful data import.
| |
ImportKeys |
Imports keys after successful data import.
| |
IsLegalXmlChar |
Whether a given character is allowed by XML 1.0.
| |
IsLegalXmlText |
Whether a given text is allowed by XML 1.0.
| |
Localize(String, XmlElement) |
Localizes XML content by treating text content embedded in "[T:...]" as
resource keys. The resource texts are retrieved from configuration
component componentName.
| |
Localize(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.
| |
Localize(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.
| |
Localize(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.
| |
ProcessOptionalElement |
Processes an optional child element by executing the specified action if available.
If no matching child element is available, the action is not executed.
| |
ProcessRequiredElement |
Processes a required child element by executing the specified action.
Throws an exception if the child element is not available.
| |
SaveFormatted(Stream, XmlDocument) |
Saves an XmlDocument to a stream using hierarchical indenting (four spaces per level).
| |
SaveFormatted(String, XmlDocument) |
Saves an XmlDocument to a file using hierarchical indenting (four spaces per level).
| |
SaveFormatted(Stream, XmlDocument, String) |
Saves an XmlDocument to a stream using hierarchical indenting.
| |
SaveFormatted(String, XmlDocument, String) |
Saves an XmlDocument to a file using hierarchical indenting.
| |
SaveUnformatted(Stream, XmlDocument) |
Saves an XmlDocument to a stream without hierarchical indenting.
| |
SaveUnformatted(String, XmlDocument) |
Saves an XmlDocument to a file without hierarchical indenting.
| |
SerializeToXmlString |
Serializes a CLR object to XML for diagnostic/debugging purpose.
| |
WriteShallowNode |
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.
|