Re: [xml] If libxml2 headers refer to libxml/*.h, why is it installed into libxml2/libxml?

2020-02-12 Thread Andrew W. Nosenko via xml
rformance improvements > by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler > So if you're looking for a completely portable, 100% standards-conformant > way > to get the wrong information: this is what you want. - Scott Meyer

Re: [xml] CR to LF conversion problem libXML

2015-05-15 Thread Andrew W. Nosenko
, before parsing, by translating both the two-character sequence #xD #xA and any #xD that is not followed by #xA to a single #xA character. -- Andrew W. Nosenko andrew.w.nose...@gmail.com ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org

Re: [xml] Unable to compile LibXML2 2.9.1 on AIX 64 Bit

2013-05-28 Thread Andrew W. Nosenko
`/libxml2-2.9.1' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/libxml2-2.9.1' make: *** [all] Error 2 Please help me about what other options need to be set for AIX 64 bit. IIRC, xlC_r is a C++ compiler. Can you try C comiler instead (xlc_r)? -- Andrew W. Nosenko

[xml] Proposal: expose the new xmlBufShrink() to the public API for compatibility with xmlBufUse()

2012-08-21 Thread Andrew W. Nosenko
. Therefore, need to use the new xmlBufShrink(). But it is private. Therefore, I propose to expose the new xmlBufShrink() in the same way, as xmlBufContent() and xmlBufUse() are exposed. -- Andrew W. Nosenko andrew.w.nose...@gmail.com ___ xml mailing

Re: [xml] Fwd: Value out of ellement?

2011-10-07 Thread Andrew W. Nosenko
to the Device node and call xmlTextReaderReadString(). -- Andrew W. Nosenko andrew.w.nose...@gmail.com ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] Security Issue - libxml

2011-02-23 Thread Andrew W. Nosenko
.  The issue affects mainly libxml-ruby. Daniel Veillard veill...@redhat.com is maintainer of libxml2. Therefore, the most conservative route is to send private e-mail to him. -- Andrew W. Nosenko andrew.w.nose...@gmail.com ___ xml mailing list, project page

Re: [xml] LIBXML_THREAD_ENABLED and HAVE_PTHREAD_H mismatch

2010-11-18 Thread Andrew W. Nosenko
On Wed, Nov 17, 2010 at 01:28, Roumen Petrov bugtr...@roumenpetrov.info wrote: Andrew W. Nosenko wrote: On Tue, Nov 16, 2010 at 01:05, Roumen Petrovbugtr...@roumenpetrov.info  wrote: Kwasi Mensah wrote: I ran into the issue where HAVE_PTHREAD_H is defined but LIBXML_THREAD_ENABLED

Re: [xml] Submitting patches, list or bugzilla?

2010-11-12 Thread Andrew W. Nosenko
); memset(tid, 0xff, sizeof(*tid)*num_threads); ? -- Andrew W. Nosenko andrew.w.nose...@gmail.com ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] doubles and schema validation

2010-07-28 Thread Andrew W. Nosenko
enough. -- Andrew W. Nosenko andrew.w.nose...@gmail.com ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] doubles and schema validation

2010-07-22 Thread Andrew W. Nosenko
by it indeed without unsafe tricks and assumptions. IMO, that fits the spirit of a finite-length sequence of decimal digits separated by a period fairly well. -- Andrew W. Nosenko andrew.w.nose...@gmail.com ___ xml mailing list, project page http

Re: [xml] doubles and schema validation

2010-07-21 Thread Andrew W. Nosenko
or more digits instead: No! The case like .5 instead of 0.5 is perfectly valid and widely used! Whether the . or e are valid string representation of the double type or should be rejected -- it's another matter. But zero digits before dot are absolutely correct and should be allowed. -- Andrew W

Re: [xml] xmlParseFile Help

2010-01-06 Thread Andrew W. Nosenko
). -- Andrew W. Nosenko andrew.w.nose...@gmail.com ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

[xml] [PATCH] Fix yet another --with-threads bug: using pipe instead of logical OR

2009-10-06 Thread Andrew W. Nosenko
Unfortunately, at the time of writing 2bdf87e Restore behavior of --with-threads without argument I was too concentrated on --with-threads without arguments and left second problem in this check unattended: the test chain was built using '|' pipe instead of '||' logical OR. As consequence,

[xml] [PATCH] Restore behavior of --with-threads without argument as enable threads

2009-09-18 Thread Andrew W. Nosenko
Restore behavior of $ configure --with-threads i.e. without argument to --with-threads as enable threads support Behavior was broken in commit 203fd2e Allow to select the threading system on Windows * configure.in: restore behavior of --with-threads without argument as enable threads

Re: [xml] libxml2-2.7.1 compiling error under Solaris/GCC

2008-10-01 Thread Andrew W. Nosenko
includes stdint.h, so there's no need to include stdint.h separately in a standard environment. Some implementations have inttypes.h but not stdint.h (e.g., Solaris 7), but we don't know of any implementation that has stdint.h but not inttypes.h. -- Andrew W. Nosenko

Re: [xml] libxml2-2.7.1, solaris 8, and xmlDictComputeBigKey

2008-09-26 Thread Andrew W. Nosenko
that inttypes.h includes stdint.h, so there's no need to include stdint.h separately in a standard environment. Some implementations have inttypes.h but not stdint.h (e.g., Solaris 7), but we don't know of any implementation that has stdint.h but not inttypes.h. -- Andrew W

Re: [xml] initialization issues in libxml2

2008-05-22 Thread Andrew W. Nosenko
()? Something like (in terms of Glib atomic operations) gboolean need_init; need_init = g_atomic_int_compare_and_exchange(xmlParserInitialized, 0, 1); if (!need_init) return; /* regular initialization code ... */ -- Andrew W. Nosenko [EMAIL PROTECTED

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 on #0

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

2008-04-10 Thread Andrew W. Nosenko
curious why you need strlen()?.. I would to expect strcmp() rather... -- Andrew W. Nosenko [EMAIL PROTECTED] ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] Query Regarding Revision 2121 in SVN for entity nesting check in parserinternal.c

