Class XmlHelper
Inheritance
System.Object
XmlHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Simplic.Framework.Foundation.dll
Syntax
Methods
|
Improve this Doc
View Source
FindChild(XmlNode, String)
Declaration
public static XmlNode FindChild(XmlNode ParentNode, string ChildName)
Parameters
Type |
Name |
Description |
System.Xml.XmlNode |
ParentNode |
|
System.String |
ChildName |
|
Returns
Type |
Description |
System.Xml.XmlNode |
|
|
Improve this Doc
View Source
GetAttributeValue<T>(XmlNode, String, T)
Get the Value of an Attribute
Declaration
public static T GetAttributeValue<T>(XmlNode Node, string AttributeName, T DefaultValue = null)
Parameters
Type |
Name |
Description |
System.Xml.XmlNode |
Node |
|
System.String |
AttributeName |
|
T |
DefaultValue |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetCodeBlockContent(XmlNode)
Declaration
public static string GetCodeBlockContent(XmlNode Node)
Parameters
Type |
Name |
Description |
System.Xml.XmlNode |
Node |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetCodeBlockContentAsBinary(XmlNode)
Declaration
public static byte[] GetCodeBlockContentAsBinary(XmlNode Node)
Parameters
Type |
Name |
Description |
System.Xml.XmlNode |
Node |
|
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
GetXmlCodeBlock(String, Byte[], Object[])
Declaration
public static string GetXmlCodeBlock(string TagName, byte[] Content, params object[] AttributeAndValue)
Parameters
Type |
Name |
Description |
System.String |
TagName |
|
System.Byte[] |
Content |
|
System.Object[] |
AttributeAndValue |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetXmlCodeBlock(String, String, Object[])
Declaration
public static string GetXmlCodeBlock(string TagName, string Content, params object[] AttributeAndValue)
Parameters
Type |
Name |
Description |
System.String |
TagName |
|
System.String |
Content |
|
System.Object[] |
AttributeAndValue |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetXmlTag(String, Boolean, Object[])
Declaration
public static string GetXmlTag(string TagName, bool CloseTag, params object[] AttributeAndValue)
Parameters
Type |
Name |
Description |
System.String |
TagName |
|
System.Boolean |
CloseTag |
|
System.Object[] |
AttributeAndValue |
|
Returns
Type |
Description |
System.String |
|