Hi!
Is there a way to deal with XML-files in Ruby? And further: is there a
(existing) solution/way how to parse/validate XML-files against a XML-
Schema (XSD)?
Thanks for any help!
Dominik A.
Hi!
Is there a way to deal with XML-files in Ruby? And further: is there a
(existing) solution/way how to parse/validate XML-files against a XML-
Schema (XSD)?
Thanks for any help!
Dominik A.
On Jul 11, 4:33 pm, “[email protected]”
[email protected] wrote:
Hi!
Is there a way to deal with XML-files in Ruby? And further: is there a
(existing) solution/way how to parse/validate XML-files against a XML-
Schema (XSD)?Thanks for any help!
Dominik A.
REXML is the Ruby Library for parsing xml docs. Not sure if it
validates though.
http://www.germane-software.com/software/rexml/ has a tutorial and the
documentation. The documentation is also available with the standard
RDoc.
On 7/11/07, [email protected] wrote:
On Jul 11, 4:33 pm, “[email protected]” wrote:
Is there a way to deal with XML-files in Ruby? And further: is there a
(existing) solution/way how to parse/validate XML-files against a XML-
Schema (XSD)?REXML is the Ruby Library for parsing xml docs. Not sure if it
validates though.
There is also libxml-ruby:
http://libxml.rubyforge.org/doc/
Also, I have used JRuby to use Java XML processing libraries.
I finally found (after I googled “libxml-ruby xsd”) a “Recipe” how to
validate XML-files against DTD/XSD!
Here is the link:
http://codeidol.com/other/rubyckbk/XML-and-HTML/Validating-an-XML-Document/
I think it’s using “libxml-ruby”, but (as I understood it) it is not a
“pure-Ruby”-solution because it’s using a C library. But that’s no
problem.
Thanks for your hints!
Best Regards,
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs