4
455
Hello all,
I've been trying to figure this out for hours now... can anyone help?
I have an XML document like this:
<?xml version="1.0" encoding="utf-8" ?>
<ICE:ServiceCall xmlns="ICE" xmlns:ICE="http://www.ice.net">
<ICE:Service name="">
<ICE:RetVal/>
<ICE:ConnString/>
<ICE
arams>
<Subject>TEST</Subject>
</ICE
arams>
</ICE:Service>
</ICE:ServiceCall>
For the life of me, I cannot selectsinglenode() to the Subject.
Here's the code:
XmlNamespaceManager _xnsmgr = new XmlNamespaceManager(xRequest.NameTable);
_xnsmgr.AddNamespace(string.Empty,"ICE");
_xnsmgr.AddNamespace("ICE",http://www.ice.net);
try
{
//THIS IS ALWAYS FAILING!!!
sSubject = xRequest.SelectSingleNode("//ICE
arams/Subject",
_xnsmgr).InnerText;
}
catch (Exception ex)
{
string sDEBUG = ex.Message;
}
Any help would be extremely .. um... helpful.
Thanks.
I've been trying to figure this out for hours now... can anyone help?
I have an XML document like this:
<?xml version="1.0" encoding="utf-8" ?>
<ICE:ServiceCall xmlns="ICE" xmlns:ICE="http://www.ice.net">
<ICE:Service name="">
<ICE:RetVal/>
<ICE:ConnString/>
<ICE

<Subject>TEST</Subject>
</ICE

</ICE:Service>
</ICE:ServiceCall>
For the life of me, I cannot selectsinglenode() to the Subject.
Here's the code:
XmlNamespaceManager _xnsmgr = new XmlNamespaceManager(xRequest.NameTable);
_xnsmgr.AddNamespace(string.Empty,"ICE");
_xnsmgr.AddNamespace("ICE",http://www.ice.net);
try
{
//THIS IS ALWAYS FAILING!!!
sSubject = xRequest.SelectSingleNode("//ICE

_xnsmgr).InnerText;
}
catch (Exception ex)
{
string sDEBUG = ex.Message;
}
Any help would be extremely .. um... helpful.
Thanks.