2008-02-20 Thread Andrew W. Nosenko
concurent threads running on the different CPUs. -- Andrew W. Nosenko [EMAIL PROTECTED] ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] Query Regarding Revision 2121 in SVN for entity nesting check in parserinternal.c

2008-02-20 Thread Andrew W. Nosenko
On Feb 20, 2008 5:08 PM, Daniel Veillard [EMAIL PROTECTED] wrote: On Wed, Feb 20, 2008 at 03:04:42PM +0200, Andrew W. Nosenko wrote: On Feb 20, 2008 2:50 PM, Daniel Veillard [EMAIL PROTECTED] wrote: However I assume in case of scenarios where there is a parser context per

Re: [xml] TextReader vis-a-vis SAX

2008-02-14 Thread Andrew W. Nosenko
On Thu, Feb 14, 2008 at 2:41 PM, Daniel Veillard [EMAIL PROTECTED] wrote: On Wed, Feb 13, 2008 at 06:16:49PM +0200, Andrew W. Nosenko wrote: On Aug 29, 2007 3:32 PM, Daniel Veillard [EMAIL PROTECTED] wrote: On Wed, Aug 29, 2007 at 06:50:53PM +0530, harbhanu wrote: What libxml2

Re: [xml] TextReader vis-a-vis SAX

2008-02-13 Thread Andrew W. Nosenko
nesting will have the complete document in memory... For ex aababcabcd. . /abc/abcd/ab/a In this case its memory requirement will be almost equivalent to DOM. Right?? yes, stupid design leads to stupid problems, I don't care too much about it. -- Andrew W. Nosenko [EMAIL

Re: [xml] libxml2 and c++ bindings

2007-09-03 Thread Andrew W. Nosenko
headers already have #ifdef __cplusplus extern C { #endif magic for you. -- Andrew W. Nosenko [EMAIL PROTECTED] ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] Mac OS X Binaries

2007-07-16 Thread Andrew W. Nosenko
functions exist in the libc. libpthread exists just as stub for compatibility with packages that links with libpthread unconditionally. -- Andrew W. Nosenko [EMAIL PROTECTED] ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http

Re: [xml] memory management issues

2006-12-05 Thread Andrew W. Nosenko
free(). But it may be overriden by xmlMemSetup() or xmlGcMemSetup(). -- Andrew W. Nosenko [EMAIL PROTECTED] ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] What is difference between xmlTextReaderNext() and xmlTextReaderNextSibling()?

2006-11-03 Thread Andrew W. Nosenko
On 11/3/06, Daniel Veillard [EMAIL PROTECTED] wrote: On Fri, Nov 03, 2006 at 03:31:20PM +0200, Andrew W. Nosenko wrote: Sorry for possible stupid question, but what is difference between xmlTextReaderNext() and xmlTextReaderNextSibling()? Documentation for both say that they do Skip

Re: [xml] xmlReadFile question...

2006-10-10 Thread Andrew W. Nosenko
... But you will have less control over processing -- there no 'options' and 'encoding' parameters. -- Andrew W. Nosenko [EMAIL PROTECTED] ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] libxml2.xmlIO.awn.1.patch

2006-09-13 Thread Andrew W. Nosenko
, both HAVE_STAT and HAVE__STAT was defined. Works for me (FreeBSD-5.4). Thanks. -- Andrew W. Nosenko [EMAIL PROTECTED] ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

