{"id":103,"date":"2011-03-02T18:55:15","date_gmt":"2011-03-02T16:55:15","guid":{"rendered":"http:\/\/xml-tools.com\/xmltribune\/?p=103"},"modified":"2015-10-29T13:58:49","modified_gmt":"2015-10-29T12:58:49","slug":"validation-and-targetnamespace","status":"publish","type":"post","link":"https:\/\/www.xml-buddy.com\/xmltribune\/validation-and-targetnamespace\/","title":{"rendered":"Custom XML validation and targetNamespace"},"content":{"rendered":"<p>This post explains how to run the XML validator to use\u00a0a specific schema in XML <a href=\"http:\/\/www.xml-buddy.com\/ValidatorBuddy.htm\" >ValidatorBuddy<\/a> to check XML.<\/p>\n<p>If you use the \u201cValidate against a specific Schema\u2026\u201d functionality of XML <a href=\"http:\/\/www.xml-buddy.com\/ValidatorBuddy.htm\" >ValidatorBuddy<\/a> the editor looks\u00a0for a schemaLocation or noNamespaceSchemaLocation attribute in the XML instance file. The validator\u00a0also\u00a0checks the selected schema if any targetNamespace is defined. If a schemaLocation or noNamespaceSchemaLocation attribute is present in the XML instance file, XML <a href=\"http:\/\/www.xml-buddy.com\/ValidatorBuddy.htm\" >ValidatorBuddy<\/a> overwrites the values (of course without modifying the file) of those attributes to assign the selected schema for the XML validator. If no schemaLocation attribute is present in the XML the target namespace of the schema is taken.<\/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>This post explains how to run the XML validator to use\u00a0a specific schema in XML ValidatorBuddy to check XML. If you use the \u201cValidate against a specific Schema\u2026\u201d functionality of XML ValidatorBuddy the editor looks\u00a0for a schemaLocation or noNamespaceSchemaLocation attribute in the XML instance file. The validator\u00a0also\u00a0checks the selected schema if any targetNamespace is defined. If a schemaLocation or noNamespaceSchemaLocation&#8230; <a href=\"https:\/\/www.xml-buddy.com\/xmltribune\/validation-and-targetnamespace\/\">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":[73,6],"tags":[40,44,74,71],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts\/103"}],"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=103"}],"version-history":[{"count":2,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":492,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/posts\/103\/revisions\/492"}],"wp:attachment":[{"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/categories?post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xml-buddy.com\/xmltribune\/wp-json\/wp\/v2\/tags?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}