Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

426
Views
ADVERTENCIA 'SimpleXMLElement::addChild(): referencia de entidad no terminada

Intentando crear un archivo xml y obtener una advertencia.

ADVERTENCIA 'SimpleXMLElement::addChild(): referencia de entidad no terminada Brantford Jonson'

así que cuando trato de abrir el archivo xml obtengo un error

 This page contains the following errors: error on line 3 at column 4: StartTag: invalid element name Below is a rendering of the page up to the first error.,

Creo que mi error está relacionado con esta advertencia de php.

aquí hay un código relevante

 if ($value instanceof Zend_Config) { $child = $xml->addChild($key); $this->_addBranch($value, $child, $xml); } else { $xml->addChild($key, (string) $value); }

¿Puede ayudarme a precisar por qué ocurre este error? Intenté algo como esto

 if ($value instanceof Zend_Config) { $child = $xml->addChild($key); $this->_addBranch($value, $child, $xml); } else { $xml->$key((string) htmlspecilalchars($value)); }
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Me encontré con el error cuando había un ampersand "&" en mi XML. Tal vez intente escapar de la cadena con htmlspecialchars().

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!