<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Debugging Advanced XML in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Debugging-Advanced-XML/m-p/86281#M4678</link>
    <description>&lt;P&gt;The best advice I can give is to spend some time keeping your indentation clean.&lt;/P&gt;

&lt;P&gt;I believe Notepad++ has a preview mode where you can preview the file in a local browser, and the browser will tell you what tags didnt match, and it's much faster than using Splunk itself to check for well-formedness.&lt;/P&gt;

&lt;P&gt;And if you're on a linux or unix system, tidy can be a very useful tool: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;tidy -i -m -xml my_view.xml&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;tidy -i -xml my_view.xml -f cleaned_up_version.xml&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If your XML is already valid, those will go through and clean up and normalize all your indentation for you. And I think if you do have typos or missing closing tags, tidy can tell you what and where they are.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2010 09:52:57 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2010-11-09T09:52:57Z</dc:date>
    <item>
      <title>Debugging Advanced XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Debugging-Advanced-XML/m-p/86280#M4677</link>
      <description>&lt;P&gt;I'm building my first Advanced XML dashboard and need some guidance.&lt;/P&gt;

&lt;P&gt;I'm using Notepad++ to build my dashboard and then copying it into a new view.  But when I try to save the view I get this error at the top of the page:
Encountered the following error while trying to update: In handler 'views': Not valid XML: 

&lt;/P&gt;&lt;P&gt;Not really helpful for debugging since it doesn't tell me where the syntax error is in my xml.  &lt;/P&gt;

&lt;P&gt;I looked in /opt/splunk/var/log/splunk but don't see anything that's logging my error.  &lt;/P&gt;

&lt;P&gt;Just wondering how to troubleshoot my error and best practices for building advanced XML dashboards.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2010 09:31:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Debugging-Advanced-XML/m-p/86280#M4677</guid>
      <dc:creator>nowplaying</dc:creator>
      <dc:date>2010-11-09T09:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Advanced XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Debugging-Advanced-XML/m-p/86281#M4678</link>
      <description>&lt;P&gt;The best advice I can give is to spend some time keeping your indentation clean.&lt;/P&gt;

&lt;P&gt;I believe Notepad++ has a preview mode where you can preview the file in a local browser, and the browser will tell you what tags didnt match, and it's much faster than using Splunk itself to check for well-formedness.&lt;/P&gt;

&lt;P&gt;And if you're on a linux or unix system, tidy can be a very useful tool: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;tidy -i -m -xml my_view.xml&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;tidy -i -xml my_view.xml -f cleaned_up_version.xml&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If your XML is already valid, those will go through and clean up and normalize all your indentation for you. And I think if you do have typos or missing closing tags, tidy can tell you what and where they are.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2010 09:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Debugging-Advanced-XML/m-p/86281#M4678</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-11-09T09:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Advanced XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Debugging-Advanced-XML/m-p/86282#M4679</link>
      <description>&lt;P&gt;Nick's thoughts are excellent.  I've also used the &lt;A href="http://www.w3schools.com/xml/xml_validator.asp" rel="nofollow"&gt;XML Validator&lt;/A&gt; at w3schools when on a vanilla Windows® box.  &lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2010 11:40:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Debugging-Advanced-XML/m-p/86282#M4679</guid>
      <dc:creator>bwooden</dc:creator>
      <dc:date>2010-11-09T11:40:00Z</dc:date>
    </item>
  </channel>
</rss>

