I have an XML document that is generated from Infopath, I need to change
the value of a namespace that is defined in a node in the form:
<xsf:xDocumentC lass "xmlns:my=value here">.
when i navigate to the namespace value it is read only and cannot be
changed. Can anyone tell me how to change this value?
My Code:
Dim sSingleNode As XmlNode = objDoc.SelectSi ngleNode("//xsf:Node",
NamespaceManage r)
Dim nav As XPathNavigator
Dim docNav As XPathDocument
docNav = New XPathDocument(s File)
nav = docNav.CreateNa vigator
nav.MoveToRoot( )
nav.MoveToFirst Child()
nav.MoveToNext( )
nav.MoveToFirst Namespace()
Do
If nav.Name.ToUppe r = "MY" Then
nav.Value = Value 'Change value here
End If
Loop While nav.MoveToNextN amespace
Thanks in Advance,
Rick
the value of a namespace that is defined in a node in the form:
<xsf:xDocumentC lass "xmlns:my=value here">.
when i navigate to the namespace value it is read only and cannot be
changed. Can anyone tell me how to change this value?
My Code:
Dim sSingleNode As XmlNode = objDoc.SelectSi ngleNode("//xsf:Node",
NamespaceManage r)
Dim nav As XPathNavigator
Dim docNav As XPathDocument
docNav = New XPathDocument(s File)
nav = docNav.CreateNa vigator
nav.MoveToRoot( )
nav.MoveToFirst Child()
nav.MoveToNext( )
nav.MoveToFirst Namespace()
Do
If nav.Name.ToUppe r = "MY" Then
nav.Value = Value 'Change value here
End If
Loop While nav.MoveToNextN amespace
Thanks in Advance,
Rick
Comment