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.
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 Jul 11, 4:33 pm, "dominik.aum...@gmail.com" <dominik.aum...@gmail.com> 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.
There is also libxml-ruby:
http://libxml.rubyforge.org/doc/
Also, I have used JRuby to use Java XML processing libraries.
On 7/11/07, adam.peters1@gmail.com wrote:
On Jul 11, 4:33 pm, "dominik.aum...@gmail.com" 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.
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,
- dominik aumayr