{"id":148,"date":"2012-01-12T15:37:13","date_gmt":"2012-01-12T13:37:13","guid":{"rendered":"http:\/\/xml-tools.com\/xmltribune\/?p=148"},"modified":"2015-09-04T17:54:38","modified_gmt":"2015-09-04T17:54:38","slug":"new-features-for-the-free-command-line-xml-parser","status":"publish","type":"post","link":"https:\/\/www.xml-buddy.com\/xmltribune\/new-features-for-the-free-command-line-xml-parser\/","title":{"rendered":"New features for the free Command Line XML parser"},"content":{"rendered":"<h3>Get a detailed error report on XML validation<\/h3>\n<p>Until today the free XML Validator Buddy shell tool, which uses the Xerces parser internally, only reported if the XML instance is valid or not. This has changed with the latest release 3.2.2 of the XML command line tool. Now it is also possible to get a detailed error report with the new -verbose option on running the XML validator\u00a0on one or more documents.<\/p>\n<p>Just add the -verbose option to the command line to turn it on:<\/p>\n<pre>valbuddy.exe -v -verbose ctI031.xml<\/pre>\n<pre>XML <a href=\"http:\/\/www.xml-buddy.com\/ValidatorBuddy.htm\" >ValidatorBuddy<\/a> command-line Tool\r\nBy xml-buddy.com, Copyright 2012\r\n\r\nC:UsersDocumentsxmlxmlschema2006-11-06msDatacomplexTypectI031.xml: invalid\r\nLine: 3, Col: 29 : complex type ',fooType' does not permit substitution\r\nLine: 6, Col: 12 : no declaration found for element 'fooEle3'\r\nLine: 7, Col: 12 : element 'fooEle3' is not allowed for content model '(fooEle1,fooEle2)'<\/pre>\n<h3>New external schema option<\/h3>\n<p>Not all XML instances have a schema already assigned. To successfully run the XML validator\u00a0for those documents one needs to specify an external schema. To accomplish this the latest release of the XML Validator Buddy command line tool also provides a new -s\u00a0option. If the -s option has been added to the command line, the first specified path is taken as the schema file for\u00a0all following XML instances.<\/p>\n<pre>valbuddy.exe -v -verbose -s ctI030.xsd ctI031.xml<\/pre>\n<pre>XML <a href=\"http:\/\/www.xml-buddy.com\/ValidatorBuddy.htm\" >ValidatorBuddy<\/a> command-line Tool\r\nBy xml-buddy.com, Copyright 2012\r\n\r\nC:\\Users\\Documents\\xml\\xmlschema2006-11-06\\msData\\complexTypectI031.xml: invalid\r\nLine: 3, Col: 29 : complex type ',fooType' does not permit substitution<\/pre>\n<p>All sample files are taken from the official W3C Schema test suite and can be downloaded here:\u00a0<a href=\"http:\/\/www.w3.org\/XML\/2004\/xml-schema-test-suite\/#releases\">http:\/\/www.w3.org\/XML\/2004\/xml-schema-test-suite\/#releases<\/a><\/p>\n<p>&nbsp;<\/p>\n<p style=\"opacity:0.5;padding:0;margin:0;display:inline;\"><sub><a href=\"#\" onclick=\"window.open('https:\/\/www.janhvizdak.com\/rdr.me.1'); return false;\" target=\"_blank\" style=\"cursor:help;\"><b>&#187;crosslinked&#171;<\/b><\/a><\/sub><\/p>","protected":false},"excerpt":{"rendered":"<p>Get a detailed error report on XML validation Until today the free XML Validator Buddy shell tool, which uses the Xerces parser internally, only reported if the XML instance is valid or not. This has changed with the latest release 3.2.2 of the XML command line tool. Now it is also possible to get a detailed error report with the&#8230; <a href=\"https:\/\/www.xml-buddy.com\/xmltribune\/new-features-for-the-free-command-line-xml-parser\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[8,73,6],"tags":[15,18,40,74,55],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts\/148"}],"collection":[{"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/comments?post=148"}],"version-history":[{"count":2,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":456,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts\/148\/revisions\/456"}],"wp:attachment":[{"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/media?parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/categories?post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/tags?post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}