Click or drag to resize
XmlUtil Class
Utility class (primarily) for XML string handling.
Inheritance Hierarchy
SystemObject
  DXMLBase.XmlXmlUtil

Namespace: DXMLBase.Xml
Assembly: DXMLBase (in DXMLBase.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static class XmlUtil

The XmlUtil type exposes the following members.

Methods
  NameDescription
Public methodStatic memberencodeAsCData
Output a text value as a CDATA section
Public methodStatic memberencodeAttribute
Encode an attribute value as XML to a stream.
Public methodStatic memberencodeText
Public methodStatic memberescape(String)
Public methodStatic memberescape(String, Int32)
Public methodStatic membergetLocalName
Returns the local name from a qname.
Public methodStatic membergetPrefix
Returns the prefix from a qname.
Public methodStatic membergetPseudoAttribute
Return the value of a pseudo XML attribute from a string. A pseudo attribute has the same syntax as an XML element attribute but is not from an element. For example, the xml-stylesheet processing instruction has pseudo attributes.
Public methodStatic memberisNamespaceDecl
Checks an attribute qname to see if it is a namespace declaration
Public methodStatic memberisNCName(Char)
returns whether the passed character matches the XML Namespace "NCName" production
Public methodStatic memberisNCName(String)
returns whether the passed string matches the XML Namespace "NCName" production
Public methodStatic memberisNCNameChar
Returns whether the specified character conforms to the NCNameChar production in the XML Namespace grammar. Such a character is allowed as the second or subsequent character in an XML 1.0 name.
Public methodStatic memberisPITarget
Returns whether the passed string conforms to the PITarget production in the XML 1.0 Recommendation.
Public methodStatic memberisQName
Returns whether the passed string conforms to the QName production found in XML Names: http://www.w3.org/TR/REC-xml-names
Public methodStatic memberisXmlEncName
Return true if the passed string conforms to the XML EncName production. [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*
Public methodStatic memberisXmlName(Char)
Returns whether the specified char conforms to the Name production in the XML 1.0 grammar.
Public methodStatic memberisXmlName(String)
Returns whether the specified string conforms to the Name production in the XML 1.0 grammar.
Public methodStatic memberisXmlNameChar
Returns whether the specified character conforms to the NameChar production in the XML 1.0 grammar. Such a character is allowed as the second or subsequent character in an XML 1.0 name.
Public methodStatic memberisXmlValid
Return true if all of the characters in the passed string are valid XML characters.
Public methodStatic memberisXmlVersionNum
Return true if the passed string conforms to the XML VersionNum production. [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+
Public methodStatic memberisXmlWhitespace(Char)
Returns whether the specified char conforms to the S production in the XML 1.0 grammar. Such a string consists only of XML whitespace.
Public methodStatic memberisXmlWhitespace(String)
Returns whether the specified string conforms to the S production in the XML 1.0 grammar. Such a string consists only of XML whitespace.
Public methodStatic membernormalizeWhitespace
Normalize whitespace in a string by stripping leading and trailing whitespace, and converting all internal sequences of whitespace into a single space each.
Public methodStatic memberquote(String)
Public methodStatic memberquote(String, Int32)
Public methodStatic memberreplaceBuiltInEntities
Replace XML's built-in references (&, etc.) with the corresponding characters.
Public methodStatic membertoXml(String)
Public methodStatic membertoXml(String, String)
Top
Fields
  NameDescription
Public fieldStatic memberDIGITS
Public fieldStatic memberHEX_DIGITS
Top
Properties
  NameDescription
Public propertyStatic memberNULL_NAMESPACE
Top
Bibliography
See Also