Re: [xml] How to determine document encoding

2005-01-24 Thread Daniel Veillard
e document is actually ISO-8859-1 encoded > in the first place. Of course I can just decode the document by calling > UTF8Toisolat1 directly but this is not a very generic solution to my > problem... Drop the encoding in the first line it will be UTF-8 in the string you read from the li

Re: [xml] How to determine document encoding

2005-01-24 Thread Daniel Veillard
x27;t read HTML only mail... Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ ___ x

Re: [xml] How to determine document encoding

2005-01-25 Thread Daniel Veillard
ng, which is a very sound principle. Embedding an XML instance within another as character data is just refusing to use the extensibility of XML and a fairly broken design. This is my point of view on the subject of the initial post. Daniel -- Daniel Veillard | Red Hat Desktop team http://redh

Re: [xml] XSD validation example needed

2005-01-25 Thread Daniel Veillard
lish. API Doc http://xmlsoft.org/html/libxml-xmlschemas.html C Code example testSchemas.c in the source distribution Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | R

Re: [xml] XSD validation example needed

2005-01-25 Thread Daniel Veillard
idate the xmlDocPtr with that. > Taking the attrib value first, downloading and validate? That's one way too, yes. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://v

Re: [xml] What does xmlCtxtReadFile() validate?

2005-01-25 Thread Daniel Veillard
e validation as defined by the XML REC it does not handle the internal subset. On the other hand you have control over what DTD is used. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-25 Thread Daniel Veillard
is *in* the document. xmlNodeSetBase(xmlNodePtr cur, const xmlChar* uri) to be called on your document. But it should really be there as the result of parsing. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-25 Thread Daniel Veillard
On Wed, Jan 26, 2005 at 12:07:50AM +0100, Martijn Faassen wrote: > Daniel Veillard wrote: > > no the base has to be set in the document. Since that part is just > >described by '...' in your mail there is little more indications I can > >provide. > > Interes

Re: [xml] newbie: Python: attribute value from XPath