Re: [xml] libxml2.xmlIO.awn.1.patch

2006-09-08 Thread Andrew W. Nosenko
On 9/7/06, Emelyanov Alexey [EMAIL PROTECTED] wrote: 2006-09-06 Andrew W. Nosenko [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [...] Some words about removed '#define stat _stat': 1. this define is just wrong because replaces declarations like struct stat stat_buff

[xml] libxml2.xmlIO.awn.1.patch

2006-09-06 Thread Andrew W. Nosenko
2006-09-06 Andrew W. Nosenko [EMAIL PROTECTED] * xmlIO.c [HAVE_STAT HAVE__STAT]: Fix the compilation breakage: macro that redefines of the 'stat' as '_stat' is removed (was introduced in the r1.172). * xmlIO.c: (xmlWrapOpenUtf8

Re: [xml] xmlEncodeSpecialChars(): suspicious '\r'-#31; conversion

2006-08-03 Thread Andrew W. Nosenko
On 8/3/06, Andrew W. Nosenko [EMAIL PROTECTED] wrote: xmlEncodeSpecialChars(), file entities.c, lines 703-708: [skip] Forbid this e-mail. Sorry. I was wrong. libxml2 correctly encodes '\r' as #13;. Sorry again. -- Andrew W. Nosenko [EMAIL PROTECTED

[xml] libxml2.zlib-feature.awn.1.patch

2006-07-11 Thread Andrew W. Nosenko
Attached patch allows to see, whether libxml2 was compiled with Zlib support over 'xmllint --help' and/or 'xmlHasFeature(XML_WITH_ZLIB)'. 2006-07-11 Andrew W. Nosenko [EMAIL PROTECTED] * parser.c (xmlHasFeature): * include/libxml/parser.h (XML_WITH_ZLIB): * include

[xml] libxml2.rmutex-cond-leak.awn.1.patch

2006-06-26 Thread Andrew W. Nosenko
2006-06-26 Andrew W. Nosenko [EMAIL PROTECTED] * threads.c: (xmlFreeRMutex) [HAVE_PTHREAD_H]: Destroying of condition, which allocated in the xmlNewRMutex(), is added. Seems like absent pthread_cond_destroy() produces memory leak under FreeBSD (4 bytes per each

Re: [xml] libxml vs stl

2005-11-22 Thread Andrew W. Nosenko
://libxmlplusplus.sourceforge.net/ ) Again: libxml2 uses narrow characters (unsigned char), not a wide characters (wchar_t). Or am i better using the provide string functions in libxml? Again, depends on your application and your personal taste. -- Andrew W. Nosenko [EMAIL PROTECTED

Re: [xml] Problems building libxml2 when files are read-only (because of source control)

2005-10-28 Thread Andrew W. Nosenko
by scanning configure.in, but I have no idea why it modified by regular configure operations (rebuilding of configure Co isn't counted). May be you have meant config.h, not config.h.in? -- Andrew W. Nosenko [EMAIL PROTECTED] ___ xml

[xml] encoding.awn.gcc-warn.1.patch

2005-10-28 Thread Andrew W. Nosenko
2005-10-28 Andrew W. Nosenko [EMAIL PROTECTED] * encoding.c: (xmlIconvWrapper): avoid GCC warning about passing argument from incompatible pointer type. -- Andrew W. Nosenko [EMAIL PROTECTED] 2005-10-28 Andrew W. Nosenko [EMAIL PROTECTED] * encoding.c

[xml] Re: How to detect at run-time whether libxml2 was compiled with enabled mutlithreading support?

2005-09-02 Thread Andrew W. Nosenko
On 8/2/05, Andrew W. Nosenko [EMAIL PROTECTED] wrote: How to detect at run-time whether libxml2 was compiled with enabled mutlithreading support (--with-threads)? Reason of question: I just try to avoid following scenario: 1. application builded and tested on the machine with thread-aware

Re: [xml] Re: How to detect at run-time whether libxml2 was compiled with enabled mutlithreading support?

2005-09-02 Thread Andrew W. Nosenko
On 9/2/05, Daniel Veillard [EMAIL PROTECTED] wrote: Idea is good, implementation not so. The function goes into threads.c and the declaration in the system independant libxml/threads.h include. I integrated it but not by applying your patch, No problems. Thanks. -- Andrew W. Nosenko

[xml] xmlversion.h.in.awn.threads.1.patch

2005-08-25 Thread Andrew W. Nosenko
_REENTRANT macro) and application-user-of-library with another (without LIBXML_THREAD_ENABLED, because _REENTRANT macro is not defined by anyone). -- Andrew W. Nosenko [EMAIL PROTECTED] 2005-08-23 Andrew W. Nosenko [EMAIL PROTECTED] * include/libxml/xmlversion.h.in