Hello,
I am trying to extract data from an XML file. I am using XMLExtract component, but when generating a schema, I got the error below:
XML parse error in schema: error: src-resolve: attribute ‘href@http://www.w3.org/1999/xlink’ not found.
I have pasted below the sample XML file I’m trying to read in. (I tried to upload the file but I can’t.):
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<product>
<id><![CDATA[8]]></id>
<id_manufacturer></id_manufacturer>
<id_supplier></id_supplier>
<id_category_default xlink:href="http://localhost/prestashop/api/categories/3"><![CDATA[3]]></id_category_default>
<out_of_stock><![CDATA[2]]></out_of_stock>
<new></new>
<cache_default_attribute></cache_default_attribute>
<id_default_image xlink:href="http://localhost/prestashop/api/images/products/8/33" not_filterable="true"><![CDATA[33]]></id_default_image>
<id_default_combination not_filterable="true"></id_default_combination>
<position_in_category not_filterable="true"><![CDATA[0]]></position_in_category>
<manufacturer_name not_filterable="true"></manufacturer_name>
<reference></reference>
<supplier_reference></supplier_reference>
<location></location>
<ean13></ean13>
<upc></upc>
<unity></unity>
<id_tax_rules_group><![CDATA[1]]></id_tax_rules_group>
<id_color_default></id_color_default>
<minimal_quantity><![CDATA[1]]></minimal_quantity>
<price><![CDATA[25.04]]></price>
<additional_shipping_cost><![CDATA[0.00]]></additional_shipping_cost>
<wholesale_price><![CDATA[0.000000]]></wholesale_price>
<on_sale><![CDATA[0]]></on_sale>
<online_only><![CDATA[1]]></online_only>
<ecotax><![CDATA[0.000000]]></ecotax>
<unit_price></unit_price>
<width><![CDATA[0]]></width>
<height><![CDATA[0]]></height>
<depth><![CDATA[0]]></depth>
<weight><![CDATA[0]]></weight>
<quantity_discount><![CDATA[0]]></quantity_discount>
<customizable><![CDATA[0]]></customizable>
<uploadable_files><![CDATA[0]]></uploadable_files>
<text_fields><![CDATA[0]]></text_fields>
<active><![CDATA[1]]></active>
<available_for_order><![CDATA[1]]></available_for_order>
<condition><![CDATA[new]]></condition>
<show_price><![CDATA[1]]></show_price>
<indexed><![CDATA[1]]></indexed>
<cache_is_pack><![CDATA[0]]></cache_is_pack>
<cache_has_attachments><![CDATA[0]]></cache_has_attachments>
<quantity><![CDATA[1]]></quantity>
<meta_description><language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[]]></language><language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[]]></language><language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[]]></language><language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[]]></language><language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[]]></language></meta_description>
<meta_keywords><language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[]]></language><language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[]]></language><language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[]]></language><language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[]]></language><language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[]]></language></meta_keywords>
<meta_title><language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[]]></language><language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[]]></language><language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[]]></language><language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[]]></language><language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[]]></language></meta_title>
<link_rewrite><language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[belkin-leather-folio-for-ipod-nano-black-chocolate]]></language><language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[housse-portefeuille-en-cuir-ipod-nano-noir-chocolat]]></language><language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[funda-cuero-ipod-nano-negro-chocolate]]></language><language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[lederhulle-belkin-fur-ipod-nano-schwarz-schokolade]]></language><language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[custodia-portafoglio-in-pelle-belkin-per-ipod-nano-nero-cioccolato]]></language></link_rewrite>
<name><language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[Belkin Leather Folio for iPod nano - Black / Chocolate]]></language><language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[Housse portefeuille en cuir (iPod nano) - Noir/Chocolat]]></language><language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[Leather Case (iPod nano) - Negro / Chocolate]]></language><language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[Lederhlle Belkin fr ipod nano - Schwarz/Schokolade]]></language><language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[Custodia portafoglio in pelle Belkin per iPod nano - Nero/Cioccolato]]></language></name>
<available_now><language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[]]></language><language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[]]></language><language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[Disponible]]></language><language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[]]></language><language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[]]></language></available_now>
<available_later><language id="1" xlink:href="http://localhost/prestashop/api/languages/1"></language><language id="2" xlink:href="http://localhost/prestashop/api/languages/2"></language><language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[]]></language><language id="4" xlink:href="http://localhost/prestashop/api/languages/4"></language><language id="5" xlink:href="http://localhost/prestashop/api/languages/5"></language></available_later>
<description><language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[<p>Lorem ipsum</p>]]></language><language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[<p><strong>Caractristiques</strong></p>
<li>Cuir doux rsistant<br /> </li>
<li>Accs au bouton Hold<br /> </li>
<li>Fermeture magntique<br /> </li>
<li>Accs au Dock Connector<br /> </li>
<li>Protge-cran</li>]]></language><language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[<p><strong>Caractersticas</strong></p>
<ul>
<li> Cuero suave resistente</li>
<li>Acceso a la tecla Hold</li>
<li>Cierre magntico</li>
<li>Acceso al Dock Conector</li>
<li>Salva pantallas</li>
</ul>]]></language><language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[<p>Lorem ipsum</p>]]></language><language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[<p>Lorem ipsum</p>]]></language></description>
<description_short><language id="1" xlink:href="http://localhost/prestashop/api/languages/1"><![CDATA[<p>Lorem ipsum</p>]]></language><language id="2" xlink:href="http://localhost/prestashop/api/languages/2"><![CDATA[<p>Cet tui en cuir tendance assure une protection complte contre les raflures et les petits alas de la vie quotidienne. Sa conception lgante et compacte vous permet de glisser votre iPod directement dans votre poche ou votre sac main.</p>]]></language><language id="3" xlink:href="http://localhost/prestashop/api/languages/3"><![CDATA[<p>Este estuche de cuero de ltima moda garantiza una completa proteccin contra los araazos y los pequeos contratiempos de la vida diaria. Su diseo elegante y compacto te permite meter tu Ipod directamente en tu bolsillo o en tu bolso.</p>]]></language><language id="4" xlink:href="http://localhost/prestashop/api/languages/4"><![CDATA[<p>Lorem ipsum</p>]]></language><language id="5" xlink:href="http://localhost/prestashop/api/languages/5"><![CDATA[<p>Lorem ipsum</p>]]></language></description_short>
<date_add><![CDATA[2012-04-02 09:31:16]]></date_add>
<date_upd><![CDATA[2012-04-02 09:31:16]]></date_upd>
<associations>
<categories node_type="category">
<category xlink:href="http://localhost/prestashop/api/categories/3">
<id><![CDATA[3]]></id>
</category>
</categories>
<images node_type="image">
<image xlink:href="http://localhost/prestashop/api/images/products/8/33">
<id><![CDATA[33]]></id>
</image>
</images>
<combinations node_type="combinations"/>
<product_option_values node_type="product_options_values"/>
<product_features node_type="product_feature"/>
<tags node_type="tag"/>
</associations>
</product>
</prestashop>
Hope to get a reply to this sooner.
Thanks,