Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/01/2014, 09:27
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años, 10 meses
Puntos: 2534
Respuesta: Problema al recibir string con datos xml

Es extraño, yo intento lo mismo y todo perfecto.
Código PHP:
Ver original
  1. <atom:id>id</atom:id>
  2. <wt:crawl-type>web-crawl</wt:crawl-type>
  3. <wt:issue-type>http-error</wt:issue-type>
  4. <wt:url>http://example.com/dir/</wt:url>
  5. <wt:detail>4xx Error</wt:detail>
  6. <wt:linked-from>http://example.com</wt:linked-from>
  7. <wt:date-detected>2008-11-17T01:06:10.000
  8. </wt:date-detected>
  9. </atom:entry>'));

Salida:
Cita:
class SimpleXMLElement#1 (7) {
public $atom:id =>
string(2) "id"
public $wt:crawl-type =>
string(9) "web-crawl"
public $wt:issue-type =>
string(10) "http-error"
public $wt:url =>
string(23) "http://example.com/dir/"
public $wt:detail =>
string(9) "4xx Error"
public $wt:linked-from =>
string(18) "http://example.com"
public $wt:date-detected =>
string(24) "2008-11-17T01:06:10.000
"
}
Yo no veo que desaparezca nada.
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.