[libxml-devel] Namespace atribute inside the node

2008-07-30 Thread simon
Hello,

I have a question, if it is possible to remove namespace definition
attribute inside LibXML::XML::Node object.

Have this object (class LibXML::XML::Node):

http://www.volantis.com/xmlns/mobilizer";
class="navigation" id="_6" mob:name="Menu"
mob:menustyle="menu_unfolded" propagation="true"
mob:numericshortcuts="false" style="STATIC">
  Stronka testowa


There is the same namespace definition inside the root node:

http://www.volantis.com/xmlns/mobilizer";
xmlns:urid="http://www.volantis.com>
[]


Do I have any access to xmlns attriibute (in div node)?
I tried:
node["mob"] or node["xmlns:mob"] and both return nil

Regards,
Szymon
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


[libxml-devel] [ libxml-Bugs-21395 ] XML::Parser.io unfair to StringIO ?

2008-07-30 Thread noreply
Bugs item #21395, was opened at 2008-07-30 15:53
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21395&group_id=494

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: XML::Parser.io unfair to StringIO ?

Initial Comment:
> LibXML::XML::Parser::VERSION
=> "0.8.3"

> xp = LibXML::XML::Parser.new
=> #

> xp.io = StringIO.new('')
TypeError: need an IO object


--

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21395&group_id=494
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


[libxml-devel] [ libxml-Bugs-21265 ] Segmentation Fault when setting attribute on CData node

2008-07-30 Thread noreply
Bugs item #21265, was opened at 2008-07-18 08:25
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21265&group_id=494

Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 3
Submitted By: Nobody (None)
>Assigned to: Charlie Savage (cfis)
Summary: Segmentation Fault when setting attribute on CData node

Initial Comment:
With libxml-ruby 0.8.1 and ruby 1.8.6 (2008-03-03 patchlevel 114) [i386-linux]:

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'libxml'
=> true
irb(main):003:0> cnode = XML::Node.new_cdata('test cdata')
=> 
irb(main):004:0> cnode['attr'] = '123'
(irb):4: [BUG] Segmentation fault
ruby 1.8.6 (2008-03-03) [i386-linux]

Aborted



--

>Comment By: Charlie Savage (cfis)
Date: 2008-07-19 12:49

Message:
Fixed - the code now returns an error saying you can't create an attribute on a 
CData node.  Will be in the next release.

Thanks for the report.

--

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21265&group_id=494
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


[libxml-devel] [ libxml-Bugs-21395 ] XML::Parser.io unfair to StringIO ?

2008-07-30 Thread noreply
Bugs item #21395, was opened at 2008-07-30 12:53
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21395&group_id=494

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: XML::Parser.io unfair to StringIO ?

Initial Comment:
> LibXML::XML::Parser::VERSION
=> "0.8.3"

> xp = LibXML::XML::Parser.new
=> #

> xp.io = StringIO.new('')
TypeError: need an IO object


--

Comment By: Erik Hollensbe (erikh)
Date: 2008-07-30 14:45

Message:
StringIO doesn't inherit from IO, it just mirrors the interface.

f.e.:

StringIO.new("").kind_of? IO == false

The code will have to be adapted to handle StringIO directly.

--

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21395&group_id=494
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel


Re: [libxml-devel] Namespace atribute inside the node

2008-07-30 Thread Charlie Savage



simon wrote:

Hello,

I have a question, if it is possible to remove namespace definition
attribute inside LibXML::XML::Node object.

Have this object (class LibXML::XML::Node):

http://www.volantis.com/xmlns/mobilizer";
class="navigation" id="_6" mob:name="Menu"
mob:menustyle="menu_unfolded" propagation="true"
mob:numericshortcuts="false" style="STATIC">
  Stronka testowa


There is the same namespace definition inside the root node:

http://www.volantis.com/xmlns/mobilizer";
xmlns:urid="http://www.volantis.com>
[]


Do I have any access to xmlns attriibute (in div node)?
I tried:
node["mob"] or node["xmlns:mob"] and both return nil


Yes, this part of libxml is confusing and needs to be refactored.  Anwyay:

node.namespace_node  -> the node's namespace

node.namespace or node.ns -> a list of all current namespaces for the node

node.ns_def -> A list of namespaces defined on the element

Charlie


smime.p7s
Description: S/MIME Cryptographic Signature
___
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel