XmlHelper Class | 
Namespace: Tangosol.Run.Xml
public abstract class XmlHelper
The XmlHelper type exposes the following members.
| Name | Description | |
|---|---|---|
| AddElements | 
            Add the elements from the IEnumerator to the passed XML.
              | |
| Convert | 
            Convert the passed object to the specified type.
              | |
| ConvertDocument | 
            Converts specified System.Xml.XmlDocument into
            IXmlDocument.
              | |
| ConvertElement | 
            Converts specified System.Xml.XmlElement into
            IXmlElement.
              | |
| CreateDelegateTDel | 
            Creates a delegate from a given configuration.
            IXmlElement of the following structure:
             
            $lt;delegate>
               <static/> | <instance/>
               <class-name></class-name>
               <delegate-type></delegate-type>
               <method-name></method-name>
            </delegate>
             | |
| CreateInstance(IXmlElement, XmlHelperIParameterResolver) | 
            Create an instance of the class configured using an
            IXmlElement of the following structure:
             
            <!ELEMENT ... (class-name | (class-factory-name, method-name),
            init-params?>
            <!ELEMENT init-params (init-param*)>
            <!ELEMENT init-param ((param-name | param-type), param-value,
            description?)>
            
            As of Coherence 12.1.2 the supplied element may also be of the 
            following format:
            
            <!ELEMENT instance>
            
            where the "instance" format is the same as above.
             | |
| CreateInstance(IXmlElement, XmlHelperIParameterResolver, Type) | 
            Create an instance of the class configured using an
            IXmlElement of the following structure:
             
            <!ELEMENT ... (class-name | (class-factory-name, method-name),
            init-params?>
            <!ELEMENT init-params (init-param*)>
            <!ELEMENT init-param ((param-name | param-type), param-value,
            description?)>
            
            As of Coherence 12.1.2 the supplied element may also be of the 
            following format:
            
            <!ELEMENT instance>
            
            where the "instance" format is the same as above.
             | |
| DecodeAttribute | 
            Decode an attribute value that was quoted.
              | |
| DecodeContent | 
            Decode an element's content value.
              | |
| DecodeUri | 
            Decode a System Identifier as per the XML 1.0 Specification 2nd
            ed section 4.2.2.
              | |
| EncodeAttribute | 
            Encode an attribute value so that it can be quoted and made part
            of a valid and well formed XML document.
              | |
| EncodeContent | 
            Encode an element's content value so that it can be made part of
            a valid and well formed XML document.
              | |
| EncodeUri | 
            Encode a System Identifier as per the XML 1.0 Specification
            second edition, section 4.2.2.
              | |
| EnsureElement | 
            Ensure that a child element exists.
              | |
| EnsureNamespace | 
            Ensure the existence of the Namespace declaration attribute in a
            context of the specified IXmlElement.
              | |
| Equals | (Inherited from Object.) | |
| EqualsElement | 
            Compare one XML element with another XML element for equality.
              | |
| EqualsValue | 
            Compare one XML value with another XML value for equality.
              | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.  (Inherited from Object.) | |
| FindElement(IXmlElement, String) | 
            Find a child element with the specified '/'-delimited path.
              | |
| FindElement(IXmlElement, String, Object) | 
            Find a child element with the specified '/'-delimited path and
            the specified value.
              | |
| GetAbsolutePath | 
            Get the '/'-delimited path of the passed element starting from
            the root element.
              | |
| GetAttribute | 
            Get an attribute of the specified IXmlElement that
            matches to the specified local name and the specified Namespace
            URI.
              | |
| GetElement(IXmlElement, String) | 
            Get a child element for the specified element.
              | |
| GetElement(IXmlElement, String, String) | 
            Get a child element of the specified IXmlElement
            that matches to the specified local name and the specified
            Namespace URI.
              | |
| GetElements | 
            Get an IEnumerator of child elements of the specified
            IXmlElement that match to the specified local name
            and the specified Namespace URI.
              | |
| GetHashCode | Serves as a hash function for a particular type.   (Inherited from Object.) | |
| GetNamespacePrefix | 
            Retrieve the Namespace prefix for a given URI in a context of the
            specified IXmlElement.
              | |
| GetNamespaceUri | 
            Retrieve the Namespace URI for a given prefix in a context of the
            specified IXmlElement.
              | |
| GetType | Gets the Type of the current instance.  (Inherited from Object.) | |
| GetUniversalName | 
            Return a universal XML element name.
              | |
| HashElement | 
            Provide a hash value for the XML element and all of its contained
            information.
              | |
| HashValue | 
            Provide a hash value for the XML value.
              | |
| IsCommentValid | 
            Validate the passed comment.
              | |
| IsElementMatch | 
            Check whether or not an element matches to the specified local
            name and Namespace URI.
              | |
| IsEmpty | 
            Check whether or not this element or any of its children elements
            have any content such as values or attributes.
              | |
| IsEncodingValid | 
            Validate the passed encoding.
              | |
| IsInstanceConfigEmpty | 
            Check whether or not the specified configuration defines an
            instance of a class.
              | |
| IsNameMatch | 
            Check whether or not a universal (composite) name matches to the
            specified local name and Namespace URI.
              | |
| IsNameValid | 
            Validate the passed name.
              | |
| IsPublicIdentifierValid | 
            Validate the passed public identifier.
              | |
| IsSystemIdentifierValid | 
            Validate the passed system identifier.
              | |
| IsWhitespace | 
            Test if the specified character is XML whitespace.
              | |
| LoadResource | 
            Load an XML configuration from a resource.
              | |
| LoadXml(Stream) | 
            Load XML from a stream.
              | |
| LoadXml(TextReader) | 
            Load XML from a reader.
              | |
| LoadXml(String) | 
            Load XML from a resource specified by path.
              | |
| LoadXml(IResource) | 
            Load XML from a given IResource.
              | |
| LoadXml(Stream, Encoding) | 
            Load XML from a stream using the specified encoding.
              | |
| LookupXmlValueType | 
            Convert a string type to known XmlValueTypes, if any.
              | |
| MemberwiseClone | Creates a shallow copy of the current Object.  (Inherited from Object.) | |
| OverrideElement(IXmlElement, IXmlElement) | 
            Override the values of the specified base element with values
            from the specified override element.
              | |
| OverrideElement(IXmlElement, IXmlElement, String) | 
            Override the values of the specified base element with values
            from the specified override element.
              | |
| ParseInitParams(IXmlElement) | 
            Parse the specified "init-params" element of the following
            structure:
             
            <!ELEMENT init-params (init-param*)>
            <!ELEMENT init-param ((param-name | param-type), param-value,
            description?)>
            
            into an object array.
             | |
| ParseInitParams(IXmlElement, XmlHelperIParameterResolver) | 
            Parse the specified "init-params" element of the following
            structure:
             
            <!ELEMENT init-params (init-param*)>
            <!ELEMENT init-param ((param-name | param-type), param-value,
            description?)>
            
            into an object array.
             | |
| ParseMemorySize(String) | 
            Parse the given string representation of a number of bytes.
              | |
| ParseMemorySize(String, Int32) | 
            Parse the given string representation of a number of bytes.
              | |
| ParseTime(String) | 
            Parse the given string representation of a time duration and
            return its value as a number of milliseconds.
              | |
| ParseTime(String, Int32) | 
            Parse the given string representation of a time duration and
            return its value as a number of milliseconds.
              | |
| PurgeChildrenNamespace | 
            For the children elements of the specified
            IXmlElement purge the repetetive Namespace
            declarations.
              | |
| PurgeNamespace | 
            For the specified IXmlElement purge the Namespace
            declarations that are declared somewhere up the xml tree.
              | |
| Quote | 
            XML quote the passed string.
              | |
| RemoveElement | 
            Remove all immediate child elements with the given name.
              | |
| ReplaceElement | 
            Replace a child element with the same name as the specified
            element.
              | |
| ToString | Returns a string that represents the current object.  (Inherited from Object.) | |
| TransformInitParams | 
            Transform the specified "init-params" element of the following
            structure:
             
            <!ELEMENT init-params (init-param*)>
            <!ELEMENT init-param ((param-name | param-type), param-value,
            description?)>
            
            into an XML element composed of the corrsponding names. For
            example, the "init-params" element of the following structure:
            
            <init-param>
                <param-name>NameOne</param-name>
                <param-value>ValueOne</param-value>
            </init-param>
            <init-param>
                <param-name>NameTwo</param-name>
                <param-value>ValueTwo</param-value>
            </init-param>
            
            will transform into
            
            <NameOne>ValueOne</NameOne>
            <NameTwo>ValueTwo</NameTwo>
             | |
| Trim | 
            Trim XML whitespace.
              | |
| Trimb | 
            Trim trailing XML whitespace.
              | |
| Trimf | 
            Trim leading XML whitespace.
              | 
| Name | Description | |
|---|---|---|
| POWER_0 | 
            An exponent of zero.
              | |
| POWER_G | 
            An exponent of 30.
              | |
| POWER_K | 
            An exponent of 10.
              | |
| POWER_M | 
            An exponent of 20.
              | |
| POWER_T | 
            An exponent of 40.
              | |
| UNIT_D | 
            A unit of days.
              | |
| UNIT_H | 
            A unit of hours.
              | |
| UNIT_M | 
            A unit of minutes.
              | |
| UNIT_MS | 
            A unit of milliseconds.
              | |
| UNIT_S | 
            A unit of seconds.
              | |
| UNRESOLVED | 
            A constant that indicates that the parameter cannot be resolved.
              |