libxml problems

  • Thread starter Mark Van Holstyn
  • Start date
M

Mark Van Holstyn

------=_Part_2791_7604865.1141595167992
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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:
<node name=3D"something"/>

then in ruby i do (n is the node):
n['name'] =3D 'something else'

Now the node looks like:
<node name=3D"something" name=3D"something else"/>

Anyone know what I am missing?

Thanks in advance,

Mark

--
Mark Van Holstyn
(e-mail address removed)
http://lotswholetime.com

------=_Part_2791_7604865.1141595167992--
 
R

Ross Bamford

If i have a node like so:
<node name="something"/>

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

Now the node looks like:
<node name="something" name="something else"/>

Hmm, this could be a bug... I'd appreciate if you could report it on the
libxml list ([email protected]) so we can look into it and work
up a patch...

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,163
Latest member
Sasha15427
Top