Xml Module
Contains functions to read and write XML files.
Functions and values
Function or value | Description |
Full Usage:
XmlTransform stylesheetUri fileName
Parameters:
string
-
The Uri for the XSL stylesheet file.
fileName : string
-
The XML file to transform.
|
|
Full Usage:
XslTransform xsl doc
Parameters:
XslCompiledTransform
-
The XslCompiledTransform which should be applied.
doc : XmlDocument
-
The XmlDocument to transform.
Returns: XmlDocument
|
|
Full Usage:
XslTransformer text
Parameters:
string
-
The text to use
Returns: XslCompiledTransform
|
|
|
|
|
|
Full Usage:
getAttribute name node
Parameters:
string
-
The attribute name to get
node : 'a
-
The XML node to get attribute on
Returns: string
|
|
Full Usage:
getDocElement doc
Parameters:
XmlDocument
-
The XmlDocument object
Returns: XmlElement
|
|
|
|
Full Usage:
getSubNodes node
Parameters:
'a
-
The XML node to get sub nodes for
Returns: seq<XmlNode>
|
|
|
|
Full Usage:
loadDoc path
Parameters:
string
-
The file path to load an XmlDocument from
Returns: XmlDocument
|
|
Full Usage:
parse name f node
Parameters:
string
-
The node name
f : 'a -> 'b
-
The parser function to use
node : 'a
-
The XML node to parse
Returns: 'b
|
|
|
|
Full Usage:
poke fileName xpath value
Parameters:
string
-
The file name to use
xpath : string
-
The XPath expression used to select text
value : string
-
The new value
|
|
Full Usage:
pokeInnerText fileName xpath innerTextValue
Parameters:
string
-
The file name to use
xpath : string
-
The XPath expression used to select text
innerTextValue : string
-
The new value
|
Replaces the inner text of an xml node in a XML file at the location specified by a XPath expression.
|
Full Usage:
pokeInnerTextNS fileName namespaces xpath innerTextValue
Parameters:
string
-
The file name to use
namespaces : seq<string * string>
-
The namespaces list
xpath : string
-
The XPath expression used to select text
innerTextValue : string
-
The new value
|
Replaces inner text of an xml node in a XML file at the location specified by a XPath expression, with support for namespaces.
|
Full Usage:
pokeNS fileName namespaces xpath value
Parameters:
string
-
The file name to use
namespaces : seq<string * string>
-
The namespaces list
xpath : string
-
The XPath expression used to select text
value : string
-
The new value
|
Replaces text in a XML file at the location specified by a XPath expression, with support for namespaces.
|
Full Usage:
read failOnError xmlFileName nameSpace prefix xPath
Parameters:
bool
-
Flag to fail the operation when an error happens
xmlFileName : string
-
The XML file name
nameSpace : string
-
The XML name specification
prefix : string
-
The XML name specification prefix
xPath : string
-
X Path expression
Returns: seq<string>
|
|
Full Usage:
read_Int failOnError xmlFileName nameSpace prefix xPath
Parameters:
bool
-
Flag to fail the operation when an error happens
xmlFileName : string
-
The XML file name
nameSpace : string
-
The XML name specification
prefix : string
-
The XML name specification prefix
xPath : string
-
X Path expression
Returns: bool * int
|
|
Full Usage:
replaceXPath xpath value doc
Parameters:
string
-
The XPath expression to use to select node
value : string
-
The new value
doc : XmlDocument
-
The XML document to search on
Returns: XmlDocument
|
|
Full Usage:
replaceXPathAttribute xpath attribute value doc
Parameters:
string
-
The XPath expression to use to select node
attribute : string
-
The attribute name
value : string
doc : XmlDocument
-
The XML document to search on
Returns: XmlDocument
|
|
Full Usage:
replaceXPathInnerText xpath innerTextValue doc
Parameters:
string
-
The XPath expression to use to select node
innerTextValue : string
-
The new value
doc : XmlDocument
-
The XML document to search on
Returns: XmlDocument
|
|
Full Usage:
replaceXPathInnerTextNS xpath innerTextValue namespaces doc
Parameters:
string
-
The XPath expression used to select text
innerTextValue : string
-
The new value
namespaces : 'a
-
The namespaces list
doc : XmlDocument
-
The XmlDocument object
Returns: XmlDocument
|
|
Full Usage:
replaceXPathNS xpath value namespaces doc
Parameters:
string
-
The XPath expression used to select text
value : string
-
The new value
namespaces : 'a
-
The namespaces list
doc : XmlDocument
-
The XmlDocument object
Returns: XmlDocument
|
|
Full Usage:
saveDoc fileName doc
Parameters:
string
-
The output file name
doc : XmlDocument
-
The XML document to save
|
|
Full Usage:
selectXPathAttributeValue xpath attribute namespaces doc
Parameters:
string
-
The XPath expression to use to select node
attribute : string
-
The attribute name
namespaces : 'a
-
The namespaces list
doc : XmlDocument
-
The XML document to search on
Returns: string
|
|
Full Usage:
selectXPathNode xpath namespaces doc
Parameters:
string
-
The XPath expression to use to select node
namespaces : 'a
-
The namespaces list
doc : XmlDocument
-
The XML document to search on
Returns: XmlNode
|
|
Full Usage:
selectXPathValue xpath namespaces doc
Parameters:
string
-
The XPath expression to use to select node
namespaces : 'a
-
The namespaces list
doc : XmlDocument
-
The XML document to search on
Returns: string
|
|
|
|
|
|
|
|
|
|