<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  
  
  <channel>
    <title>chrisjrob: xml</title>
    <link>https://chrisjrob.com</link>
    <atom:link href="https://chrisjrob.com/tag/xml/feed/index.xml" rel="self" type="application/rss+xml" />
    <description>GNU Linux, Perl and FLOSS</description>
    <language>en-gb</language>
    <pubDate>Fri, 13 Feb 2026 17:22:31 +0000</pubDate>
    <lastBuildDate>Fri, 13 Feb 2026 17:22:31 +0000</lastBuildDate>
    
    <item>
      <title>Command line XML validator</title>
      <link>https://chrisjrob.com/2008/12/18/command-line-xml-validator/</link>
      <pubDate>Thu, 18 Dec 2008 00:00:00 +0000</pubDate>
      <author>chrisjrob@gmail.com (Chris Roberts)</author>
      <guid>https://chrisjrob.com/2008/12/18/command-line-xml-validator</guid>
      <description>
       <![CDATA[
         
         <p>I have always used the <a href="http://www.w3schools.com/XML/xml_validator.asp">W3Schools On-line XML validator</a>, but have always found it unreliable and I’ve never got it to validate against an XML schema file.</p>

<p>Thanks to Google I came across the following command (part of <code class="language-plaintext highlighter-rouge">libxml2-utils</code>):</p>

<!--more-->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$ xmllint --noout --schema schema.xsd file.xml
</code></pre></div></div>

<p>I find it amazing that all this time I had the perfect command pre-installed on my Linux desktop and I never knew.</p>

       ]]>
      </description>
    </item>
    
  </channel> 
</rss>
