# Libxml problems

**URL:** <https://www.ruby-forum.com/t/libxml-problems/77050>\
**Category:** Ruby\
**Created:** [March 5, 2006, 10:47pm UTC](https://www.ruby-forum.com/t/libxml-problems/77050 "2006-03-05T22:47:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@markh](https://www.ruby-forum.com/u/markh)\
**Post date:** [March 5, 2006, 10:47pm UTC](https://www.ruby-forum.com/t/libxml-problems/77050/1 "2006-03-05T22:47:15Z")

</div>

We are looking at changing from using rexml in one project to libxml, as  
it  
proves to be much faster. However, the ruby libxml binding seems to be  
missing the capability to remove elements from an XML document (or at  
least  
I cannot see how to do so). Also, when trying to set attributes on a  
node  
(properties as libxml calls them), the attributes duplicate.

If i have a node like so:

then in ruby i do (n is the node):  
n[‘name’] = ‘something else’

Now the node looks like:

Anyone know what I am missing?

Thanks in advance,

Mark

---

<div class="post-metadata">

**Author:** ![markh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@markh](https://www.ruby-forum.com/u/markh)\
**Post date:** [March 6, 2006, 12:35pm UTC](https://www.ruby-forum.com/t/libxml-problems/77050/2 "2006-03-06T12:35:26Z")

</div>

On Mon, 2006-03-06 at 06:46 +0900, Mark Van H. wrote:

> If i have a node like so:
> 
> then in ruby i do (n is the node):  
> n[‘name’] = ‘something else’
> 
> Now the node looks like:

Hmm, this could be a bug… I’d appreciate if you could report it on the  
libxml list (removed\_email\_address@domain.invalid) so we can look into it and work  
up a patch…

Thanks,
