Re: [xml] Installation issue with IIS

2010-01-03 Thread Petr Pajas
Hi, I'm not a Windows user, but I'd say that if 'c:/Perl/site/lib/auto/XML/LibX ML/Common/Common.dll' cannot be accessed by IIS, you have to fix the permissions (maybe not just for Common.dll, but also for LibXML.dll, libxml2.dll, iconv.dll, etc). Maybe some users at the perl-xml list would know

Re: [xml] storing/printing subtree

2009-09-30 Thread Petr Pajas
2009/9/30 Marius Pacha l...@matux.de: Hi there, I'm stuck with a problem for a couple of days now and hope to find help here. Parsing a xml document I'm in need of storing some of the subtrees inside of it. I was pointed to http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveTree which looks

Re: [xml] Entity with elements inside it?

2009-07-10 Thread Petr Pajas
I use libxml2.6.26 and libxml2.6.31, which version do you use? And my parser options are: ret = xmlCtxtUseOptions(parser-xml_ctx, XML_PARSE_DTDATTR || XML_PARSE_DTDLOAD || XML_PARSE_DTDVALID); Make sure you use binary OR (| not ||) ! I use libxml2.6.26 and

Re: [xml] IO callbacks are not thread-safe

2009-04-06 Thread Petr Pajas
On Monday 06 April 2009 18:36:25 Michael Ludwig wrote: Nick Wellnhofer schrieb: The input and output callbacks of libxml are stored in static arrays in xmlIO.c, so any use of the callback functions is not thread-safe. If someone has time to explain this to the uninitiated: What are these

Re: [xml] IO callbacks are not thread-safe

2009-04-02 Thread Petr Pajas
On čt 2. dubna 2009, Daniel Veillard wrote: On Thu, Mar 26, 2009 at 07:06:14PM +0100, Nick Wellnhofer wrote: The input and output callbacks of libxml are stored in static arrays in xmlIO.c, so any use of the callback functions is not thread-safe. In many cases this shouldn't be a

Re: [xml] how to use xmlFree

2009-02-05 Thread Petr Pajas
On čt 5. února 2009, divij wrote: Hi All, Here I am using xmlFree to free the const xmlChar * but I am getting the following errors:- Memory tag error occurs :0x8ed44a0 bye xmlMemFree(8ED44B8) error xmlMallocBreakpoint reached on block 0 Does any one can throw some light on

[xml] question about dumping notations from extSubset

