Class XmlObjectHelper
Class to extract data from xml without caring about namespaces etc.
Inheritance
XmlObjectHelper
Assembly: SoCore.dll
Syntax
public static class XmlObjectHelper : Object
Methods
GetBoolValue(String, String)
Class to extract data from xml without caring about namespaces etc.
Declaration
public static bool GetBoolValue(string xml, string propertyName)
Parameters
Returns
GetBoolValue(XElement, String)
Class to extract data from xml without caring about namespaces etc.
Declaration
public static bool GetBoolValue(this XElement xml, string propertyName)
Parameters
Returns
GetIntValue(String, String)
Class to extract data from xml without caring about namespaces etc.
Declaration
public static int GetIntValue(string xml, string propertyName)
Parameters
Returns
GetIntValue(XElement, String)
Class to extract data from xml without caring about namespaces etc.
Declaration
public static int GetIntValue(this XElement xml, string propertyName)
Parameters
Returns
GetObject(String, String)
Class to extract data from xml without caring about namespaces etc.
Declaration
public static XElement GetObject(string xml, string propertyName)
Parameters
Returns
GetObject(XElement, String)
Class to extract data from xml without caring about namespaces etc.
Declaration
public static XElement GetObject(this XElement xml, string propertyName)
Parameters
Returns
GetStringValue(String, String)
Declaration
public static string GetStringValue(string xml, string propertyName)
Parameters
Returns
GetStringValue(XElement, String)
Declaration
public static string GetStringValue(this XElement xml, string propertyName)
Parameters
Type |
Name |
Description |
XElement |
xml |
Xml object
|
String |
propertyName |
Name of property of xml object
|
Returns
GetStringValue2(XElement, String)
Get property as string and trim
Declaration
public static string GetStringValue2(this XElement e, string propertyName)
Parameters
Type |
Name |
Description |
XElement |
e |
Xml object
|
String |
propertyName |
Name of property of xml object
|
Returns