You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an XML product feed, which I was trying to process with BatchJobService, but in many cases an exception was thrown, saying "unterminated entity reference". This happened before the objects were uploaded to AdWords, so I took a look at the XmlSerializer utility, because I traced back the issue to ConvertObjectToElement method, line 83:
This assigning failes in case of an object wich has attributes containing the '&' character. I have used htmlspecialchars($string, ENT_XML1, 'UTF-8') on those fields, so the exception is not thrown anymore.
Shouldn't this be handled by the util class?
The text was updated successfully, but these errors were encountered:
I have an XML product feed, which I was trying to process with BatchJobService, but in many cases an exception was thrown, saying "unterminated entity reference". This happened before the objects were uploaded to AdWords, so I took a look at the XmlSerializer utility, because I traced back the issue to ConvertObjectToElement method, line 83:
$element->nodeValue = self::ConvertObjectToNodeValue($object);
This assigning failes in case of an object wich has attributes containing the '&' character. I have used htmlspecialchars($string, ENT_XML1, 'UTF-8') on those fields, so the exception is not thrown anymore.
Shouldn't this be handled by the util class?
The text was updated successfully, but these errors were encountered: