H
hammad
Hello, I have a very urgent help request and if anybody can help me
out with it it would be very much appreciated.
I am using WebClient to inititate a URL request. This request returns
an XML string and I need to lookup one of the values within the XML
and perform a conditional statement on it.
I can get my XML response ok and have gotten as far as loading it into
a Dataset and rendering it too. However, I'm stumped on how to
actually look at the individual nodes/objects within the XML and
perform an action on it depending on the value.
The XML response I am working with is:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Status>XMLINVALID</Status>
<ErrorMessage>XML Empty</ErrorMessage>
</Response>
I need to perform the action on the <ErrorMessage> block (redirect
users depending on the value).
Not sure if I need to perform this on the dataset, or on the XML
itself (XMLTextReader)
Help and advice very much appreciated for this now very urgent
problem!
Many thanks in advance and apologies for any annoyance.
out with it it would be very much appreciated.
I am using WebClient to inititate a URL request. This request returns
an XML string and I need to lookup one of the values within the XML
and perform a conditional statement on it.
I can get my XML response ok and have gotten as far as loading it into
a Dataset and rendering it too. However, I'm stumped on how to
actually look at the individual nodes/objects within the XML and
perform an action on it depending on the value.
The XML response I am working with is:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Status>XMLINVALID</Status>
<ErrorMessage>XML Empty</ErrorMessage>
</Response>
I need to perform the action on the <ErrorMessage> block (redirect
users depending on the value).
Not sure if I need to perform this on the dataset, or on the XML
itself (XMLTextReader)
Help and advice very much appreciated for this now very urgent
problem!
Many thanks in advance and apologies for any annoyance.