Opf.Maps.Xml
Class XmlFile
- public class XmlFile
Helper class to wrap some Xml handling
- summary
Helper class to wrap some Xml handling
Constructor Summary |
XmlFile(string xmlFile) |
Method Summary |
XmlNamespaceManager | AddNamespace(string prefix, string namespaceURI) |
string | GetAttribute(XmlElement xmlElement, string attributeName) |
string | GetAttribute(XmlElement xmlElement, string attributeName, string defaultValue) |
XmlElement | GetRoot(string rootNode) |
XmlNodeList | SelectNodes(XmlElement rootElement, string elementName) |
protected void | ThrowMissingAttribute(XmlElement xmlElement, string attributeName) |
XmlFile
public XmlFile(string xmlFile)
AddNamespace
public XmlNamespaceManager AddNamespace(string prefix, string namespaceURI)
GetAttribute
public string GetAttribute(XmlElement xmlElement, string attributeName)
GetAttribute
public string GetAttribute(XmlElement xmlElement, string attributeName, string defaultValue)
GetRoot
public XmlElement GetRoot(string rootNode)
SelectNodes
public XmlNodeList SelectNodes(XmlElement rootElement, string elementName)
ThrowMissingAttribute
protected void ThrowMissingAttribute(XmlElement xmlElement, string attributeName)