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
 XmlNamespaceManagerAddNamespace(string prefix, string namespaceURI)
           
 stringGetAttribute(XmlElement xmlElement, string attributeName)
           
 stringGetAttribute(XmlElement xmlElement, string attributeName, string defaultValue)
           
 XmlElementGetRoot(string rootNode)
           
 XmlNodeListSelectNodes(XmlElement rootElement, string elementName)
           
 protected voidThrowMissingAttribute(XmlElement xmlElement, string attributeName)
           

Constructor Detail

XmlFile

public XmlFile(string xmlFile)
Method Detail

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)