Low commit activity in last 3 years
No release in over a year
Validate XML against it's embedded XSI elements that define the XSD's.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.1
>= 13.0

Runtime

>= 1.13.2
 Project Readme

validate_xml_xsi

This gem validates XML against it's XSD that is created from xsi:schemaLocation elements.

It does this by first parsing the XML and searching for elements that include xsi:schemaLocation attributes. It then creates an XSD schema document that includes the root namespace and further imports additional namespaces discovered in the XML.

It then validates the document against that constructed schema document and outputs any error messages.

Note: this gem utilizes the 'nokogiri' gem (which in turn relies on Gnome's libxml2) for the XML parsing and schema validation.

Installation

Add this line to your application's Gemfile:

gem 'validate_xml_xsi'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install validate_xml_xsi

Usage

validate_xml_xsi

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/d-hansen/validate_xml_xsi.

License

The gem is available as open source under the terms of the MIT License.