Foros del Web » Programando para Internet » PHP »

parser xml de distinto formato

Estas en el tema de parser xml de distinto formato en el foro de PHP en Foros del Web. hola que tal. tengo que hacer un parser para un archivo xml, utilizó magpierss pero el formato del archivo xml es muy distinto y no ...
  #1 (permalink)  
Antiguo 10/06/2007, 08:26
Avatar de oscarva  
Fecha de Ingreso: agosto-2004
Ubicación: Bogota - Colombia
Mensajes: 425
Antigüedad: 19 años, 9 meses
Puntos: 2
parser xml de distinto formato

hola que tal. tengo que hacer un parser para un archivo xml, utilizó magpierss pero el formato del archivo xml es muy distinto y no me funciona. el archivo xml es de la siguiente forma:

Código:
<autnresponse>
<action>QUERY</action>
<response>SUCCESS</response>
−
	<responsedata>
<autn:numhits>10</autn:numhits>
<autn:totalhits>2781</autn:totalhits>
−
	<autn:hit>
−
	<autn:reference>
http://www.xxxxx.com/xxxxx.html
</autn:reference>
−
	<autn:title>
Titulo
</autn:title>
<autn:summary>Real Media
</autn:summary>
−
	<autn:content>
−
	<DOCUMENT>
<CHANNEL>Real3</CHANNEL>
<TYPE>Video</TYPE>
<DOMAIN>http://www.xxx.com</DOMAIN>
−
	<FOOTERIMAGE>
http://xxxx.com/real.gif
</FOOTERIMAGE>
−
	<ALTIMAGE>
http://xxxx.com/real.jpg
</ALTIMAGE>
−
	<STATICPREVIEW>
http://xxxx.com/4107005_swf_0.swf
</STATICPREVIEW>
−
	<IMAGE>
http://xxxx.com/4107005_swf_0.swf
</IMAGE>
<MEDIA_TYPE>audio/x-pn-realaudio</MEDIA_TYPE>
<MEDIA_TYPE_STRING>RealMedia</MEDIA_TYPE_STRING>
</DOCUMENT>
</autn:content>
<autn:date>1164004902</autn:date>
<autn:datestring>Monday November 20th 2006</autn:datestring>
</autn:hit>
</responsedata>
</autnresponse>
alguien me podría ayudar con un parser para este formato de xml?

muchas gracias
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:55.