2005-01-26 Thread Daniel Veillard
independently of namespaces associated to the attribute. Use xmlGetNsProp() or xmlGetNoNsProp() for namespace aware processing. """ ret = libxml2mod.xmlGetProp(self._o, name) return ret Daniel -- Daniel Veillard | Red Hat Desktop

Re: [xml] Using wchar_t string with libxml2.

2005-01-26 Thread Daniel Veillard
.g. what > encoding standard should I use? UTF-16? You must convert your wide strings into UTF-8 strings before passing them to the libxml2 API. I think http://xmlsoft.org/encoding.html#internal is clear about that. If not I take patches to make this clearer. Daniel -- Daniel Veillard

Re: [xml] win32 build system

2005-01-26 Thread Daniel Veillard
r: - adding the .zip file to the distribution does not make sense to me - nor adding all the generated makefiles so if you indicate clearly what the source is, provide a README and indicate willingness to provide updates, I will add them in a bakefile subdirectory of the sources. Daniel --

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Daniel Veillard
our dictionnary indefinitely even if the documents you manipulate have a fixed vocabulary. If it doesn't make sense for you, just forget about it. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml

Re: [xml] htmlReadMemory

2005-01-26 Thread Daniel Veillard
resed? depends how you built your errror layer. Some errors like memory allocation errors will always be reported anyway. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Daniel Veillard
) and 1/ it takes more time 2/ I don't have a reproductible test case Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM searc

Re: [xml] Using wchar_t string with libxml2.

2005-01-26 Thread Daniel Veillard
ode but I exect this to be only made as part of commercial support contacts (with whoever may want to sell such support). Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmf

Re: [xml] Using wchar_t string with libxml2.

2005-01-26 Thread Daniel Veillard
de code point and write it in an xmlChar buffer: http://xmlsoft.org/html/libxml-parserInternals.html#xmlCopyCharMultiByte > Ahh, yeah I forgot that they append that. I do apologise, I'll use my > own personal email account from now on. okay. Daniel -- Daniel Veillard | Red H

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Daniel Veillard
referencing things inside it? they will point to freed memory. So don't free the dictionnary until it it not in use anymore. Use another one, but you will loose unicity of strings. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxm

Re: [xml] setting URL for xmlRelaxNGParserCtxt?

2005-01-26 Thread Daniel Veillard
On Wed, Jan 26, 2005 at 05:39:56PM +0100, Martijn Faassen wrote: > Daniel Veillard wrote: > >On Wed, Jan 26, 2005 at 03:12:52PM +0100, Martijn Faassen wrote: > > > >>So what *is* stored in these dictionaries? I still don't know. Tagnames? > >>Namespace string

Re: [xml] win32 build system

2005-01-26 Thread Daniel Veillard
generated makefiles should be put into > a subfolder (the name is not important; I usually use a folder called > "build") If I add those 3 files (libxml2.bkl, bakefiles.bkgen, Readme.txt) I will put them under "bakefile", build is far too generic. Daniel -- Daniel Veillar

Re: [xml] Error after upgrade to libxslt 1.1.12

2005-01-27 Thread Daniel Veillard
t; I get the segmentation fault whenever myfunction returns more than one > item in the NodeList. No idea. Without a reproductible test case I can't even try to make a guess. And I don't know XML::LibXSLT module code, can you try to first get the authors of the Perl modules to look at

Re: [xml] What does xmlCtxtReadFile() validate?

2005-01-27 Thread Daniel Veillard
On Tue, Jan 25, 2005 at 12:33:52PM -0500, Daniel Veillard wrote: > On Tue, Jan 25, 2005 at 06:26:56PM +0100, Ronny Seemann wrote: > > Can i actual use xmlCtxtReadFile() for dtd-validation or should i better > > use > yes xmllint --valid uses xmlCtxtReadFile(). I r

Re: [xml] libxml2 Relax NG include bug?

2005-01-27 Thread Daniel Veillard
laxNGNewDocParserCtxt makes a *copy* of this > document using xmlCopyDoc(). This doesn't copy the URL, so the URL will > be NULL. haha :-) > I don't know whether the bug is in xmlCopyDoc not copying the URL, or yes, I commited the fix to tree.c in CVS, thanks a lot !

Re: [xml] When will be xmlTextReaderReadString implemented

2005-01-27 Thread Daniel Veillard
u expand first the given node before collecting the children ? The fact that you're on a given node in the reader doesn't mean all its children are available. Seems an xmlTextReaderDoExpand() call is needed in case of an ELEMENT, wrong or right ? I will defer commiting the patch based

Re: [xml] [patches] static linking on win32 with static cruntimes

2005-01-27 Thread Daniel Veillard
ridiculously low number of simultaneous FILE opened for a given process. Thanks a lot ! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://

Re: [xml] win32 build system

2005-01-27 Thread Daniel Veillard
btool/... [censored] mess thanks, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ ___ xml m

Re: [xml] Probs with xmlCtxtReadFile() !!

2005-01-28 Thread Daniel Veillard
nv Unicode Regexps Automata Schemas Modules paphio:~/tmp -> Now would you be so kind to simply, read my replies and follow the advices you got back !!! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | li

Re: [xml] Probs with xmlCtxtReadFile() !!

2005-01-28 Thread Daniel Veillard
parently. Fix may drill down up to the regexp engine or something more simple I have no idea where this can be, getting there is quite a bit of work. > Thanks for the assistance, even if it is arduous with me. > I wish a beautiful weekend. heh, thanks ! Daniel -- Daniel Veillard

Re: [xml] When will be xmlTextReaderReadString implemented

2005-01-28 Thread Daniel Veillard
On Fri, Jan 28, 2005 at 06:34:25PM +0100, Bjorn Reese wrote: > Daniel Veillard wrote: > > > Hum shouldn't you expand first the given node before collecting the > >children ? The fact that you're on a given node in the reader doesn't > >mean a

[xml] Re: [xslt] Performance issue when matching text()|*

2005-01-28 Thread Daniel Veillard
Looking again I think it's not linear because growing the node set in some way check for duplicate nodes in the set while this is not needed. That may be avoidable, or not I would need to go deeper to assert what is really going wrong, Jerome can you bugzilla this please ? thanks :-) Dan

Re: [xml] [patches] static linking on win32 with static cruntimes

2005-01-28 Thread Daniel Veillard
On Fri, Jan 28, 2005 at 03:58:50PM -0500, Joel Reed wrote: > On Thu, Jan 27, 2005 at 07:04:41PM -0500, Daniel Veillard wrote: > > snip > > > I think defaulting to file descriptor based low level access and avoiding > > FILE pointer as much as possible would be a genera

Re: [xml] Error report with RelaxNG

2005-01-28 Thread Daniel Veillard
or a level of "severe". > > The Python code of the error function (set with reagisterErrorHandler): [...] > Any idea ? Not really. Can you provide the smallest XML files for the RNG and the XML showing the problem, then we can debug what's actually happening. thanks,

Re: [xml] [patches] static linking on win32 with static cruntimes

2005-01-29 Thread Daniel Veillard
o make sense. > whether this has other benefits, or is just too much change for > a small set of users/configs i'm not sure. just describing how > i think we could make it work. agreed there might be more benefits to passing the context down, for example the access to the dicti

Re: [xml] Better fix for bug #155468?

2005-01-29 Thread Daniel Veillard
ts (such as 'build' or > 'install'), generator.py computes a wrong srcPref. > > The attached patch computes srcPref based on the location of > generator.py itself, without requiring an argument. > > Does that make sense? Seems so :-) Applied to my tree. I wi

Re: [xml] Initial identity-constraint implementation for XML Schemata

2005-01-30 Thread Daniel Veillard
xmlStreamPush() for example. The good part is that the XPath subset is so restricted that if can be done in a very lightweight way, and I hope to be able to reuse that to speed up significantly XPath implementaton for that subset by reusing it. So quite a bit of work, but a lot of fun ahead, Dan

Re: [xml] Initial identity-constraint implementation for XML Schemata

2005-02-02 Thread Daniel Veillard
some fixes already, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ ___ xml maili

Re: [xml] xml diff and patch support -- new node type

2005-02-02 Thread Daniel Veillard
ward, I suggest to not add it to ElementType. > Just a heads up and want to make sure adding a new value to the xmlElementType > enum is ok before I commit to that. Should have a patch ready in a week or > two. I would rather make a #define for the new element type and avoidin

Re: [xml] xml diff and patch support -- new node type

2005-02-03 Thread Daniel Veillard
rooted at that node, node->extra is used for bitwise > flags, and node->line is used for relative position of a child. Okay, maybe use ->psvi to avoid using _private at all but it's a detail... sounds good :-) Daniel -- Daniel Veillard | Red Hat Desktop team htt

Re: [xml] can't compile non-debug build

2005-02-03 Thread Daniel Veillard
ried --without-debug, --disable-debug, etc., but none seem to work. export CFLAGS=-O2 ; ./configure ; make ; make install should do it. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.c

Re: [xml] reduce padding in xpath.h

2005-02-03 Thread Daniel Veillard
often used structure, but I still think the change might be OK. Should be added in the code as a comment for future releases, but right now it's impossible to do, it would break ABI unfortunately ! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED]

Re: [xml] xpointer range in attribute node

2005-02-03 Thread Daniel Veillard
t; > Thanks for any help that you may be able to give, > > Phil. > Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net

Re: [xml] Delphi bindings for libxml2

2005-02-03 Thread Daniel Veillard
y I could host web pages too, assuming people agree that they are the right Pascal/Delphi current bindings. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM sear

Re: [xml] xinclude and dtd with default attributes values

2005-02-03 Thread Daniel Veillard
; > > The x2.xml is correctly included, but why its element 'element' doesn't have > the default value for attribute 'attr' ? Is there a way to do that ? bugzilla this, it looks like flags not passed down to the XInclude process

Re: [xml] xpointer range in attribute node

2005-02-03 Thread Daniel Veillard
too ... So I'm not 100% sure about XPointer and attribute content selection, sorry. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ ___

Re: [xml] wide characters & xmlDocDumpFormatMemory

2005-02-04 Thread Daniel Veillard
ml it' 2 clicks away from the main page http://xmlsoft.org/ Maybe you "certainly" could not find informations, but the informations are "certainly" available and indexed by both google and xmlmsoft own search engines. Daniel -- Daniel Veillard | Red Hat Desktop t

Re: [xml] wide characters & xmlDocDumpFormatMemory

2005-02-04 Thread Daniel Veillard
On Fri, Feb 04, 2005 at 06:04:00AM -0500, Daniel Veillard wrote: > On Fri, Feb 04, 2005 at 10:47:24AM +, David Harris wrote: > > xmlDocDumpFormatMemory works fine in xmlbuff is coerced to char but not > > wchar_t. How can I use wide characters? are there wide character v

Re: [xml] [patch]wiki api docs

2005-02-04 Thread Daniel Veillard
mho > be a bad hack as there is no mediawiki API to do this kind of thing atm > afaik. okay, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search e

Re: [xml] Problems with error printing

2005-02-07 Thread Daniel Veillard
you may face. If you have *real* stderr output, then explain what, the library uses stderr for valid reasons, it may use it for invalid ones, but your report does not show any. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolki

Re: [xml] Problems with error printing

2005-02-07 Thread Daniel Veillard
"Expand failed !\n"); > The examples of code here are by no means a total grep, merely some > examples. what error did *you* got ! I'm all for fixing problems. But I want problems report. You said you got stderr output, which ones ? Daniel -- Daniel Veillard | Red

Re: [xml] Canonicalization (C14N) of an XML element

2005-02-08 Thread Daniel Veillard
te some interop problems for documents using xml:base and xml:id, which may raise bug reports on your side. No need to rush but it's a problem, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://

Re: [xml] Flushing writers doesn't work...?

2005-02-09 Thread Daniel Veillard
lp. I still don't see what the problem might be. You need to be very precise and provide a reproduceable test case if possible. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit ht

Re: [xml] workarounds for SAX and entity replacement

2005-02-12 Thread Daniel Veillard
is what libxml2 does currently. This is not really trivial the harder is all the border cases of wellformedness and validity checking and there is plenty of trap to fell into if doing things naively. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTEC

Re: [xml] Redirecting error output with python bindings

2005-02-11 Thread Daniel Veillard
sult, and do I have the right > expectation? This is with Python 2.4 and libxml2 2.6.16 Any documentation > which could get me on the right track in this matter? please bugzilla then, thanks, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTE

Re: [xml] Re: xsd:include question

2005-02-15 Thread Daniel Veillard
s from CVS, if those APIs are not sufficient, then yeah avoid modifying the pattern.[ch] files at the moment, Work In Progress. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmf

Re: [xml] libxml2 newbie question about the Reader API

2005-02-17 Thread Daniel Veillard
t the custom I/O code samples at xmlsoft.org, It's like the I/O from other APIs ! http://xmlsoft.org/xmlio.html#Example2 http://xmlsoft.org/examples/index.html#InputOutput Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML

Re: [xml] libxml2 newbie question about the Reader API

2005-02-18 Thread Daniel Veillard
ave to think this over. How would you go about > implementing coarse progress information for a reader? matter of demand and priorities. Easy to do but you're the first one requesting it, a bugzilla entry and/or a patch are the most efficient ways to get this. Daniel -- Daniel Veillard

Re: [xml] libxml2 linker problem on Cygwin

2005-02-19 Thread Daniel Veillard
ose terms. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ ___ xml mailing list, project page

Re: [xml] Nested nodes

2005-02-20 Thread Daniel Veillard
nyone or make copies. we don't have the capacity to do this and we will expose, copy, index and publish mails received on the list ! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://ve

Re: [xml] using xmlTextWriterStartAttributeNS causing infinite loop

2005-02-21 Thread Daniel Veillard
sion tests. Applied , doesn't seems to break, but next time ptovide patches as attachments :-) thanks, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind R

Re: [xml] Converting to xmlChar type

2005-02-21 Thread Daniel Veillard
s a 0 terminated sequence of bytes with an UTF8 encoding. This is documented ! http://xmlsoft.org/encoding.html Conclusion: you can use taht direct cast if you know the string encoding is UTF-8 (or ASCII which is a subset). Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.

Re: [xml] encoding

2005-02-22 Thread Daniel Veillard
9-[1-15] are compiled in the library by default so unless a very specific setup the conversion will be supported. Anyway if the encoding is not supported, per the spec it's a fatal error and the parser fail immediately and deliver no data. Daniel -- Daniel Veillard | Red Hat Desktop team ht

Re: [xml] xmlwriter, invalid StartElement

2005-02-23 Thread Daniel Veillard
if you're in the middle of a comment no ? I don't know how C# xmlReader reacts in those case, could someone try and provide feedback ? thanks, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlso

Re: [xml] libxml and threads

2005-02-23 Thread Daniel Veillard
is usually platform specific. The memory you're pointed out should be freed by xmlCleanupGlobals() which is called by xmlCleanupParser() and to be released only once in the whole application lifetime. I can't see how this specific call can lead to " many memory leaks". I.e. I looked at

Re: [xml] libxml and threads

2005-02-23 Thread Daniel Veillard
On Wed, Feb 23, 2005 at 11:55:41AM +0100, Massimo Cafaro wrote: > On Feb 23, 2005, at 11:38 AM, Daniel Veillard wrote: > > > Leak: 0x0110f690 size=48 string 'MUTX' > > > Call stack: [thread 280c000]: | 0x0 | _pthread_body | > > > threa

Re: [xml] xmlParseFile;encode - newbie question

2005-02-23 Thread Daniel Veillard
d Murray & Karl this is not specific to libxml2. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

Re: [xml] libxml and threads

2005-02-23 Thread Daniel Veillard
> apps, so I now exactly what kind of problems can occur). So you should not be surprized that a library which maintains state need to have a initialization routine called in the main thread before further processing. > Thanks again, No problem. Daniel -- Daniel Veillard |

Re: [xml] xmlwriter, invalid StartElement

2005-02-23 Thread Daniel Veillard
ment as well as fix a ns reversal from last patch > for xmlTextWriterEndAttribute. Do :-) Okay applied and commited, thanks ! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ h

Re: [xml] xmlParseFile;encode - newbie question

2005-02-24 Thread Daniel Veillard
future. You are warned, I already stated the input must be fixed, and you must not rely on libxml2 to work around XML well-formedness errors, if I see this being abused I will just drop the support, I hope this is cristal clear. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat

Re: [xml] windows multi-threading

2005-02-24 Thread Daniel Veillard
are/pthreads-win32/sources/pthreads-snap-2005-01-25/pthread_once.c Can you generate a patch ? thanks, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search

Re: [xml] windows multi-threading

2005-02-24 Thread Daniel Veillard
ws, thanks, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ ___ xml mailing li

Re: [xml] windows multi-threading

2005-02-24 Thread Daniel Veillard
On Thu, Feb 24, 2005 at 12:25:55PM -0500, Rob Richards wrote: > Here's the revised patch. Okay, applied and commited, thanks ! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.o

Re: [xml] xmlParseFile;encode - newbie question

2005-02-27 Thread Daniel Veillard
ring, yes it will escape the predefined entities Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

Re: [xml] Can't install libxslt

2005-02-28 Thread Daniel Veillard
ibxslt > > But I've downloaded libxml2 2.6.8 and compiled it successfully from > source. When I look in /usrl/local/lib, I see: it's teh output of the xml2-config script which is used to detect the installed version and parameters. You have to fix the one used. Daniel -- Daniel Ve

Re: [xml] Invalid namespace definitions after namespace change

2005-02-28 Thread Daniel Veillard
/ don't need to creat new namespaces node and try to track and remove the old namespace informations Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/

Re: [xml] xmlSetExternalEntityLoader in python api

2005-03-01 Thread Daniel Veillard
rnalEntityLoader. Are there any docs > about how to use this file? No doc, you still need to code C bindings, the .xml just advertize that API. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ ht

Re: [xml] conversion problem

2005-03-02 Thread Daniel Veillard
t_encoding: Character encoding to use when generating XML text Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ __

Re: [xml] dumping XML file question

2005-03-03 Thread Daniel Veillard
On Thu, Mar 03, 2005 at 10:18:45AM +0100, Kenneth Østby wrote: > xmlDocFormatDump(xml,doc,0); > fflush(xml); > fclose(xml); > free(xml); Stop here, you already have a double free of a libc structure ! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat

Re: [xml] xmlwriter, flush file buffer

2005-03-03 Thread Daniel Veillard
allback == xmlFileFlush and calling it in that case might be doable, but a close is not a flush semantically. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM searc

Re: [xml] Delphi bindings now available for XMLSec

2005-03-04 Thread Daniel Veillard
it will mirror later today. thanks ! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

Re: [xml] about libxml2

2005-03-04 Thread Daniel Veillard
ing database. I do not plan to implement XQuery in libxml2. People who might want to implement it on top of libxml2 are free to do so. XQuery is not complete, it is still a W3C Working Draft. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml

Re: [xml] Nested nodes

2005-03-07 Thread Daniel Veillard
On Mon, Mar 07, 2005 at 12:09:13AM -0800, dan berry wrote: > Is there an api for checking if one node is nested in another node (without > going over the tree structure and check each node)? Hum, no. just walk the ->parent list, Daniel -- Daniel Veillard | Red Hat Desktop

Re: [xml] Memory not going away..

2005-03-08 Thread Daniel Veillard
d be listed in your .memdump assuming you compiled the library with memory debug http://xmlsoft.org/xmlmem.html#Debugging Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolk

Re: [xml] Memory not going away..

2005-03-08 Thread Daniel Veillard
hing I noticed. Not the parser, the DOM tree, yes that's possible depending on the ratio of data to markup. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://ve

Re: [xml] Memory not going away.. SOLUTION

2005-03-08 Thread Daniel Veillard
not call it while you had document allocated since they could now point to freed area (example predefined entities). I think your methodology of test is wrong, and the programming way of trying anything until it seems to work to not be better. Read the doc dor xmlCleanupParser() it is very clear you

Re: [xml] Memory not going away..

2005-03-08 Thread Daniel Veillard
ly, this is wrong, you don't get a syscall per call to free(). There is something else going on, I can't tell what, and I suspect your testing methodology based on OS lookup to not match what happen at the libc interface. Daniel -- Daniel Veillard | Red Hat Desktop team http://r

Re: [xml] thoughts?

2005-03-08 Thread Daniel Veillard
o feel libxml2 and the whole project potentially at risk due to this action, and I feel I must not let this go unnoticed. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rp

Re: [xml] Memory not going away.. SOLUTION

2005-03-08 Thread Daniel Veillard
n memory to then build your own structures reslly does not make sense, use the reader for this really. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search

Re: [xml] Memory not going away..

2005-03-08 Thread Daniel Veillard
ORY ALLOCATED : 32092, MAX was 212704970 libxml2 gave back the 2.1 GB of memory to the libc, it just has 32 KBytes left. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind

Re: [xml] XSchema and libxml

2005-03-09 Thread Daniel Veillard
to create the shemas context with a NULL URL, Kasimier should know more precisely. > > Subsidiary question : does anyone have a little code/example for doing this > ? if there is such an example I would add it to the example section Daniel -- Daniel Veillard | Red Hat Desktop t

Re: [xml] http_proxy

2005-03-09 Thread Daniel Veillard
changing the input files). http://xmlsoft.org/catalog.html Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _

Re: [xml] Problems with the "decimal" definition of a RELAX NG XSD on the Solaris 2.8 platform during validation using xmllint

2005-03-09 Thread Daniel Veillard
though dbx and check what is happening there. I can't do that myself, could you open a bugzilla entry about this and attaching the examples ? thanks, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ htt

Re: [xml] minor declaration fixes for xpath2.c and xmlregexp.c in 2.6.17

2005-03-10 Thread Daniel Veillard
-UX IPF binaries - dlopen et al being the calls used. Dlopen et al > are also available on later HP-UX PA-RISC releases, so it may be a matter > of tweaking some configure stuff. sure, send more patches :-), could be a good idea to use the cvs checkout version for further patches

Re: [xml] Probably should not look for/use shl_load if dlopen is found (2.6.17)

2005-03-10 Thread Daniel Veillard
es are better sent as mail attachments so they don't get messed up by the transport layers. thanks Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://vei

Re: [xml] xmlTextReaderNext skipping nodes

2005-03-10 Thread Daniel Veillard
On Thu, Mar 10, 2005 at 07:13:05AM -0500, Rob Richards wrote: > Attached is a patch for this. Testing for the XML_TEXTREADER_BACKTRACK > state is correct. Thanks, applied and commited. Unclear how to best check this in the regression tests, maybe as a Python script ? Daniel --

Re: [xml] xmlTextReaderNext skipping nodes

2005-03-10 Thread Daniel Veillard
On Thu, Mar 10, 2005 at 08:56:19AM -0500, Rob Richards wrote: > After a crash course in Pthon - its been a very long time - I threw > together this test based on some of the other pyton reader tests. Thanks a lot, seems to work fine, integated in the test suite ! Daniel -- Daniel Ve

Re: [xml] Probably should not look for/use shl_load if dlopen is found (2.6.17)

2005-03-10 Thread Daniel Veillard
t some may be of interest. Would you > like to see the entire list (as an attachment of course :)? there was a guy from cea.fr who was posting all warning obtained by compiling on Solaris or HP-UX in bugzilla, good to have them there and try to cleanup between releases, so yes sure ! Daniel -- D

Re: [xml] xmlReadMemory limitation

2005-03-11 Thread Daniel Veillard
om your computer. This notice is incompatible with the usage of the mailing list, we will copy archive and redistribute copies of mails sent to the list to anybody in the Internet. Remove it or unsubscribe this address from this list :-( Daniel -- Daniel Veillard | Red Hat Desktop team http

Re: [xml] xmlReadMemory limitation

2005-03-11 Thread Daniel Veillard
t() function, but > the result was the same] you must pass the length of the string buffer. You know that a_node->content is an UTF-8 string so you can use strlen() to extract the size and pass it down. doc = xmlReadMemory(a_node->content, strlen(a_node->content), &

Re: [xml] xmlReadMemory limitation

2005-03-11 Thread Daniel Veillard
adding it.not my client. Then that mean that the legal branch of your company refuses you the right to represent said company in this open source development project, use a different email address, use Gmail, Yahoo mail, or whatever but not your company email services to correspond with us

Re: [xml] xmlReadMemory limitation

2005-03-11 Thread Daniel Veillard
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/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://

Re: [xml] xmlReadMemory limitation

2005-03-11 Thread Daniel Veillard
eat, maybe they will then be receptive about the point that this legal text prevent representation of the company in Open Source projects at least on the libxml2/libxslt. Thanks for using a different address until this get fixed. Daniel -- Daniel Veillard | Red Hat Desktop team http://redh

  1   2   3   4   5   6   7   8   9   10   >