<?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 Making xml valid in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267128#M16858</link>
    <description>&lt;P&gt;Hi guys, i am having an issue with the xml script in the last line but i cant seem to figure out how to make it valid as i have.&lt;/P&gt;

&lt;P&gt;Have tried double quotes but does not work.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;data-options='{&lt;BR /&gt;
"app": "simple_xml_examples",&lt;BR /&gt;
 "preview": true,&lt;BR /&gt;
 "search": ""sourcetype = a NOT (is OR you OR the OR chinese)' title="*"  | eval words=split(title," ") | stats count words""}&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2016 15:26:45 GMT</pubDate>
    <dc:creator>khailz</dc:creator>
    <dc:date>2016-02-04T15:26:45Z</dc:date>
    <item>
      <title>Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267128#M16858</link>
      <description>&lt;P&gt;Hi guys, i am having an issue with the xml script in the last line but i cant seem to figure out how to make it valid as i have.&lt;/P&gt;

&lt;P&gt;Have tried double quotes but does not work.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;data-options='{&lt;BR /&gt;
"app": "simple_xml_examples",&lt;BR /&gt;
 "preview": true,&lt;BR /&gt;
 "search": ""sourcetype = a NOT (is OR you OR the OR chinese)' title="*"  | eval words=split(title," ") | stats count words""}&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2016 15:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267128#M16858</guid>
      <dc:creator>khailz</dc:creator>
      <dc:date>2016-02-04T15:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267129#M16859</link>
      <description>&lt;P&gt;To post special characters into Splunk answers insert a new line and then indent 4 spaces&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;like this
&amp;lt;xml for ever&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Feb 2016 09:56:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267129#M16859</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-02-05T09:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267130#M16860</link>
      <description>&lt;P&gt;thanks for the reply. but i do not get it. I would have to add it before for a &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;/xml&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;close ? &lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 07:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267130#M16860</guid>
      <dc:creator>khailz</dc:creator>
      <dc:date>2016-02-06T07:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267131#M16861</link>
      <description>&lt;P&gt;Sorry I thought you were wondering how to add xml to your post. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  Your question is not very clear. You say you are having trouble with an xml script. Which script? Is this a dashboard view?  How do you know its invalid? What you have posted is not xml  -it looks more like JSON. Can you provide some more context over what you are trying to achieve  and what error you are getting&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2016 13:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267131#M16861</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-02-08T13:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267132#M16862</link>
      <description>&lt;P&gt;Thanks for your response.&lt;/P&gt;

&lt;P&gt;Actually what i am trying to do is modify one of the word cloud scripts from the splunk examples (tag cloud with tokens) . I been trying to modify or change the query line to pick up my customized query. But it always prompts back for invalid xml.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 08:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267132#M16862</guid>
      <dc:creator>khailz</dc:creator>
      <dc:date>2016-02-10T08:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267133#M16863</link>
      <description>&lt;P&gt;Can you post the full xml ?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 09:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267133#M16863</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-02-10T09:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267134#M16864</link>
      <description>&lt;P&gt;Hi below is the code snippet.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;XML

 &amp;lt;search id="tagcloud_search1"&amp;gt;
        &amp;lt;query&amp;gt;index=_internal source=sourcetype = a NOT (is OR you OR the OR chinese)' title="*" | eval words=split(title," ") | stats count words""}&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
            &amp;lt;html&amp;gt;
                &amp;lt;h2&amp;gt;Pipeline&amp;lt;/h2&amp;gt;
                &amp;lt;div id="tagcloud1"
                     class="splunk-view"
                     data-require="app/social/components/tagcloud/tagcloud"
                     data-options='{
                        "minFontSize": 14,
                        "maxFontSize": 55,
                        "managerid": "tagcloud_search1",
                        "valueField": "count",
                        "labelField": "words"
                     }'&amp;gt;
                &amp;lt;/div&amp;gt;
            &amp;lt;/html&amp;gt;
        &amp;lt;/panel&amp;gt;

*autodiscovery.js*

    require.config({
        paths: {
            "app": "../app"
        }
    });
    require(['splunkjs/mvc/simplexml/ready!'], function(){
        require(['splunkjs/ready!'], function(){
            // The splunkjs/ready loader script will automatically instantiate all elements
            // declared in the dashboard's HTML.
        });
    });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Feb 2016 14:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267134#M16864</guid>
      <dc:creator>khailz</dc:creator>
      <dc:date>2016-02-10T14:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267135#M16865</link>
      <description>&lt;P&gt;The xml should look like so (row should be inside search)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search id="tagcloud_search1"&amp;gt;
     &amp;lt;query&amp;gt;index=_internal source=sourcetype = a NOT (is OR you OR the OR chinese)' title="*" | eval words=split(title," ") | stats count words""}&amp;lt;/query&amp;gt;
 &amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
         &amp;lt;html&amp;gt;
             &amp;lt;h2&amp;gt;Pipeline&amp;lt;/h2&amp;gt;
             &amp;lt;div id="tagcloud1"
                  class="splunk-view"
                  data-require="app/social/components/tagcloud/tagcloud"
                  data-options='{
                     "minFontSize": 14,
                     "maxFontSize": 55,
                     "managerid": "tagcloud_search1",
                     "valueField": "count",
                     "labelField": "words"
                  }'&amp;gt;
             &amp;lt;/div&amp;gt;
         &amp;lt;/html&amp;gt;
     &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
  &amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Feb 2016 17:28:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267135#M16865</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-02-10T17:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267136#M16866</link>
      <description>&lt;P&gt;Sorry took so long to reply. I did encounter another error after trying "Premature end of data in tag form line 1"&lt;/P&gt;

&lt;P&gt;im not entire sure what it means.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267136#M16866</guid>
      <dc:creator>khailz</dc:creator>
      <dc:date>2016-02-16T13:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267137#M16867</link>
      <description>&lt;P&gt;If you pasted in the xml I posted exactly you will not have encountered an error. Premature end probably means you have an un nested element. Do you have something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;
&amp;lt;/search&amp;gt;
&amp;lt;row&amp;gt;
&amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That will throw the premature error. Instead your xml should look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;
    &amp;lt;row&amp;gt;
    &amp;lt;/row&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Feb 2016 15:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267137#M16867</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-02-16T15:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267138#M16868</link>
      <description>&lt;P&gt;yes yes. i did modify the xml. ive copied exactly. it prompted this error now "should not combine visualizations and panels."&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:58:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267138#M16868</guid>
      <dc:creator>khailz</dc:creator>
      <dc:date>2016-02-17T14:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Making xml valid</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267139#M16869</link>
      <description>&lt;P&gt;Thx. after toying with it again. I noticed where i did wrong. Having the code within the same row.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 18:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Making-xml-valid/m-p/267139#M16869</guid>
      <dc:creator>khailz</dc:creator>
      <dc:date>2016-02-17T18:48:59Z</dc:date>
    </item>
  </channel>
</rss>

