<?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 Re: XML to MongoDB - Best Approach? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/XML-to-MongoDB-Best-Approach/m-p/2337379#M105727</link>
    <description>How did you manage to do this? 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&amp;nbsp;i want to load data into MongoDB ( more then 1 nested loop ) but I don't know how .. 
&lt;BR /&gt;I manage to fixe the 'multiple nested loop' issue by using tXMLmap but I don't know how to load this data in the MongoDB ... 
&lt;BR /&gt;Thanks</description>
    <pubDate>Fri, 19 Aug 2016 11:13:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-08-19T11:13:04Z</dc:date>
    <item>
      <title>XML to MongoDB - Best Approach?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-to-MongoDB-Best-Approach/m-p/2337376#M105724</link>
      <description>&lt;B&gt;Objective:&amp;nbsp;&lt;/B&gt; 
&lt;BR /&gt;Read complex xml file, do some minor transformations, then load into existing mongodb collection. 
&lt;BR /&gt; 
&lt;B&gt;Current Approach:&lt;/B&gt;&amp;nbsp; 
&lt;BR /&gt;Use tInputFileMSXML to flatten xml into multiple tHashOutputs (works fine), use tMap to do transformations and joining (works fine), construct output to load into Mongodb (here is the problem). &amp;nbsp; 
&lt;BR /&gt; 
&lt;B&gt;Challenge &lt;/B&gt;(I think):&amp;nbsp; 
&lt;BR /&gt;I tried using the tWriteJsonField, but it does not support multiple loop elements. &amp;nbsp;How can I get the data into the structure needed to insert into MongoDB? I did search the forum (found that multiple loop elements are not support in Json related talend components), and reviewed every tutorial I could find on the internet, but none have complex XML examples.&amp;nbsp; 
&lt;BR /&gt; 
&lt;I&gt;Any help would be appreciated.&lt;/I&gt; 
&lt;BR /&gt; 
&lt;I&gt;XML Source (pseudo example):&lt;/I&gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Product name="Domesticated Animal Care Manuals"&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Attributes&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Attrib name="Category"&amp;gt;Care Manuals&amp;lt;/Attrib&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Attrib name="Type"&amp;gt;Domesticated Animals&amp;lt;/Attrib&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Attributes&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Images&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Image name="bird photo"&amp;gt;x2345.jpg&amp;lt;/Image&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Image name="cat photo"&amp;gt;x45678.jpg&amp;lt;/Image&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Image name="dog photo"&amp;gt;x5927.jpg&amp;lt;/Image&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Images&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;productPdfs&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Document name="Bird Care Manual"&amp;gt;takecareofyourbird.pdf&amp;lt;/Document&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Document name="Cat Care Manual"&amp;gt;takecareofyourcat.pdf&amp;lt;/Document&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Document name="Dog Care Manual"&amp;gt;takecareofyourdog.pdf&amp;lt;/Document&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/productPdfs&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;productPricing&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;COG Type="EACH"&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Attrib name="Our Cost"&amp;gt;4&amp;lt;/Attribute&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Attrib name="Retail Price"&amp;gt;15.5&amp;lt;/Attribute&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;Attrib name="Sale Price"&amp;gt;10&amp;lt;/Attribute&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/COG&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/productPricing&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/Product&amp;gt; 
&lt;BR /&gt; 
&lt;B&gt;Desired Output&lt;/B&gt;&amp;nbsp; 
&lt;BR /&gt;Mongodb Collection Structure: 
&lt;BR /&gt;{"name":"Domesticated Animal Care Manuals","category":"Care Manuals","type":"Domesticated Animals","images":,"productPdfs":,"productPricing":} 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEpY.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154128iF1F44C88415FD708/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEpY.jpg" alt="0683p000009MEpY.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-to-MongoDB-Best-Approach/m-p/2337376#M105724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: XML to MongoDB - Best Approach?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-to-MongoDB-Best-Approach/m-p/2337377#M105725</link>
      <description>Anyone out there that could help me, it would be greatly appreciated.</description>
      <pubDate>Mon, 01 Sep 2014 12:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-to-MongoDB-Best-Approach/m-p/2337377#M105725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-01T12:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: XML to MongoDB - Best Approach?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-to-MongoDB-Best-Approach/m-p/2337378#M105726</link>
      <description>I am willing to pay for support on this issue. &amp;nbsp;Are there any resources that could help me out?</description>
      <pubDate>Thu, 04 Sep 2014 13:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-to-MongoDB-Best-Approach/m-p/2337378#M105726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-04T13:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: XML to MongoDB - Best Approach?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/XML-to-MongoDB-Best-Approach/m-p/2337379#M105727</link>
      <description>How did you manage to do this? 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&amp;nbsp;i want to load data into MongoDB ( more then 1 nested loop ) but I don't know how .. 
&lt;BR /&gt;I manage to fixe the 'multiple nested loop' issue by using tXMLmap but I don't know how to load this data in the MongoDB ... 
&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 19 Aug 2016 11:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/XML-to-MongoDB-Best-Approach/m-p/2337379#M105727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-19T11:13:04Z</dc:date>
    </item>
  </channel>
</rss>

