# XML library with validation

**URL:** <https://www.ruby-forum.com/t/xml-library-with-validation/105728>\
**Category:** Ruby\
**Created:** [June 1, 2007, 8:47pm UTC](https://www.ruby-forum.com/t/xml-library-with-validation/105728 "2007-06-01T20:47:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goodieboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Post date:** [June 1, 2007, 8:47pm UTC](https://www.ruby-forum.com/t/xml-library-with-validation/105728/1 "2007-06-01T20:47:54Z")

</div>

Hi,

I’m looking for a library that can validate xml against a dtd or  
schema. Anyone have any recommendations?

Thank you,  
Matt

---

<div class="post-metadata">

**Author:** ![goodieboy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ecc23a/32.png) [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Post date:** [June 2, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/xml-library-with-validation/105728/2 "2007-06-02T14:36:40Z")

</div>

On Jun 1, 11:46 pm, goodieboy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> I’m looking for a library that can validate xml against a dtd or  
> schema. Anyone have any recommendations?
> 
> Thank you,  
> Matt

I’m not sure of this, but I think existing Ruby XML libraries don’t  
support validation - yet. (This is based on my recollection of  
something I read in the book “Enterprise Integration with Ruby” -  
publishers: The Pragmatic Bookshelf). If anyone has any different  
info, I’d like to hear it myself, as I could use the feature. That  
book also shows how to use xmllint from Ruby, though, which may or may  
not meet your needs, but can be of help in general.

Vasudev Ram

> **[dancingbison.com](http://ww38.dancingbison.com/)**
>
> Learn Python Programming
