Que tal ! tengo el siguiente xml que necesito pasarlo a una tabla en mysql. Vi varios ejemplos pero no logro que funcione con el xml que tengo.
Entre las etiquetas no hay texto, sino que estan en variables como name, host, id.. dentro del mismo tag.
Como podria leer estos datos dentro de los tags ?
Código XML:
Ver original<CUSTOMERLIST>
<CUSTOMER name="AMADEUS">
<SERVICE id="amadeus" probe="HTTP">
<TARGET host="amadeus"
port="80"
urlfile="/"
password="##"
options="encodeURL=1"
embedded="1"
proxypassword="##"
label="amadeus"
disable="0"
>
<PRIORITY priority="1" location="probe-cct-paran" network="Default"> </PRIORITY>
<PRIORITY priority="1" location="probe-cct-cdba" network="PROBE-CCT-CDBA"> </PRIORITY>
</TARGET>
<LOCATION id="probe-cct-cdba"
interval="180"
timeout="120"
network="PROBE-CCT-CDBA"
execdelay="0"
delaystart="0"
> </LOCATION>
</SERVICE>
</CUSTOMER>
</CUSTOMERLIST>
Muchas gracias y espero puedan darme una mano.