Re: [libxml-devel] Node#inner_xml() with all namespaces declared?

2009-08-19 Thread Tim Olsen
eturn (node.map { |n| n.copy(true).to_s options }.join '') end Tim Tim Olsen wrote: > Hello, > > I am trying to call Node#inner_xml() and have all namespaces referenced > in the inner xml be spit out as well, so that the returned string can be > parsed again. > > For exampl

[libxml-devel] Node#inner_xml() with all namespaces declared?

2009-08-19 Thread Tim Olsen
ces#definitions() returns but I couldn't find a method to modify the definitions. Any idea how to achieve this? Thanks, Tim ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] doc.to_hash, node.to_hash, xpath.to_hash

2009-01-21 Thread Tim Uckun
> > > Cool. So I assume you want this to be a drop in replacement for whatever > Rails is using now (REXML I assume?). Does Rails have a test suite for > outputting xml that you can test against? > Rails uses a wrapper around REXML. Just the other day I stumbled on a project which replaces som

[libxml-devel] Why is digest the only way to join this list?

2009-01-17 Thread tim
Google groups will not allow me to subscribe to individual emails. Is there a reason for that? ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] doc.to_hash, node.to_hash, xpath.to_hash

2009-01-17 Thread tim
> Would probably be pretty easy to see how Rails does it, and then just > modify it as needed to use libxml.  Patches always welcome :) > > Charlie > Hey Charlie. Here is what I came up with. It mimics the rails method in that it does not deal with attributes. It also doesn't do anything with na

[libxml-devel] doc.to_hash, node.to_hash, xpath.to_hash

2009-01-12 Thread Tim Uckun
It would be very nice to have these methods in the respective objects. Rails has a Hash.from_xml method but it uses REXML and is slow. ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] Trying to parse a soap envelope.

2008-12-08 Thread Tim Uckun
> >> xpath.count returns weird numbers. I still don't understand what it's >> counting. > > Could you expand on this. Do you mean xpath.length (there isn't a count > method)? One thing that the docs don't make clear is that the fine method > can return a set of nodes, or it can returns immediate

Re: [libxml-devel] Trying to parse a soap envelope.

2008-12-03 Thread Tim Uckun
> > If not, then it looks like you've found a bug. So the usual questions. > What version of libxml-ruby, libxml, what OS, etc? > I finally got it going. Here were the issues I had to deal with, I hope this helps somebody. find_first returns a node object and find returns a xpath object. They

Re: [libxml-devel] Trying to parse a soap envelope.

2008-12-01 Thread tim
> > Since GetLatestSchedulesExResponse' namespace doesn't have a numer > (since its the default namespace), you have tell libxml what to call it. >   You can also register the namespace with libxml, but the above > approach is probably easiest. > Hi Charlie. I tried it but it doesn't work. Here is

[libxml-devel] Trying to parse a soap envelope.

2008-12-01 Thread tim
xmlXPathEval: evaluation failed /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.5/lib/libxml/document.rb: 55:in `find': Error: Undefined namespace prefix at :0. (LibXML::XML::Error) from /usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.5/lib/libxml/ document.rb:55:in `find' from /us

[libxml-devel] Compilling libxsl on OSX

2008-01-31 Thread Tim Perrett
open input file: /var/folders/f1/f1tof6fRGDGh3f4-lir1i+++ +TI/-Tmp-//ccNVRFwL.out (No such file or directory) make: *** [libxslt.bundle] Error 1 Any ideas how I can fix this? Thanks Tim ___ libxml-devel mailing list libxml-devel@rubyforge.org

[libxml-devel] MAC POWERBOOK G4 (PPC) 1.5 MHz : error msg 'need zlib'

2008-01-01 Thread Tim Weatherstone
I have done as was suggested: I've read the posts & there are similar messages but unfortunately not ones I can understand or use. So with apologies for my stupidity, please could you suggest ways to get libxml-ruby installed so I can install rubyosa ? The terminal printout is given below.

Re: [libxml-devel] problem with UTF-16 encoding

2007-11-27 Thread Tim Perrett
Interesting stuff. Just changed back to utf-16, and using doc.dump I see the byte order mark and the rest of the xml - result :) Cheers guys Tim On 27 Nov 2007, at 04:39, Dan Janowski wrote: > I have modified Document#to_s to permit the inclusion of a second > encoding argument (didn&

[libxml-devel] problem with UTF-16 encoding

2007-11-26 Thread Tim Perrett
(2007-06-07 patchlevel 36) [universal-darwin9.0] Cheers Tim ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] MEM2 to trunk

2007-11-14 Thread Tim Perrett
Hey Chaps Excuse my ignorance, but ive been reading the posts on the list and the MEM2 branch seems to be a great improvement from where we were. Now its in the trunk, what's the ETA for it being rolled out as an official gem? Cheers Tim On 14 Nov 2007, at 08:56, Dan Janowski

Re: [libxml-devel] Malloc problem when using Schema.new()

2007-07-30 Thread Tim Perrett
trying to load the xsd with a DOM method, and hence it uses so much memory. Is it even possible to use a streaming method and still be able to validate XSI? Cheers Tim On 30 Jul 2007, at 09:19, TRANS wrote: > Could try compiling some examples: > > http://xmlsoft.org/examples/i

Re: [libxml-devel] Malloc problem when using Schema.new()

2007-07-30 Thread Tim Perrett
er if that helps? Many thanks for the reply Tim On 27 Jul 2007, at 00:53, TRANS wrote: > I'd like to know how much is libxml2 and how much is the ruby binding. > have you/can you try if in C? > > T. ___ libxml-devel mailing list libx

[libxml-devel] Malloc problem when using Schema.new()

2007-07-26 Thread Tim Perrett
schema in question is http://www.cip4.org/Schema/ JDFSchema_1_3_20070212.zip Any help would be most appreciated. Cheers Tim ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel