|
Online Maps v3
|
Wrapper for XML. More...
Inherits IEnumerable.
Public Member Functions | |
| OnlineMapsXML () | |
| Creates an empty element. | |
| OnlineMapsXML (string nodeName) | |
| Creates a new element with the specified name. | |
| OnlineMapsXML (XmlElement xmlElement) | |
| Creates a new element based on the XmlElement. | |
| string | A (string attributeName) |
| Get an attribute by name. | |
| T | A< T > (string attributeName) |
| Get an attribute by name, and return as the specified type. | |
| void | A (string attributeName, object value) |
| Set an named attribute. | |
| void | A (string attributeName, Color32 value) |
| Sets the color attribute as hex value. | |
| void | AppendChild (XmlElement newChild) |
| Append a child element. | |
| void | AppendChild (OnlineMapsXML newChild) |
| Append a child element. | |
| void | AppendChilds (IEnumerable< XmlNode > list) |
| Append a child elements. | |
| void | AppendChilds (IEnumerable< OnlineMapsXML > list) |
| Append a child elements. | |
| void | AppendChilds (XmlNodeList list) |
| Append a child elements. | |
| void | AppendChilds (OnlineMapsXMLList list) |
| Append a child elements. | |
| OnlineMapsXML | Create (string nodeName) |
| Creates a child element with the specified name. | |
| OnlineMapsXML | Create (string nodeName, bool value) |
| Creates a child element with the specified name and value. | |
| OnlineMapsXML | Create (string nodeName, Color32 value) |
| Creates a child element with the specified name and value. | |
| OnlineMapsXML | Create (string nodeName, float value) |
| Creates a child element with the specified name and value. | |
| OnlineMapsXML | Create (string nodeName, double value) |
| Creates a child element with the specified name and value. | |
| OnlineMapsXML | Create (string nodeName, int value) |
| Creates a child element with the specified name and value. | |
| OnlineMapsXML | Create (string nodeName, OnlineMapsRange value) |
| Creates a child element with the specified name and value. | |
| OnlineMapsXML | Create (string nodeName, Object value) |
| Creates a child element with the specified name and value. | |
| OnlineMapsXML | Create (string nodeName, string value) |
| Creates a child element with the specified name and value. | |
| OnlineMapsXML | Create (string nodeName, Vector2 value) |
| Creates a child element with the specified name and value. | |
| OnlineMapsXML | Create (string nodeName, Vector3 value) |
| Creates a child element with the specified name and value. | |
| OnlineMapsXML | Find (string xpath, System.Xml.XmlNamespaceManager nsmgr=null) |
| Find a child at the specified XPath. | |
| T | Find< T > (string xpath, System.Xml.XmlNamespaceManager nsmgr=null) |
| Find a child at the specified XPath, and return value as the specified type. | |
| OnlineMapsXMLList | FindAll (string xpath, System.Xml.XmlNamespaceManager nsmgr=null) |
| Finds all childs at the specified XPath. | |
| string | Get (string childName) |
| Get the value of element as string. | |
| T | Get< T > (XmlElement el) |
| Get the value of element as the specified type. | |
| T | Get< T > (XmlElement el, T defaultValue) |
| Get the value of element as the specified type or default value if the child is not found. | |
| T | Get< T > (string childName) |
| Get the value of child element as the specified type. | |
| T | Get< T > (string childName, T defaultValue) |
| Get the value of child element as the specified type or default value if the child is not found. | |
| OnlineMapsXMLNamespaceManager | GetNamespaceManager (string prefix=null) |
| Get NamespaceManager for current xml node. | |
| bool | HasChild (string childName) |
| Checks whether the contain child element with the specified name. | |
| void | Remove () |
| Removes this element from the XML. | |
| void | Remove (string childName) |
| Removes child element from the XML. | |
| void | Remove (int childIndex) |
| Removes child element from the XML. | |
| string | Value () |
| Gets the value of the element as string. | |
| T | Value< T > () |
| Gets the value of the element as the specified type. | |
Static Public Member Functions | |
| static Vector2 | GetVector2FromNode (OnlineMapsXML node) |
| Converts XMLNode coordinates from Google Maps into Vector2. | |
| static OnlineMapsVector2d | GetVector2dFromNode (OnlineMapsXML node) |
| Converts XMLNode coordinates from Google Maps into OnlineMapsVector2d. | |
| static OnlineMapsXML | Load (string xmlString) |
| Loads the XML from a string. | |
Properties | |
| string | name [get] |
| Name of the node. | |
| int | count [get] |
| The number of child nodes. | |
| bool | isNull [get] |
| Checks whether the contents of the node. | |
| XmlDocument | document [get] |
| Reference to XmlDocument. | |
| XmlElement | element [get] |
| Reference to XmlElement. | |
| bool | hasAttributes [get] |
| Gets a value indicating whether the current node has any attributes. | |
| bool | hasChildNodes [get] |
| Gets a value indicating the presence of the child nodes from the current node. | |
| string | outerXml [get] |
| Content of node as string. | |
| OnlineMapsXML | this[int index] [get] |
| Get the child element by index. | |
| OnlineMapsXML | this[string childName] [get] |
| Get the child element by name. | |
Wrapper for XML.
| OnlineMapsXML.OnlineMapsXML | ( | string | nodeName | ) |
Creates a new element with the specified name.
| nodeName | Name of element. |
| OnlineMapsXML.OnlineMapsXML | ( | XmlElement | xmlElement | ) |
Creates a new element based on the XmlElement.
| xmlElement | XmlElement for which will create the wrapper. |
| string OnlineMapsXML.A | ( | string | attributeName | ) |
Get an attribute by name.
| attributeName | Name of attribute. |
| void OnlineMapsXML.A | ( | string | attributeName, |
| Color32 | value ) |
Sets the color attribute as hex value.
| attributeName | Name of attribute. |
| value | Color |
| void OnlineMapsXML.A | ( | string | attributeName, |
| object | value ) |
Set an named attribute.
| attributeName | Name of attribute. |
| value | Value of attribute. |
| T OnlineMapsXML.A< T > | ( | string | attributeName | ) |
Get an attribute by name, and return as the specified type.
| T | Type of attribute. |
| attributeName | Name of attribute. |
| void OnlineMapsXML.AppendChild | ( | OnlineMapsXML | newChild | ) |
Append a child element.
| newChild | Element. |
| void OnlineMapsXML.AppendChild | ( | XmlElement | newChild | ) |
Append a child element.
| newChild | Element. |
| void OnlineMapsXML.AppendChilds | ( | IEnumerable< OnlineMapsXML > | list | ) |
Append a child elements.
| list | List of elements. |
| void OnlineMapsXML.AppendChilds | ( | IEnumerable< XmlNode > | list | ) |
Append a child elements.
| list | List of elements. |
| void OnlineMapsXML.AppendChilds | ( | OnlineMapsXMLList | list | ) |
Append a child elements.
| list | List of elements. |
| void OnlineMapsXML.AppendChilds | ( | XmlNodeList | list | ) |
Append a child elements.
| list | List of elements. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName | ) |
Creates a child element with the specified name.
| nodeName | Name of child element. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName, |
| bool | value ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName, |
| Color32 | value ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName, |
| double | value ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName, |
| float | value ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName, |
| int | value ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName, |
| Object | value ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName, |
| OnlineMapsRange | value ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName, |
| string | value ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName, |
| Vector2 | value ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| OnlineMapsXML OnlineMapsXML.Create | ( | string | nodeName, |
| Vector3 | value ) |
Creates a child element with the specified name and value.
| nodeName | Name of child element. |
| value | Value of child element. |
| OnlineMapsXML OnlineMapsXML.Find | ( | string | xpath, |
| System.Xml.XmlNamespaceManager | nsmgr = null ) |
Find a child at the specified XPath.
| xpath | XPath string. |
| nsmgr | An XmlNamespaceManager to use for resolving namespaces for prefixes in the XPath expression. |
| T OnlineMapsXML.Find< T > | ( | string | xpath, |
| System.Xml.XmlNamespaceManager | nsmgr = null ) |
Find a child at the specified XPath, and return value as the specified type.
| T | Type of child element. |
| xpath | XPath string. |
| nsmgr | An XmlNamespaceManager to use for resolving namespaces for prefixes in the XPath expression. |
| OnlineMapsXMLList OnlineMapsXML.FindAll | ( | string | xpath, |
| System.Xml.XmlNamespaceManager | nsmgr = null ) |
Finds all childs at the specified XPath.
| xpath | XPath string. |
| nsmgr | An XmlNamespaceManager to use for resolving namespaces for prefixes in the XPath expression. |
| string OnlineMapsXML.Get | ( | string | childName | ) |
Get the value of element as string.
| childName | Name of child. |
| T OnlineMapsXML.Get< T > | ( | string | childName | ) |
Get the value of child element as the specified type.
| T | Type of child element. |
| childName | Name of child. |
| T OnlineMapsXML.Get< T > | ( | string | childName, |
| T | defaultValue ) |
Get the value of child element as the specified type or default value if the child is not found.
| T | Type of child element. |
| childName | Name of child. |
| defaultValue | Default value. |
| T OnlineMapsXML.Get< T > | ( | XmlElement | el | ) |
Get the value of element as the specified type.
| T | Type of element |
| el | Element |
| T OnlineMapsXML.Get< T > | ( | XmlElement | el, |
| T | defaultValue ) |
Get the value of element as the specified type or default value if the child is not found.
| T | Type of element |
| el | Element |
| defaultValue | Default value |
| OnlineMapsXMLNamespaceManager OnlineMapsXML.GetNamespaceManager | ( | string | prefix = null | ) |
Get NamespaceManager for current xml node.
| prefix | Namespace prefix. |
|
static |
Converts XMLNode coordinates from Google Maps into OnlineMapsVector2d.
| node | XMLNode coordinates from Google Maps. |
|
static |
Converts XMLNode coordinates from Google Maps into Vector2.
| node | XMLNode coordinates from Google Maps. |
| bool OnlineMapsXML.HasChild | ( | string | childName | ) |
Checks whether the contain child element with the specified name.
| childName | Name of child element |
|
static |
Loads the XML from a string.
| xmlString | XML string. |
| void OnlineMapsXML.Remove | ( | int | childIndex | ) |
Removes child element from the XML.
| childIndex | Index of child element. |
| void OnlineMapsXML.Remove | ( | string | childName | ) |
Removes child element from the XML.
| childName | Name of child element. |
| string OnlineMapsXML.Value | ( | ) |
Gets the value of the element as string.
| T OnlineMapsXML.Value< T > | ( | ) |
Gets the value of the element as the specified type.
| T | Type of element. |
|
get |
Get the child element by index.
| index | Index of child element. |
|
get |
Get the child element by name.
| childName | Name of child element. |