Click or drag to resize
XdsUtil Class
A collection of utility methods for dealing with the XDS vocabulary of XML.
Inheritance Hierarchy
SystemObject
  DXMLBase.XdsXdsUtil

Namespace: DXMLBase.Xds
Assembly: DXMLBase (in DXMLBase.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static class XdsUtil

The XdsUtil type exposes the following members.

Methods
  NameDescription
Public methodStatic memberappendNode
Append a node as a child of another node. If the target and source nodes do not have the same owner document then the source is imported into the target's document. If the source is an XmlDocumentFragment then the children of the source are each appended in order to the target.
Public methodStatic membergetAssociation
Get the association value string of the first child <association> element (if any) of the passed parent element.
Public methodStatic membergetAttr
Utility method that returns the attribute value from an element, or a default value if the attribute isn't set on the element
Public methodStatic membergetChildElementsByTagName
Get an enumeration of all of the child elements of the passed parent which match the passed element name.
Public methodStatic membergetFirstChildElementByTagName
Get the first child element of the passed parent node whose name matches that passed.
Public methodStatic membergetFirstChildElementByTagNameWithAttrValue
Get the first child element of a node with a particular tag name and a particular attribute/value pair (value is case sensitive)
Public methodStatic membergetNullAttribute
Get an XmlElement's attribute value, returning null if the attribute value is empty.
Public methodStatic membergetValues
Public methodStatic memberremoveAllChildren
Remove all of the child nodes of an XmlNode.
Public methodStatic membersetAttr
Utility method that sets an attribute value on an element. Will clear any existing attribute if value is null, empty, or matches the default value.
Public methodStatic membersetNonEmptyAttribute
Set an XML attribute on an element only if the attribute value is non-null and non-empty. Removes any existing attribute.
Top
Properties
  NameDescription
Public propertyStatic memberNULL_NAMESPACE
A string representing the null, or empty namespace URI.
Public propertyStatic memberWILDCARD_NAME
A string representing any local name part.
Public propertyStatic memberWILDCARD_NAMESPACE
A string representing any namespaceURI (including the null or empty URI).
Top
See Also