Update(string, string, string)
This method updates the XML nodes identified by the given XPath expression with the given string value and a string parameter for namespace resolution.
Declaration
// C# public void Update(string xpathExpr, string nsMap, string value);
Parameters
-
xpathExpr
The XPath expression that identifies the nodes to update.
-
nsMap
The string parameter used for namespace resolution of the XPath expression.
nsMap
has zero or more namespaces separated by spaces.nsMap
can be null. For example:xmlns:nsi"=http://www.company1.com" xmlns:nsz="http://www.company2.com"
-
value
The new value as a
string
.
Exceptions
ObjectDisposedException
- The object is already disposed.
ArgumentNullException
- The xpathExpr
is null or zero-length.
InvalidOperationException
- The OracleConnection
is not open or has been closed during the lifetime of the object.
Remarks
The default namespace is ignored if its value is an empty string.