SendXMLElement and Web Service and SelectSingleNode

T

TimPGade

Even though:
"You are completely right. We finally have in SP1 the oportunity to choose
options for the submit method , which allow to submit any kind of data to web
services without scripting."

I am following KB 826989 and everything works as outlined.

I am trying to execute the SelectSingleNode method on the
System.XML.XMLElement object (theElement) and get a message that states:
"Namespace Manager or XsltContext needed"

I am having trouble declaring the XmlNamespaceManager since there is not a
NameTable property for the XMLElement object.

Does anybody know what I need to do to contruct a namespace for this object?

Tim
 
T

TimPGade

Nevermind ... I figured it out (if anybody has a better way please let me know)

Dim nav As System.Xml.XPath.XPathNavigator =
theElement.CreateNavigator
Dim ns As System.Xml.XmlNamespaceManager = New
System.Xml.XmlNamespaceManager(nav.NameTable)
ns.AddNamespace("ns1", theElement.NamespaceURI)
Dim oFormData As XmlNode =
theElement.SelectSingleNode("ns1:FormData", ns)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top