Re: [xml] xmlRead Memory

2008-04-11 Thread Arthur Johnson
Thanks! It will the first time. Is there a help doc on it, helpful for a first time valgrind user? Arthur On 4/10/08, Adiel Mittmann <[EMAIL PROTECTED]> wrote: > > Hi! > > Did you try to valgrind it? Just to be on the safe side :) > > -- > Adiel Mittmann > ___

[xml] Debug info of importStylesheet PHP function

2008-04-11 Thread One dev
Hello, Anyone know how I can see where importStylesheet PHP function fails? Enabling debug mode or something like this. The messages are very poor, something like this: Warning: XSLTProcessor::importStylesheet() [function.XSLTProcessor-importStylesheet]: compilation error: file Thanks in adva

Re: [xml] Length xmlTextReaderConst... contents?

2008-04-11 Thread Ralf Junker
At 15:05 11.04.2008, Daniel Veillard wrote: > actually no, the parser computed the lenght at some point for example >when interning the string. Thanks for clearing this up. I was under the impression that I must have missed something obvious. > Have you actually tried to do a fine grained ana

Re: [xml] (no subject)

2008-04-11 Thread Daniel Veillard
On Fri, Apr 11, 2008 at 12:45:34PM +, mansour najet wrote: > Hello, > I have this problem with xmlParseMemory. > with this code it works fine. [...] > } but when I try to create a function which take char* buffer like argument > xmlParseMemory return NULL and I have this error > Entity: line 1

Re: [xml] xmlRead Memory

2008-04-11 Thread Daniel Veillard
On Thu, Apr 10, 2008 at 04:06:37PM -0400, Arthur Johnson wrote: > I have compiled a shared library in another application and I am using > libxml2-2.6.30 library functions in the shared lib to help parse in-memory > XML. > > Following is the Makefile I used for compiling the shared lib: urgh ! u

Re: [xml] Length xmlTextReaderConst... contents?

2008-04-11 Thread Daniel Veillard
On Fri, Apr 11, 2008 at 01:10:01PM +0300, Andrew W. Nosenko wrote: > On Fri, Apr 11, 2008 at 8:58 AM, Ralf Junker <[EMAIL PROTECTED]> wrote: > > I need the length to pass it to other functions which do not work on > > #0-terminated, but length-terminated string functions. actually no, the pars

Re: [xml] accessing Parser-Ctxt in SAX based schema validation

2008-04-11 Thread Daniel Veillard
On Thu, Apr 10, 2008 at 10:37:29AM +0200, Holger Kaelberer wrote: > Hi Daniel. > > > Daniel Veillard wrote: > > >>But what do I set my state->ctxt to (supposed to be a xmlParserCtxtPtr) > >>as I don't have the parser-Ctxt of the parsed xml-file? I first thought > >>of passing the xmlSchemaVal

[xml] (no subject)

2008-04-11 Thread mansour najet
Hello, I have this problem with xmlParseMemory. with this code it works fine. #include #include #include int main() { char buf[]= "man";; xmlDocPtr doc; xmlKeepBlanksDefault(0); doc=xmlParseMemory(buf,sizeof(buf)); if (doc == NULL) { fprintf(stderr, "Document XML invalide\n")

Re: [xml] Length xmlTextReaderConst... contents?

2008-04-11 Thread Andrew W. Nosenko
On Fri, Apr 11, 2008 at 8:58 AM, Ralf Junker <[EMAIL PROTECTED]> wrote: > At 17:42 10.04.2008, Andrew W. Nosenko wrote: > > >Sorry for question, but I'm curious why you need strlen()?.. I would > >to expect strcmp() rather... > > I need the length to pass it to other functions which do not work