Your message dated Fri, 30 Sep 2005 17:44:22 +0200 with message-id <[EMAIL PROTECTED]> and subject line Bug#274713: [xml-libxml] Weird Element attribute behaviour has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 3 Oct 2004 19:38:18 +0000 >From [EMAIL PROTECTED] Sun Oct 03 12:38:18 2004 Return-path: <[EMAIL PROTECTED]> Received: from hal-4.inet.it [213.92.5.23] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1CECBV-00011j-00; Sun, 03 Oct 2004 12:38:17 -0700 Received: from 81-174-12-206.f5.ngi.it [::ffff:81.174.12.206] by hal-4.inet.it via I-SMTP-5.1.13-51A id ::ffff:81.174.12.206+9AR6E0Ep0lx; Sun, 03 Oct 2004 21:38:15 +0200 Received: from localhost (localhost [127.0.0.1]) by eddie.casa (Postfix) with ESMTP id 2D2595A535; Sun, 3 Oct 2004 21:38:10 +0200 (CEST) Received: from eddie.casa ([127.0.0.1]) by localhost (eddie [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23273-05; Sun, 3 Oct 2004 21:38:06 +0200 (CEST) Received: from marvin.casa (marvin.casa [192.168.1.2]) by eddie.casa (Postfix) with ESMTP id 32D985A0C1; Sun, 3 Oct 2004 21:38:06 +0200 (CEST) Received: from enrico by marvin.casa with local (Exim 3.36 #1 (Debian)) id 1CECBK-0002W9-00; Sun, 03 Oct 2004 21:38:06 +0200 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Enrico Zini <[EMAIL PROTECTED]> To: Debian Bug Tracking System <[EMAIL PROTECTED]> Subject: Weird Element attribute behaviour X-Mailer: reportbug 2.99.4 Date: Sun, 03 Oct 2004 21:38:06 +0200 Message-Id: <[EMAIL PROTECTED]> Sender: Enrico Zini <[EMAIL PROTECTED]> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: Package: libxml-libxml-perl Version: 1.56-6.1 Severity: normal Hello, I'm getting a weird behaviour with attributes. Giving this code: #!/usr/bin/perl -w use strict; use warnings; use XML::LibXML; my $parser = XML::LibXML->new; my $doc = $parser->parse_string(<<EOT); <test xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:test="0"> </test> EOT print $doc->toString(1); my $el = $doc->getDocumentElement(); $el->removeAttribute('rdf:test'); print $doc->toString(1); $el->setAttribute('rdf:test', '2'); print $doc->toString(1); I get this output: <?xml version="1.0"?> <test xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:test="0"> </test> <?xml version="1.0"?> <test xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:test="0"> </test> <?xml version="1.0"?> <test xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:test="0" rdf:test="2"> </test> As you can see, removeAttribute does not work, and setAttribute adds a duplicate. If I don't use namespaces instead, it works just fine. Bye, Enrico -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.8-1-686-smp Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] Versions of packages libxml-libxml-perl depends on: ii libc6 2.3.2.ds1-17 GNU C Library: Shared libraries an ii libxml-libxml-common-perl 0.13-4 Perl module for common routines & ii libxml-namespacesupport-per 1.08-3 Perl module for supporting simple ii libxml-sax-perl 0.12-4 Perl module for using and building ii libxml2 2.6.11-3 GNOME XML library ii perl 5.8.4-2.3 Larry Wall's Practical Extraction ii perl-base [perlapi-5.8.4] 5.8.4-2.3 The Pathologically Eclectic Rubbis ii zlib1g 1:1.2.1.2-1 compression library - runtime -- no debconf information --------------------------------------- Received: (at 274713-done) by bugs.debian.org; 30 Sep 2005 15:44:39 +0000 >From [EMAIL PROTECTED] Fri Sep 30 08:44:39 2005 Return-path: <[EMAIL PROTECTED]> Received: from mail.irb.hr [161.53.22.8] (UNKNOWN) by spohr.debian.org with esmtp (Exim 3.36 1 (Debian)) id 1ELN3v-0006sq-00; Fri, 30 Sep 2005 08:44:39 -0700 Received: from diziet.irb.hr (diziet.irb.hr [161.53.22.31]) by mail.irb.hr (8.13.3/8.13.3/Debian-6) with ESMTP id j8UFiKtr026484 for <[EMAIL PROTECTED]>; Fri, 30 Sep 2005 17:44:20 +0200 Received: from diziet.irb.hr (localhost [127.0.0.1]) by diziet.irb.hr (8.13.5/8.13.5/Debian-1) with ESMTP id j8UFiMiK017573 for <[EMAIL PROTECTED]>; Fri, 30 Sep 2005 17:44:22 +0200 Received: (from [EMAIL PROTECTED]) by diziet.irb.hr (8.13.5/8.13.5/Submit) id j8UFiMbj017571 for [EMAIL PROTECTED]; Fri, 30 Sep 2005 17:44:22 +0200 Date: Fri, 30 Sep 2005 17:44:22 +0200 From: Matej Vela <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Bug#274713: [xml-libxml] Weird Element attribute behaviour Message-ID: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <[EMAIL PROTECTED]> User-Agent: Mutt/1.5.11 X-Scanned-By: MIMEDefang 2.51 on 161.53.22.8 Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02 On Wed, Aug 31, 2005 at 02:56:11PM +0200, Enrico Zini wrote: > On Sun, May 22, 2005 at 01:36:20AM +0200, Torsten Werner wrote: > > > may you send a full, but minimal script that reproduces your problem, > > please? > > Hello Torsten and sorry for the delay. I was hoping to get back to that > code anytime soon, but that hasn't happened yet and I can't say when > I'll get back to it. > > If you want you can close this bug. If I'll be working with that code > again and restumble on that problem, I'll reopen the bug or report it > again. OK, closing. Thanks, Matej -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]