#1 2012-06-13 14:04:56

javirg13
New member
Registered: 2010-10-05
Posts: 2

Problem with xml file

Hello,

i have an error when i try to read an xml file:

"The prefix "g" for element "g:id" is not bound. Nested exception: The prefix "g" for element "g:id" is not bound."


This is the file:

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<channel>

  <title>feed_tulibreriaencasa.xml</title>

  <link>http://www.tulibreriaencasa.com</link>

  <description>feed de datos de tulibreriaencasa</description>

  <item>

    <title>MODIFICACIÓN DE LA CONDUCTA EN EL AULA E INTEGRACIÓN ESCOLAR</title>

    <link>http://www.tulibreriaencasa.com/ficha/tulibreriaencasa/5/9788436221589/MODIFICACION+DE+LA+CONDUCTA+EN+EL+AULA+E+INTEGRACION+ESCOLAR</link>

    <description>Libro MODIFICACIÓN DE LA CONDUCTA EN EL AULA E INTEGRACIÓN ESCOLAR de Emilio CIDAD MAESTRO</description>

    <g:id>5</g:id>

    <g:condition>new</g:condition>

    <g:price>10.28 EUR</g:price>

    <g:availability>in stock</g:availability>

    <g:image_link>http://www.tulibreriaencasa.com/portadas/9788436221589.jpg</g:image_link>

    <g:gtin>9788436221589</g:gtin>

    <g:brand>UNED</g:brand>

    <g:product_type>Educación &gt; Pedagogía &gt; Enseñanza escolar</g:product_type>

    <g:google_product_category>Medios audiovisuales &gt; Libros</g:google_product_category>

  </item>
.....
.....


How can i read this type of xml file???  I tried with tFileInputXML and tFileInputMSXML and always get the same error. I don´t know how to configure the prefix "g:"...

can anyone help me??

Thanks

Regards.

Offline

#2 2012-06-13 14:36:36

janhess
Member
Company: Newcastle University
Registered: 2009-05-19
Posts: 1121

Re: Problem with xml file

No namespace defined for g

Offline

#3 2012-06-13 15:55:01

javirg13
New member
Registered: 2010-10-05
Posts: 2

Re: Problem with xml file

thanks!!!!

sometimes don´t see the simplest things... wrong file!!

Offline

Board footer

Powered by FluxBB