<?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 Pretty Print XML - How to create an HTML section in Simple XML, and use the $variables$ to access the data? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pretty-Print-XML-How-to-create-an-HTML-section-in-Simple-XML-and/m-p/234753#M14527</link>
    <description>&lt;P&gt;I have a custom Splunk command that goes out and fetches XML content and I want to prettyprint the content results in our Splunk dashboard. &lt;/P&gt;

&lt;P&gt;Back in the advanced XML days, you could use an HTML pre tag to display the results, but I haven't found a working way to do this in Simple XML.&lt;/P&gt;

&lt;P&gt;Is there a way to create an HTML section in Simple XML, and use the $variables$ to access the data?&lt;/P&gt;

&lt;P&gt;Any insight is greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2016 17:46:11 GMT</pubDate>
    <dc:creator>_gkollias</dc:creator>
    <dc:date>2016-06-29T17:46:11Z</dc:date>
    <item>
      <title>Pretty Print XML - How to create an HTML section in Simple XML, and use the $variables$ to access the data?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pretty-Print-XML-How-to-create-an-HTML-section-in-Simple-XML-and/m-p/234753#M14527</link>
      <description>&lt;P&gt;I have a custom Splunk command that goes out and fetches XML content and I want to prettyprint the content results in our Splunk dashboard. &lt;/P&gt;

&lt;P&gt;Back in the advanced XML days, you could use an HTML pre tag to display the results, but I haven't found a working way to do this in Simple XML.&lt;/P&gt;

&lt;P&gt;Is there a way to create an HTML section in Simple XML, and use the $variables$ to access the data?&lt;/P&gt;

&lt;P&gt;Any insight is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 17:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pretty-Print-XML-How-to-create-an-HTML-section-in-Simple-XML-and/m-p/234753#M14527</guid>
      <dc:creator>_gkollias</dc:creator>
      <dc:date>2016-06-29T17:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty Print XML - How to create an HTML section in Simple XML, and use the $variables$ to access the data?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pretty-Print-XML-How-to-create-an-HTML-section-in-Simple-XML-and/m-p/234754#M14528</link>
      <description>&lt;P&gt;Yea - although I'm not 100% that I'm understanding the question.&lt;/P&gt;

&lt;P&gt;I only have a few moments so I can't fetch the associated links, but essentially you'll want to run a search and use the "set" (might be easier to look for "unset" in our docs). That's how you can assign items to variables to use elsewhere in your page.&lt;/P&gt;

&lt;P&gt;There's even some new attributes that expose some job specific details that you can set and use in your other panels.&lt;/P&gt;

&lt;P&gt;Once I get more time, I can elaborate with links but let me know thoughts on that in case I'm completely off point.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 14:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pretty-Print-XML-How-to-create-an-HTML-section-in-Simple-XML-and/m-p/234754#M14528</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-06-30T14:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pretty Print XML - How to create an HTML section in Simple XML, and use the $variables$ to access the data?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Pretty-Print-XML-How-to-create-an-HTML-section-in-Simple-XML-and/m-p/234755#M14529</link>
      <description>&lt;P&gt;I dont have the answer, but these two tools may help.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;A href="https://jsonformatter.org/html-pretty-print"&gt;https://jsonformatter.org/html-pretty-print&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://jsonformatter.org/xml-pretty-print"&gt;https://jsonformatter.org/xml-pretty-print&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Jim&lt;BR /&gt;
&lt;A href="https://hexcolorcodes.org"&gt;https://hexcolorcodes.org&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 13:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Pretty-Print-XML-How-to-create-an-HTML-section-in-Simple-XML-and/m-p/234755#M14529</guid>
      <dc:creator>jimmip</dc:creator>
      <dc:date>2018-03-09T13:10:22Z</dc:date>
    </item>
  </channel>
</rss>

