Click here to Skip to main content
15,905,508 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Help in Xpath Pin
satishrg13-Jul-05 8:29
satishrg13-Jul-05 8:29 
GeneralRe: Help in Xpath Pin
Christian Graus13-Jul-05 12:25
protectorChristian Graus13-Jul-05 12:25 
GeneralProblem msxml4.dll in IIS6 in windows 2003 server Pin
manuel.alvarez11-Jul-05 21:26
manuel.alvarez11-Jul-05 21:26 
Generaltrouble in spreadsheetML Pin
firebolt7711-Jul-05 0:21
firebolt7711-Jul-05 0:21 
GeneralHelp in Xpath Pin
satishrg8-Jul-05 9:32
satishrg8-Jul-05 9:32 
GeneralRe: Help in Xpath Pin
Javier Lozano11-Jul-05 8:58
Javier Lozano11-Jul-05 8:58 
GeneralRe: Help in Xpath Pin
satishrg12-Jul-05 4:27
satishrg12-Jul-05 4:27 
GeneralRe: Help in Xpath Pin
Javier Lozano12-Jul-05 5:01
Javier Lozano12-Jul-05 5:01 
satishrg wrote:
1)Shall I filter the SOAP then process the XMl or Shall I directly send the SOAP response to the XMLDocument.Which is advisable.

How are you getting the SOAP response? If the data is small, then just send it to the XmlDocument

satishrg wrote:
2)I tried to parse the SOAP response(because it is also Xml) with XML Document and tried to retrieve the <ID> value as shown above.I am getting the runtime error.

What's the runtime error?
----------------------------
If you're just getting the data for the <Fax> element, then your XPath expression should be more descriptive. In other words, instead of "//ID", have it be (using the above schema) "FAX/STATUS". This will return the <STATUS> element and you can then access its children using the DOM.

Here's what I mean:
string xml = @"<FAX>
      <JOBID>1625603</JOBID>
      <JOBNAME>Out1</JOBNAME>
      <JOBSUBMITDATE>7/8/2005 4:27:03 PM</JOBSUBMITDATE>
      <STATUS>
          <ID>-1</ID>
          <DESCRIPTION> Successfully Queued</DESCRIPTION>
       </STATUS>
    </FAX>";

XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(xml);

XmlNode xn = xmlDoc.SelectSingleNode("FAX/STATUS");

if (xn != null)
{
  Console.WriteLine("ID: {0}\nDescription: {1}", xn["ID"], xn["DESCRIPTION"]);
}


~Javier Lozano
GeneralRe: Help in Xpath Pin
satishrg12-Jul-05 6:31
satishrg12-Jul-05 6:31 
GeneralRe: Help in Xpath Pin
DavidNohejl12-Jul-05 6:31
DavidNohejl12-Jul-05 6:31 
GeneralRe: Help in Xpath Pin
12-Jul-05 6:59
suss12-Jul-05 6:59 
Generaltroubles in making excel document using xml Pin
firebolt778-Jul-05 0:58
firebolt778-Jul-05 0:58 
GeneralUsing existing XSD with WebService Pin
Grimolfr7-Jul-05 15:49
Grimolfr7-Jul-05 15:49 
GeneralRe: Using existing XSD with WebService Pin
Javier Lozano11-Jul-05 9:02
Javier Lozano11-Jul-05 9:02 
GeneralRe: Using existing XSD with WebService Pin
Grimolfr12-Jul-05 6:12
Grimolfr12-Jul-05 6:12 
GeneralGetListItems in List web service and infopath Pin
Steven M Hunt7-Jul-05 3:45
Steven M Hunt7-Jul-05 3:45 
GeneralXML Binding with Java Pin
qadirchalla@yahoo.com6-Jul-05 7:53
qadirchalla@yahoo.com6-Jul-05 7:53 
GeneralRe: XML Binding with Java Pin
DavidNohejl6-Jul-05 10:23
DavidNohejl6-Jul-05 10:23 
GeneralRe: XML Binding with Java Pin
qadirchalla@yahoo.com6-Jul-05 11:04
qadirchalla@yahoo.com6-Jul-05 11:04 
GeneralRendering xforms in xslt Pin
korayyersel6-Jul-05 0:03
korayyersel6-Jul-05 0:03 
GeneralXML relational data Pin
Member 17770424-Jul-05 10:51
Member 17770424-Jul-05 10:51 
GeneralRe: XML relational data Pin
toujin4-Jul-05 14:06
toujin4-Jul-05 14:06 
GeneralRe: XML relational data Pin
Member 17770425-Jul-05 9:42
Member 17770425-Jul-05 9:42 
Generalhelp needed for parsing XML document Pin
satishrg1-Jul-05 9:04
satishrg1-Jul-05 9:04 
GeneralRe: help needed for parsing XML document Pin
DavidNohejl1-Jul-05 13:22
DavidNohejl1-Jul-05 13:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.