XML Feed XMLReader::expand(): An Error Occurred while expanding Xml.php:141
Issue #3132307 on drupal.org by goyote.
Good afternoon,
I have setup a migrate import job, but "drush migrate:import restaurant
" returns an error " Migration failed with source plugin exception: Error 68: htmlParseEntityRef: no name" from Xml.php:141(XMLReader::expand(): An Error Occurred while expanding).
Has anyone experienced this issue before?
Thanks,
+++++++++++++++++++ My migrate settings ++++++++++++++++
id: restaurant
label: XML feed
migration_group: XML group
source:
plugin: url
data_fetcher_plugin: http # file(local) / http (external)
data_parser_plugin: xml
urls: 'http://xxx.com/1.xml'
item_selector: /atdw_search_response/products/product_record
+++++++++++++++++++ My XML file +++++++++++++++++++
<atdw_search_response>
<status>0</status>
<number_of_results>161</number_of_results>
<query_time>1</query_time>
<products>
<product_record>
<product_id>XXXX</product_id>
<product_number>XXXX</product_number>
<status>ACTIVE</status>
<product_update_date>2020-03-30T23:01:57.811+10:00</product_update_date>
<owning_organisation_id>XXXX</owning_organisation_id>
<owning_organisation_number>NTAD92</owning_organisation_number>
<owning_organisation_name>XXXX</owning_organisation_name>
<product_name>XXXX</product_name>
<product_description>
XXXX. XXXXs.
</product_description>
<product_category_id>ATTRACTION</product_category_id>
<product_image>
XXXX
</product_image>
<boundary>XXXX</boundary>
<addresses>
<address>
<address_type>PHYSICAL</address_type>
<address_line>XXXX XXXX</address_line>
<address_line2>XXXX</address_line2>
<city>XXXX</city>
<state>XX</state>
<postcode>XXX</postcode>
<country>XXXX</country>
<area>XXXX</area>
<region>XXXX</region>
</address>
</addresses>
<next_occurrence/>
<score>1</score>
<product_pixel_url>
XXXX
</product_pixel_url>
</product_record>
</products>
</atdw_search_response>