Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

419
Vistas
WARNING 'SimpleXMLElement::addChild(): unterminated entity reference

Trying to create xml file and get warning.

WARNING 'SimpleXMLElement::addChild(): unterminated entity reference Brantford Jonson'

so when i try to open xml file get 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.,

i think my error is related with this php warning.

here is relevant code

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

          $xml->addChild($key, (string) $value);
             }

can you help me to pin point why this error occurs. Tried something like this

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 Respuestas
Responde la pregunta

0

I ran across the error when there was an ampersand "&" in my XML. Maybe try escaping the string with htmlspecialchars().

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda