# Can I validate a page that already specifies schema or DTD at top?

**URL:** <https://www.ruby-forum.com/t/can-i-validate-a-page-that-already-specifies-schema-or-dtd-at-top/133104>\
**Category:** Ruby\
**Created:** [March 27, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/can-i-validate-a-page-that-already-specifies-schema-or-dtd-at-top/133104 "2008-03-27T19:40:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [March 27, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/can-i-validate-a-page-that-already-specifies-schema-or-dtd-at-top/133104/1 "2008-03-27T19:40:27Z")

</div>

I’m going to be working with pages that all have their schema or DTD  
specified at the top such as:

> 

Do I need to extract each one, or can I somehow run a version of  
validate that picks this up instead of taking a dtd/schema object as an  
argument?

xc
