Thanks for your fast answer

I use ibxml-ruby 1.1.2 and use the libxml2 that already was installed on my mac last changed july 2006

I have though about upgrading but do not know if it is really necessery and do not know how to do it.
I do not have mac port

My test sweet is like this

reader = XML::Reader.string("<foo><bar>1</bar><bar>2</bar><bar>3</ bar></foo>")

reader.read

puts '*****name '+reader.name.to_s
puts '*****value '+reader.value.to_s
puts '*****key '+reader['id'].to_s
puts '*****node_type '+reader.node_type.to_s

puts '*****read_string '+reader.read_string.to_s

puts '*****next name '+reader.name.to_s
reader.next_sibling
puts '*****next sibing name '+reader.name.to_s
r=reader.expand

puts '*****'+r.to_s
puts '*****expand next name '+reader.name.to_s
end

and this is the result

*****name foo
*****value
*****key
*****node_type 1
Unimplemented block at /SourceCache/libxml2/libxml2-17.7.6/libxml2/ xmlreader.c:1578
*****read_inner_xml
Unimplemented block at /SourceCache/libxml2/libxml2-17.7.6/libxml2/ xmlreader.c:1594
*****read_outer_xml
*****next name foo
*****next sibing name foo
*****<foo>
  <bar>1</bar>
  <bar>2</bar>
  <bar>3</bar>
</foo>
*****expand next name foo

Thanks for any help

Do you know any tutorial or how to or examples of using XML::reader and libxml-ruby

____________________________________________
Hans Marmolin
Prof Cognitive Ergonomics
St: Larsgatan 50, 58224 Linköping, Sweden
Phone: +46708371202






19 mar 2009 kl. 03.16 skrev Charlie Savage:

Hi Hans,

A large set of these kind of messages, but I assumed these concerned the ri documention

Yes.  Newer versions of rdoc fix them.

Wrote a small test application and got the error messages
Unimplemented block at /SourceCache/libxml2/libxml2-17.7.6/libxml2/ xmlreader.c:1578
trying to read inner xml and outer xml
Anyone that had have the same problem ?
How to fix it ?

Haven't see that one. Looks like a libxml2 issue to me, but hard to tell without seeing your test program. What version of libxml2 do you have installed? Maybe upgrade it using MacPorts?

I have not made any thing about the gem dependencies (and C bindings ?) as I assumed that this already was done on my mac

Not sure what you mean.

Charlie
_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to