2008-10-31 Thread Petr Pajas
Hi Daniel, All, I want to use xmlNodeDump on doc-extSubset but the output does not contain any !NOTATION... declarations. In xmlDtdDumpOutput there is the following comment and code: /* * Dump the notations first they are not in the DTD children list * Do this only on a

Re: [xml] Regarding xmlTextReaderNext Api

2008-06-27 Thread Petr Pajas
Hi Ashwin, all, I think this forgotten post of mine http://mail.gnome.org/archives/xml/2007-May/msg00104.html is related. -- Petr On st 25. června 2008, Ashwin wrote: Hi, I am parsing using the reader walker Api's. While walking the tree I need to skip the subtree for a certain

[xml] DTD validation issue

2008-02-25 Thread Petr Pajas
Hi Daniel, All, the following inconsistency in DTD validation, reproducible with xmllint, was reported to me by a user of XSH2, Jakub Neburka. He takes two files: decl.dtd and decl.xml and does basically the following: 1) xmllint --valid decl.xml xmllint --postvalid decl.xml both succeed.

Re: [xml] xmlNodeDump looses data

2008-02-16 Thread Petr Pajas
... The bug seems to me rather serious since it can have really bad consequences for applications that use xmlNodeDump. Well apparently that function has been around at least since 2004 since Bill already fixed a bug there a in Nov 2004. Surprizingly the bug seems to have gonne

[xml] xmlNodeDump looses data

2008-02-15 Thread Petr Pajas
Hi Daniel, All, one of the users of the Perl bindings reported a strange bug which I was able to reduce to the attached very very simple test.c program and a XML file test2.xml. The program parses the XML file into a tree, and then dumps the root element using xmlNodeDump. In the result, a

Re: [xml] sax and entities

2007-09-10 Thread Petr Pajas
On po 10. září 2007, Daniel Veillard wrote: On Sun, Sep 09, 2007 at 04:51:55PM +0200, Petr Pajas wrote: Daniel, sorry that I'm returning to this topic after two months. I'm still struggling (read below). On Sunday 09 September 2007, Daniel Veillard wrote: On Sunday 10 June 2007 23

Re: [xml] sax and entities

2007-09-09 Thread Petr Pajas
Daniel, sorry that I'm returning to this topic after two months. I'm still struggling (read below). On Sunday 09 September 2007, Daniel Veillard wrote: On Sunday 10 June 2007 23:10, Petr Pajas wrote: Hi, I have two files (also attached) 1) test.xml: ?xml version=1.0 encoding

Re: [xml] libxml2 Perl Bindings

2007-08-22 Thread Petr Pajas
On st 22. srpna 2007, Daniel Veillard wrote: On Wed, Aug 22, 2007 at 07:08:13AM -0500, Tom Browder wrote: Please consider adding up-to-date Perl binding info to the libxml2 home page. The Perl binding that is aimed at tracking libxml2 completely is the XML::LibXML module available at

Re: [xml] sax and entities

2007-06-16 Thread Petr Pajas
Daniel, All, before it's forgotten, does anyone have some clues about this, please? Shall I buzilla it? Thanks, -- Petr On Sunday 10 June 2007 23:10, Petr Pajas wrote: Hi, I have two files (also attached) 1) test.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE a [ !ENTITY b SYSTEM

[xml] sax and entities

2007-06-10 Thread Petr Pajas
Hi, I have two files (also attached) 1) test.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE a [ !ENTITY b SYSTEM b.txt ] ab;/a 2) b.txt, which contains just B When parsing test.xml via the SAX2 interface, I get two character callbacks for the string B. The problem can be reproduced

[xml] reader.Next()

2007-05-28 Thread Petr Pajas
Hi Daniel, All, I'm confused about what is xmlTextReaderNext actually supposed to do. When I use it with a TextReader, it works almost like like xmlTextReaderNextSibling for walker, except that it stops before the end-tag. For Walker, Next() seems to work just like Read(), except that it starts

Re: [xml] namespaces redeclarations

2007-04-17 Thread Petr Pajas
foo xmlns:ns2=http://www.foo.bar ns2:barns2:bar2//ns2:bar /foo is there a solution to this or am I just making problems for nothing? :) yes, use createElementNS(http://www.foo.bar,ns2:bar2;); -- Petr Pajas ___ xml mailing list, project page http

Re: [xml] an xpath segfault reproducible with xmllint

2007-04-04 Thread Petr Pajas
On Wednesday 04 April 2007 14:50, Daniel Veillard wrote: On Tue, Apr 03, 2007 at 06:04:54PM +0200, Petr Pajas wrote: Hi Daniel, All, I have experienced segfaults where just an error should be issued. After playing with the xpath for a while, I have narrowed it to the following test case

[xml] an xpath segfault reproducible with xmllint

2007-04-03 Thread Petr Pajas
Hi Daniel, All, I have experienced segfaults where just an error should be issued. After playing with the xpath for a while, I have narrowed it to the following test case: xmllint --shell test.xml / xpath [EMAIL PROTECTED](concat())] XPath error : Invalid number of arguments XPath error :

[xml] propper error reporting

2007-01-09 Thread Petr Pajas
Hi Daniel, All, I'm struggling with fixing error reporting from RelaxNG validation in the Perl XML::LibXML bindings. I would like to get a flat string, actually the very same string that xmllint spits only in memory, not on stderr. The problem is that if I use xmlRelaxNGSetValidErrors (like

Re: [xml] propper error reporting

2007-01-09 Thread Petr Pajas
On Tuesday 09 January 2007 16:32, Daniel Veillard wrote: However, xmlReportError is static, so that won't work. So my question is: is there any public API that would produce formatted error strings from xmlError or do I need to copy-paste the insides of xmlReportError to my code?  

[xml] encoding and htmlCreatingPushParser

2006-11-10 Thread Petr Pajas
Hi Daniel, All, I'm using the xmlCharEncoding argument of htmlCreatePushParserCtxt in order to force the parser to expect a certain input encoding. It works fine but only as long as the HTML document contains no header like meta http-equiv=Content-Type content=text/html; charset=iso-8859-2

Re: [xml] encoding and htmlCreatingPushParser

2006-11-10 Thread Petr Pajas
On Friday 10 November 2006 15:37, Daniel Veillard wrote: On Fri, Nov 10, 2006 at 03:15:40PM +0100, Petr Pajas wrote: Hi Daniel, All, I'm using the xmlCharEncoding argument of htmlCreatePushParserCtxt in order to force the parser to expect a certain input encoding. It works fine but only

[xml] ctxt-sax-fatalError never beging used

2006-07-28 Thread Petr Pajas
Hi Daniel, All, I wonder why the sax fatalError callback is never called even for fatal errors. I would assume the corresponding code in __xmlRaiseError to look something like: if (level == XML_ERR_WARNING) channel = ctxt-sax-warning; else if (level == XML_ERR_FATAL)

Re: [xml] Perl and libxml2

2005-12-14 Thread Petr Pajas
On Wednesday 14 of December 2005 13:23, tbrowder wrote: There is a perl module, XML::LibXML, that is supposed to be a wrapper around libxml2 but it hasn't been changed since Nov 2004. Is this an official wrapper (i.e., has there been any recognition or cooperation between its developers and

Re: [xml] Perl module XML::LibXML not encoding UTF-8 properly [SOLUTION]

2005-09-26 Thread Petr Pajas
Hi Loren. On Mon Sep 26 2005 19:57, Loren Osborn wrote: I appreciate your feedback, but unfortunately it didn't give me any additional warnings or errors. Fortunately I *DID* figure out both the cause and a solution. Additionally I'd like to propose a code change to catch most instances of

Re: [xml] Suggestion for http://xsh.sourceforge.net/

2005-09-18 Thread Petr Pajas
On Sun 18 Sep 2005 05:00 James wrote: Hi, I saw that you have some patent-related info at http://xsh.sourceforge.net/ James, the content of the site http://xsh.sourceforge.net/ isn't the subject of this mailing-list and is only distantly related to it. I don't know what gave you the idea to

Re: [xml] XML:: LibXml not recognising windows style paths in external entity references.

2005-08-14 Thread Petr Pajas
Arun, 1) Generally, perl-bindings for libxml2 are discussed on [EMAIL PROTECTED] as well as other XML modules. 2) in this case, I believe libxml2 is right (..\..\..\ref_file.xml isn't a valid URI) and with XML::DOM you're just being lucky. Fix your XML data. -- Petr Dne Saturday 13 August

Re: [xml] Need help in xupdate

2005-07-05 Thread Petr Pajas
found anything... Thanks Arvind - Original Message - From: Petr Pajas [EMAIL PROTECTED] To: xml@gnome.org Cc: Arvind [EMAIL PROTECTED] Sent: Sunday, July 03, 2005 2:47 PM Subject: Re: [xml] Need help in xupdate Dne Sunday 03 July 2005 10:23 Arvind napsal(a): Hi... I have

Re: [xml] Need help in xupdate

2005-07-03 Thread Petr Pajas
Dne Sunday 03 July 2005 10:23 Arvind napsal(a): Hi... I have to update xml file using xupdate I don't know which api or library we have to use in c, c++.. can anybody help me pls... Thanks Arvind Arvind, I don't know if there's a C/C++ library implementation over libxml2 (nor any