[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#274713: marked as done (Weird Element attribute behaviour)



Your message dated Fri, 30 Sep 2005 17:44:22 +0200
with message-id <20050930154414.GA17560@diziet.irb.hr>
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 zinie@cs.unibo.it Sun Oct 03 12:38:18 2004
Return-path: <zinie@cs.unibo.it>
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 <enrico@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Weird Element attribute behaviour
X-Mailer: reportbug 2.99.4
Date: Sun, 03 Oct 2004 21:38:06 +0200
Message-Id: <E1CECBK-0002W9-00@marvin.casa>
Sender: Enrico Zini <zinie@cs.unibo.it>
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at uncasino.it
Delivered-To: submit@bugs.debian.org
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: LANG=it_IT.UTF-8@euro, LC_CTYPE=it_IT.UTF-8@euro

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 mvela@irb.hr Fri Sep 30 08:44:39 2005
Return-path: <mvela@irb.hr>
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 <274713-done@bugs.debian.org>; 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 <274713-done@bugs.debian.org>; Fri, 30 Sep 2005 17:44:22 +0200
Received: (from mvela@localhost)
	by diziet.irb.hr (8.13.5/8.13.5/Submit) id j8UFiMbj017571
	for 274713-done@bugs.debian.org; Fri, 30 Sep 2005 17:44:22 +0200
Date: Fri, 30 Sep 2005 17:44:22 +0200
From: Matej Vela <vela@debian.org>
To: 274713-done@bugs.debian.org
Subject: Re: Bug#274713: [xml-libxml] Weird Element attribute behaviour
Message-ID: <20050930154414.GA17560@diziet.irb.hr>
References: <E1CECBK-0002W9-00@marvin.casa> <4161AA13.1070508@uibk.ac.at> <20041004204815.GA11366@marvin.casa> <1096925170.2769.27.camel@localhost.localdomain> <20041005144634.GA22780@marvin.casa> <20050521233618.GA24789@twerner42.de> <20050831125611.GA23616@viaza>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050831125611.GA23616@viaza>
User-Agent: Mutt/1.5.11
X-Scanned-By: MIMEDefang 2.51 on 161.53.22.8
Delivered-To: 274713-done@bugs.debian.org
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



Reply to: