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
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
>
>
> 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
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
> 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
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
>
>> 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
>
> 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
>
> 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
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
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
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.
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&
(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
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
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
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
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
18 matches
Mail list logo