Re: [xml] can't open a document with xmlReadFile



On 23.06.2004 09:05, Cyrille Gautard wrote:

Hello,

        I tried to open a XML document with the function xmlReadFile to handle
the document. The function always returns null when opening the
following document.

<?xml version="1.0"?>
<tables>
  <original>
    <attr1 table=""
           attribut="attr1"
           id_table="id_original_modif"
           associated="original"
           tableLink=""
           table_tableLink_lk=""
           tableLink_associated_lk=""
           type="1"/>
    <attr2 table=""
           attribut="attr2"
           id_table="id_original_modif"
           associated="original"
           tableLink=""
           table_tableLink_lk=""
           tableLink_associated_lk=""
           type="1"/>
    <attr3 table=""
           attribut="anc_attr3"
           id_table="id_original"
           associated="original_modif"
           tableLink=""
           table_tableLink_lk=""
           tableLink_associated_lk=""
type="1"/> </original>
</tables>

Is the syntax bad ? Can you help me please ?

Either the file name you pass to xmlReadFile is incorrect, libxml's process doesn't have the permission to read the file, or some other IO error is happening. I see nothing else.

Load the file with the xmllint utility and see if it says something useful.

Ciao,
Igor



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]