One problem is that libxml doesn't implement all of the specification, so you may run into issues :(Īlternatively, if you are on Windows, you can use msxml, but you will need some sort of wrapper to call it, such as the GUI one described in this DDJ article. Example usage: xmllint -noout -schema XSD_FILE XML_FILE You could also use xmllint, which is part of libxml. Also, a commenter below points to this more complete wrapper utility. The StdInParse utility can be used to call it from the command line. There is also a C++ version of Xerces available if you'd rather use that. I've created a small Java project on github to validate from the command line using the default JRE parser, which is normally Xerces. After some research, I think the best answer is Xerces, as it implements all of XSD, is cross-platform and widely used.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |