cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
390
Views
0
Helpful
1
Replies

XML Path Problem

Ivan131984
Level 1
Level 1

Hi,

I have tried to make a script to read an xml file but I cannot read it because the strucuture of the xml is the following

<?xml version="1.0" encoding="utf-8"?>

<Empleados xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <empleado/>

    <resultado>00</resultado>

    <nombre>Rose Marie</nombre>

    <apellido>Reyes Duque</apellido>

    <nivel>05</nivel>

    <sede>Profesional Call Center TI</sede>

    <cargo></cargo>

    <descripcion></descripcion>

  </empleado>

</Empleados>

When I tried to read the xml the scritp returns null, and I know the problem is because for the attributes  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd="http://www.w3.org/2001/XMLSchema"> because when I remove those attributes it works fine. The problem is that my customer says that he cannot remove those attributes.

Anyone have any idea how can I read the xml with this structure ??. Thanks.

1 Reply 1

marbash
Level 1
Level 1

Hi Ivan,

I have exactly the same problem. Please, update if you managed to resolve it.

Regards,

Mustafa