Created
July 26, 2010 21:44
-
-
Save akeem/491299 to your computer and use it in GitHub Desktop.
dtd information using Nokogiri
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#hopefully this will help anyone else that ends up looking for this. I ended up looking this up a couple of times and figured it was worth writing down. | |
xml_document = Nokogiri::XML(File.read(File.join(File.dirname(__FILE__),'somexmlfile.xml'))) | |
xml_document.internal_subset.system_id | |
xml_document.internal_subset.external_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment