Re: [xml] xmlReadMemory limitation
- From: "Espen Ekeroth" <espene halden net>
- To: veillard redhat com, xml gnome org
- Cc:
- Subject: Re: [xml] xmlReadMemory limitation
- Date: Fri, 11 Mar 2005 11:12:30 +0100
Output from the debugger:
55 xmlNode *cur_node = NULL;
(gdb) n
57 xmlNode *root_element = NULL;
(gdb)
59 if(a_node->type == XML_TEXT_NODE){
(gdb) p *a_node
$1 = {_private = 0x0, type = XML_TEXT_NODE, name = 0x401043c8 "text",
children = 0x0, last = 0x0,
parent = 0x805d8b8, next = 0x0, prev = 0x0, doc = 0x805f7c8, ns = 0x0,
content = 0x8062560 "<?xml version=\"1.0\" encoding=\"UTF-8\"?
\n<settlement_prices xmlns:xsi='http://www
.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation='SettlementPricesSchema.xsd'>\n
<date>2004-
06-03</date>\n "..., properties = 0x0, nsDef = 0x0}
(gdb) n
64 doc = xmlReadMemory(a_node->content, sizeof(a_node-
content), "noname.xml", NULL, 0);
(gdb) p a_node->content
$2 = (
xmlChar *) 0x8062560 "<?xml version=\"1.0\" encoding=\"UTF-8\"?
\n<settlement_prices xmlns:xsi='http://www.w3.org/2001/XMLSchema-
instance' xsi:noNamespaceSchemaLocation='SettlementPricesSchema.xsd'>\n
<date>2004-06-03</date>\n "...
(gdb)
$3 = (
xmlChar *) 0x8062560 "<?xml version=\"1.0\" encoding=\"UTF-8\"?
\n<settlement_prices xmlns:xsi='http://www.w3.org/2001/XMLSchema-
instance' xsi:noNamespaceSchemaLocation='SettlementPricesSchema.xsd'>\n
<date>2004-06-03</date>\n "...
(gdb) n
noname.xml:1: parser error : ParsePI: PI xm space expected
<?xm
^
noname.xml:1: parser error : ParsePI: PI xm never end ...
<?xm
^
noname.xml:1: parser error : Start tag expected, '<' not found
<?xm
^
65 if (doc == NULL) {
(gdb)
------------
The reason for this error is that xmlReadMemory only sees 4 bytes as the
size due to the return value from sizeof(a_node->content)
/Espen
-----Original Message-----
From: "Espen Ekeroth" <espen ekeroth omxgroup com>
To: veillard redhat com
Date: Fri, 11 Mar 2005 10:55:48 +0100
Subject: Re: [xml] xmlReadMemory limitation
ok: I will use another mailing address "espene halden net"
But if you do read the legal notice it says:
This e-mail and the information it contains may be privileged and/or
confidential. It is for the intended addressee(s) only.
As I see it: it si actually sendt to the list -> it is intended to the
list -> to the public.
Just for info: out company is on its way to be a RedHat partner.
/Espen
MSN: espene halden net
Daniel Veillard <veillard redhat com>
11.03.2005 10:48
Please respond to veillard
To: Espen Ekeroth <espen ekeroth omxgroup com>
cc: xml gnome org
Subject: Re: [xml] xmlReadMemory limitation
On Fri, Mar 11, 2005 at 10:46:42AM +0100, Espen Ekeroth wrote:
I have tried this, but the result i 4 bytes. Looks like the size of
the
adress.
makes absolutely no sense to me, contradict both my knowledge of C
and of the library. Use a debugger to see what's going on !
This e-mail and the information it contains may be privileged and/or
confidential. It is for the intended addressee(s) only.
The unauthorised use, disclosure or copying of this e-mail, or any
information it contains, is prohibited.
If you are not an intended recipient, please contact the sender and
delete the material from your computer.
Once again post from somewhere else, legally your mails put us in
danger
I do NOT want to expose the GNOME project to potential legal attacks
from
the lawyers of your company :-(, I'm horribly serious about this ! We
do
the code, we help and all you give back is to threaten us, this is
absolutely
intolerable, and I will not tolerate this anymore !!! Is that clear ?
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit
http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]