G
Guest
Hi!
Please, could You advice me to complete the following task:
We have a Web Service that returns XML document with some data about our
customers.
[WebMethod]
public XmlDocument getCustInfo()
{
//some implementation
}
I am trying to parse that document and to print customers' names and email
addresses. If some custorem does not have an email address I print "no email
address found". I have to go throught the xml document and it's nodes using
eg. foreach statement and resolve whether customer has an email address with
if else statements.
Please, could You tell me, how can I load this Xml document which WebService
provides? I tried to load it into XmlDocument object with Load method, but
beacause it is not xml file I get errors. The help is very much appreciated.
Thanks.
Peter
Please, could You advice me to complete the following task:
We have a Web Service that returns XML document with some data about our
customers.
[WebMethod]
public XmlDocument getCustInfo()
{
//some implementation
}
I am trying to parse that document and to print customers' names and email
addresses. If some custorem does not have an email address I print "no email
address found". I have to go throught the xml document and it's nodes using
eg. foreach statement and resolve whether customer has an email address with
if else statements.
Please, could You tell me, how can I load this Xml document which WebService
provides? I tried to load it into XmlDocument object with Load method, but
beacause it is not xml file I get errors. The help is very much appreciated.
Thanks.
Peter