![]() |
Energy Core Library
|
XML support More...
Static Public Member Functions | |
| static string | Serialize (object data, string root, string space) |
| Serialize object to XML More... | |
| static string | Serialize (object data) |
| Serialize object to XML More... | |
| static string | Serialize (object data, string root) |
| Serialize object to XML More... | |
| static object | Deserialize (string content, Type type, string[] root, string space) |
| Deserialize object from XML, root alternatives allowed. More... | |
| static TDeserialize | Deserialize< TDeserialize > (string content) |
| Generic XML deserialization method. More... | |
| static object | Deserialize (string content, Type type) |
| Deserialize object from XML More... | |
| static object | Deserialize (string content, Type type, string root, string space) |
| Deserialize object from XML More... | |
| static object | Deserialize (string content, Type type, string root) |
| Deserialize object from XML More... | |
| static object | Deserialize (string content, Type type, string[] root) |
| Deserialize object from XML, root alternatives allowed More... | |
| static string | ReadXmlString (XmlReader reader) |
| Read XML string element More... | |
| static void | WriteXmlString (XmlWriter writer, string key, string value) |
| Write XML string element More... | |
| static void | WriteXmlString (XmlWriter writer, string key, object value) |
| Write XML string element More... | |
| static void | WriteXmlString (XmlWriter writer, string key, object value, bool empty) |
| Write XML string element More... | |
| static void | Write (XmlWriter writer, string key, object value) |
| Write XML element More... | |
| static string | GetXmlRoot (object _) |
| static string | GetXmlRoot (Type type) |
| static string | ExtractRoot (string xml) |
| Extract root element from XML. More... | |
| static string | ExtractRootShort (string xml) |
| Extract root element without namespace from XML. More... | |
XML support
|
static |
Deserialize object from XML, root alternatives allowed.
| content | string |
| type | System.Type |
| root | string[] |
| space | string |
|
static |
Deserialize object from XML
MyDictionary x = (MyDictionary)Energy.Base.Xml.Deserialize(xml, typeof(MyDictionary));
| content | string |
| type | System.Type |
|
static |
Deserialize object from XML
| content | string |
| type | System.Type |
| root | string |
| space | string |
|
static |
Deserialize object from XML
| content | string |
| type | System.Type |
| root | string |
|
static |
Deserialize object from XML, root alternatives allowed
| content | string |
| type | System.Type |
| root | string[] |
|
static |
Generic XML deserialization method.
| TDeserialize |
| content |
|
static |
Extract root element from XML.
| xml |
|
static |
Extract root element without namespace from XML.
| xml |
|
static |
|
static |
|
static |
Read XML string element
| reader | XmlReader |
|
static |
Serialize object to XML
Object class must implement IXmlSerializable interface
string xml = Energy.Base.Xml.Serialize(myObject, "Root", "org.example.xns");
| data | Object |
| root | XML root |
| space | XML namespace |
|
static |
Serialize object to XML
Object class must implement IXmlSerializable interface
string xml = Energy.Base.Xml.Serialize(myObject, "Root", "org.example.xns");
| data | Object |
|
static |
Serialize object to XML
Object class must implement IXmlSerializable interface
string xml = Energy.Base.Xml.Serialize(myObject, "Root", "org.example.xns");
| data | Object |
| root | XML root |
|
static |
Write XML element
| writer | XmlWriter |
| key | string |
| value | object |
|
static |
Write XML string element
| writer | XmlWriter |
| key | string |
| value | string |
|
static |
Write XML string element
| writer | XmlWriter |
| key | string |
| value | object |
|
static |
Write XML string element
| writer | XmlWriter |
| key | string |
| value | object |
| empty | bool |