Hello everyone I have the following part of a code:
XmlNode lDatos = xDoc.SelectSingleNode("respuestaCancAvisoFaltaPago");
My question is: Is
there a way to use lData?
I can see if it is not null.
But I would like to be able to do something like this:
if(lDatos.equals("respuestaCancAvisoFaltaPago").....
But I don't know how I can use that text..
The xml is like this:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<respuestaCancAvisoFaltaPago lang="ESP">
So I don't know how I can extract it. I know that with him I xDoc.SelectSingleNode
select that it be at least with that name. But then I want to be able to compare it.
There is a way to use lData :
I can see if it is not null :
But I would like to be able to do something like this :
if(lDatos.equals("respuestaCancAvisoFaltaPago")
Here is an example for you to review:
In the example that I leave is everything you ask, including the verification of the name of the label
respuestaCancAvisoFaltaPago
.