Namespaces

Types in Fake

Type XMLHelper

Namespace Fake

Methods

Public static methods

XmlElement DocElement(XmlDocument doc)

Gets the DocumentElement of the XmlDocument

string getAttribute<a>(string name, a node)

Gets the attribute with the given name

IEnumerable<XmlNode> getChilds<a>(a node)

Gets the child nodes for the given nodes

FSharpFunc<XmlNode, XmlNode> getSubNode(string name)

gets the sub node with the name

b parse<a, b>(string name, FSharpFunc<a, b> f, a node)

FSharpFunc<XmlNode, a> parseSubNode<a>(string name, FSharpFunc<XmlNode, a> f)

XmlTextWriter XmlAttribute<a>(string name, a value, XmlTextWriter writer)

Writes an Xml attribute

XmlTextWriter XmlCDataElement(string elementName, string data, XmlTextWriter writer)

Writes an CData element

XmlTextWriter XmlComment(string comment, XmlTextWriter writer)

Writes an Xml comment

XmlDocument XMLDoc(string text)

Gets the result as xml

XmlTextWriter XmlEndElement(XmlTextWriter writer)

Writes an Xml element end

void XmlPoke(string fileName, string xpath, string value)

Replaces text in an XML file at the location specified by an XPath expression.

void XmlPokeNS(string fileName, IEnumerable<Tuple<string, string>> namespaces, string xpath, string value)

Replaces text in an XML file at the location specified by an XPath expression, with support for namespaces.

IEnumerable<string> XMLRead(bool failOnError, string xmlFileName, string nameSpace, string prefix, string xPath)

Reads a value from a XML document using a XPath

Tuple<bool, int> XMLRead_Int(bool failOnError, string xmlFileName, string nameSpace, string prefix, string xPath)

Reads a value from a XML document using a XPath returns if the value is an int and the value

XmlTextWriter XmlStartElement(string name, XmlTextWriter writer)

Writes an Xml element start

XmlTextWriter XmlWriter(string fileName)

Generates an XmlWriter

XmlDocument XPathReplace(string xpath, string value, XmlDocument doc)

Replaces text in XML document specified by an XPath expression.

XmlDocument XPathReplaceNS<a>(string xpath, string value, a namespaces, XmlDocument doc)

Replaces text in XML document specified by an XPath expression, with support for namespaces.