<?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 xpath in SAS Content Categorizer in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/xpath-in-SAS-Content-Categorizer/m-p/116767#M9296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In categorizer rules, we can query by XML elements (_Title:"sample") and attributes within specified elements (_Occurrence\Id="sample":1), but not by xpath.&amp;nbsp; Since our XML schema reuses certain common element names and attributes in multiple locations, specifying the full xpath is essential for many of our queries.&amp;nbsp; Does anyone know whether xpath search is available in newer versions?&amp;nbsp; We are using a very old version of Content Categorizer (actually tk240).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Heather.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 20:33:08 GMT</pubDate>
    <dc:creator>HeatherL_Edwards</dc:creator>
    <dc:date>2013-08-20T20:33:08Z</dc:date>
    <item>
      <title>xpath in SAS Content Categorizer</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/xpath-in-SAS-Content-Categorizer/m-p/116767#M9296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In categorizer rules, we can query by XML elements (_Title:"sample") and attributes within specified elements (_Occurrence\Id="sample":1), but not by xpath.&amp;nbsp; Since our XML schema reuses certain common element names and attributes in multiple locations, specifying the full xpath is essential for many of our queries.&amp;nbsp; Does anyone know whether xpath search is available in newer versions?&amp;nbsp; We are using a very old version of Content Categorizer (actually tk240).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Heather.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 20:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/xpath-in-SAS-Content-Categorizer/m-p/116767#M9296</guid>
      <dc:creator>HeatherL_Edwards</dc:creator>
      <dc:date>2013-08-20T20:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: xpath in SAS Content Categorizer</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/xpath-in-SAS-Content-Categorizer/m-p/116768#M9297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heather,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, Enterprise Content Categorization now supports XPath functionality.&amp;nbsp; So if you have, say, an xml document that looks like:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;article&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is where we talk about Bill Nye.&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here is another part of the body where we talk about Bill Cosby.&amp;nbsp;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;title&amp;gt;Title&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/article&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there are multiple &lt;STRONG&gt;body&lt;/STRONG&gt; elements.&amp;nbsp; Let's say you want to match the name 'Bill' - but only in the second &lt;STRONG&gt;body&lt;/STRONG&gt; element.&amp;nbsp; Then we can use a rule of the form:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(OR, _/article/body[2]:"_c{Bill}")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which will &lt;EM&gt;not&lt;/EM&gt; match Bill Nye but &lt;EM&gt;will&lt;/EM&gt; match &lt;STRONG&gt;Bill&lt;/STRONG&gt; Cosby.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Sep 2013 19:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/xpath-in-SAS-Content-Categorizer/m-p/116768#M9297</guid>
      <dc:creator>JustinPlumley</dc:creator>
      <dc:date>2013-09-25T19:56:08Z</dc:date>
    </item>
  </channel>
</rss>

