<?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 Search time - xpath command namespace handling in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-time-xpath-command-namespace-handling/m-p/46570#M179350</link>
    <description>&lt;P&gt;Splunk: 5.0.4&lt;/P&gt;

&lt;P&gt;Anyone know how to give the namespace to the xpath command? When looking at the &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Xpath"&gt;xpath command&lt;/A&gt; and other discussions they always speak to simple examples without namespaces. &lt;/P&gt;

&lt;P&gt;For example when providing a modified xml from the Splunk examples with a namespace, it justifiably doesn't return a value anymore.&lt;/P&gt;

&lt;P&gt;command:   &lt;CODE&gt;| xpath outfield=identity_id "//DataSet/identity_id"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;document:   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;DataSet xmlns="http://www.w3schools.com/furniture"&amp;gt;
        &amp;lt;identity_id&amp;gt;3020&amp;lt;/identity_id&amp;gt;
        &amp;lt;instrument_id&amp;gt;912383KM1&amp;lt;/instrument_id&amp;gt;
        &amp;lt;transaction_code&amp;gt;SEL&amp;lt;/transaction_code&amp;gt;
        &amp;lt;sname&amp;gt;BARC&amp;lt;/sname&amp;gt;
        &amp;lt;currency_code&amp;gt;USA&amp;lt;/currency_code&amp;gt;
&amp;lt;/DataSet&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2013 18:25:43 GMT</pubDate>
    <dc:creator>gregbujak</dc:creator>
    <dc:date>2013-08-26T18:25:43Z</dc:date>
    <item>
      <title>Search time - xpath command namespace handling</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-xpath-command-namespace-handling/m-p/46570#M179350</link>
      <description>&lt;P&gt;Splunk: 5.0.4&lt;/P&gt;

&lt;P&gt;Anyone know how to give the namespace to the xpath command? When looking at the &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Xpath"&gt;xpath command&lt;/A&gt; and other discussions they always speak to simple examples without namespaces. &lt;/P&gt;

&lt;P&gt;For example when providing a modified xml from the Splunk examples with a namespace, it justifiably doesn't return a value anymore.&lt;/P&gt;

&lt;P&gt;command:   &lt;CODE&gt;| xpath outfield=identity_id "//DataSet/identity_id"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;document:   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;DataSet xmlns="http://www.w3schools.com/furniture"&amp;gt;
        &amp;lt;identity_id&amp;gt;3020&amp;lt;/identity_id&amp;gt;
        &amp;lt;instrument_id&amp;gt;912383KM1&amp;lt;/instrument_id&amp;gt;
        &amp;lt;transaction_code&amp;gt;SEL&amp;lt;/transaction_code&amp;gt;
        &amp;lt;sname&amp;gt;BARC&amp;lt;/sname&amp;gt;
        &amp;lt;currency_code&amp;gt;USA&amp;lt;/currency_code&amp;gt;
&amp;lt;/DataSet&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 18:25:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-xpath-command-namespace-handling/m-p/46570#M179350</guid>
      <dc:creator>gregbujak</dc:creator>
      <dc:date>2013-08-26T18:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Search time - xpath command namespace handling</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-time-xpath-command-namespace-handling/m-p/46571#M179351</link>
      <description>&lt;P&gt;According to Splunk, namespaces aren't supported as of 5.0.4. Disappointing, as only the most trivial xml based use cases can be handled at this time. &lt;/P&gt;

&lt;P&gt;Hopefully a future release will include namespace support.&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2013 20:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-time-xpath-command-namespace-handling/m-p/46571#M179351</guid>
      <dc:creator>gregbujak</dc:creator>
      <dc:date>2013-08-31T20:07:09Z</dc:date>
    </item>
  </channel>
</rss>

