Re: [xml] Getting crashes with xmlFreeDoc()

2005-03-18 Thread Daniel Veillard
On Thu, Mar 17, 2005 at 03:03:07PM -0800, Sebastien Boisvert wrote: Any ideas? no idea without a reproduceable example, sorry, I still don't use a cristal ball ... Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit

Re: [xml] [RFC] More error message changes

2005-03-18 Thread Kasimier Buchcik
Hi, Matthew Burgess wrote: Kasimier Buchcik wrote: Matthew Burgess wrote: a) When presented with this, our typical user is unlikely to understand what a 'simple type' or 'facet' are, nor would they be able to change the affected schema even if they did understand it. Hmm, if they don't

[xml] IDREF/IDREFS attribute are not validated in xml Schema or RelaxNG

2005-03-18 Thread GUY Fabrice
Hi, I don't know if it's in the TODO list or if it's a bug, but IDREF (and IDREFS) are not validated using xmlSchema or RelaxNG : if an IDREF attribute has a value which is not carried by an ID attribute, the document still validates. I can provide a test case if you want some. Regards,

Re: [xml] IDREF/IDREFS attribute are not validated in xml Schema or RelaxNG

2005-03-18 Thread Daniel Veillard
On Fri, Mar 18, 2005 at 12:57:14PM +0100, GUY Fabrice wrote: Hi, I don't know if it's in the TODO list or if it's a bug, but IDREF (and IDREFS) are not validated using xmlSchema or RelaxNG : if an IDREF attribute has a value which is not carried by an ID attribute, the document still

Re: [xml] IDREF/IDREFS attribute are not validated in xml Schema or RelaxNG

2005-03-18 Thread Kasimier Buchcik
Hi, GUY Fabrice wrote: Hi, I don't know if it's in the TODO list or if it's a bug, but IDREF (and IDREFS) are not validated using xmlSchema or RelaxNG : if an IDREF attribute has a value which is not carried by an ID attribute, the document still validates. I can provide a test case if you want

Re: [xml] Getting crashes with xmlFreeDoc()

2005-03-18 Thread Sebastien Boisvert
Well that's *IT*... that is the whole function. Nothing more. Now if you're asking how I get the document parsed in the first place (I don't have a crystal ball either), then here it is: When it's an XML document (as XHTML): xmlDocPtr XHTMLParsedDoc = xmlReadMemory(cString, strlen(cString),

[xml] IDREF/IDREFS attribute are not validated in xml Schema or RelaxNG

2005-03-18 Thread GUY Fabrice
On Fri, 18 Mar 2005 07:07:07 -0500, Daniel Veillard [EMAIL PROTECTED] wrote: On Fri, Mar 18, 2005 at 12:57:14PM +0100, GUY Fabrice wrote: Hi, I don't know if it's in the TODO list or if it's a bug, but IDREF (and IDREFS) are not validated using xmlSchema or RelaxNG : if an IDREF

Re: [xml] Getting crashes with xmlFreeDoc()

2005-03-18 Thread Daniel Veillard
On Fri, Mar 18, 2005 at 06:25:22AM -0800, Sebastien Boisvert wrote: Well that's *IT*... that is the whole function. Nothing more. Sorry, that doesn't compile. I don't have the input, I don't have a reproduceable test case. Now if you're asking how I get the document parsed in the first

[xml] How to remove myself from the mailing list.

2005-03-18 Thread Johnson, Cameron
I cant seem to remove myself from this mailing list even though I have used the form on the website. What do I need to do? Cameron C. Johnson Software Developer FileNet Nova Scotia Corp. www.filenet.com ph. (780) 731-1346 fax. (780) 437-4381

[xml] memory allocation errors

2005-03-18 Thread Igor Kapitanker
I 've bult an application, which parses xml documents sent via TCP/IP verifying it against xsd schema. I am using libxml2-2.6.17. All is well til I get an error message like: Entity: line 1: parser error : Document is empty ^ Entity: line 1: parser error : Start tag expected, '' not found ^ then

Re: [xml] memory allocation errors

2005-03-18 Thread Daniel Veillard
On Fri, Mar 18, 2005 at 06:10:26PM +, Igor Kapitanker wrote: I 've bult an application, which parses xml documents sent via TCP/IP verifying it against xsd schema. I am using libxml2-2.6.17. All is well til I get an error message like: 1/ first try to update to 2.6.18 2/ XSD is still

[xml] Adding a namespace to an existing tree?

2005-03-18 Thread Abraham Nelson
I wonder if it's at all possible to add a namespace to the document element in an existing tree. I've tried: xmlNewNs(xmlDocGetRootElement(xmlDoc),(xmlChar *)namespame,NULL); and also with: xmlReconciliateNs(xmlDoc,xmlDocGetRootElement(xmlDoc)); But it doesn't seem to get applied to the rest

Re: [xml] memory allocation errors

2005-03-18 Thread Mikhail S Grushinskiy
Did you try using Valgrind for memory leak detection? http://valgrind.kde.org/ - Original Message - From: Daniel Veillard [EMAIL PROTECTED] To: Igor Kapitanker [EMAIL PROTECTED] Cc: xml@gnome.org Sent: Friday, March 18, 2005 2:14 PM Subject: Re: [xml] memory allocation errors 3/