<?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>question query related to xml input to hive in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/query-related-to-xml-input-to-hive/m-p/122720#M51225</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i am trying to import xml data in hive.&lt;/P&gt;&lt;P&gt;below is an example: &lt;/P&gt;&lt;P&gt;&amp;lt;ns2:reqValAdd xmlns:ns2="http://www.ss.ss"&amp;gt;&amp;lt;/ns2:reqValAdd&amp;gt;&lt;/P&gt;&lt;P&gt;CREATE TABLE xml_test4(ns2 STRING)
    ROW FORMAT SERDE 'com.ibm.spss.hive.serde2.xml.XmlSerDe'
    WITH SERDEPROPERTIES (
    "column.xpath.ns2"="/ns2:ReqValAdd/@ns2"
    )
    STORED AS
    INPUTFORMAT 'com.ibm.spss.hive.serde2.xml.XmlInputFormat'
    OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat'
    TBLPROPERTIES (
    "xmlinput.start"="&amp;lt;ns2:reqValAdd xmlns:ns2",
    "xmlinput.end"="&amp;lt;/ns2:reqValAdd&amp;gt;"
    );&lt;/P&gt;&lt;P&gt;the output is coming as NULL while i am expecting "http://www.ss.ss".&lt;/P&gt;&lt;P&gt;can you please suggest what is wrong and how to rectify?&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rishit Shah&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2017 18:54:26 GMT</pubDate>
    <dc:creator>rishit606</dc:creator>
    <dc:date>2017-01-10T18:54:26Z</dc:date>
    <item>
      <title>query related to xml input to hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/query-related-to-xml-input-to-hive/m-p/122720#M51225</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i am trying to import xml data in hive.&lt;/P&gt;&lt;P&gt;below is an example: &lt;/P&gt;&lt;P&gt;&amp;lt;ns2:reqValAdd xmlns:ns2="http://www.ss.ss"&amp;gt;&amp;lt;/ns2:reqValAdd&amp;gt;&lt;/P&gt;&lt;P&gt;CREATE TABLE xml_test4(ns2 STRING)
    ROW FORMAT SERDE 'com.ibm.spss.hive.serde2.xml.XmlSerDe'
    WITH SERDEPROPERTIES (
    "column.xpath.ns2"="/ns2:ReqValAdd/@ns2"
    )
    STORED AS
    INPUTFORMAT 'com.ibm.spss.hive.serde2.xml.XmlInputFormat'
    OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat'
    TBLPROPERTIES (
    "xmlinput.start"="&amp;lt;ns2:reqValAdd xmlns:ns2",
    "xmlinput.end"="&amp;lt;/ns2:reqValAdd&amp;gt;"
    );&lt;/P&gt;&lt;P&gt;the output is coming as NULL while i am expecting "http://www.ss.ss".&lt;/P&gt;&lt;P&gt;can you please suggest what is wrong and how to rectify?&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Rishit Shah&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 18:54:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/query-related-to-xml-input-to-hive/m-p/122720#M51225</guid>
      <dc:creator>rishit606</dc:creator>
      <dc:date>2017-01-10T18:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: query related to xml input to hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/query-related-to-xml-input-to-hive/m-p/122721#M51226</link>
      <description>&lt;P&gt;thanks, but this is solved by using xpath.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:37:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/query-related-to-xml-input-to-hive/m-p/122721#M51226</guid>
      <dc:creator>rishit606</dc:creator>
      <dc:date>2017-01-19T14:37:42Z</dc:date>
    </item>
  </channel>
</rss>

