<div dir="ltr"><div>You must get "nodes/node[....]" and "links/link[.....]".</div><div>See the attached corrected patch.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font face="arial, helvetica, sans-serif"> Antoine Rousseau </font></div><div dir="ltr"><font face="arial, helvetica, sans-serif">  <a href="http://metalu.net" target="_blank">http://www.metalu.net</a> __ <a href="http://www.metaluachahuter.com/compagnies/al1-ant1/" target="_blank">http://www.metaluachahuter.com/</a><br><br></font></div></div></div></div></div></div>
<br><div class="gmail_quote">2018-08-09 16:38 GMT+02:00 Esteban Viveros <span dir="ltr"><<a href="mailto:emviveros@gmail.com" target="_blank">emviveros@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Antoine! It works like a charm with modelo.xml but with the other file I don't know how to parse... I swear I tried all stuff!!! :P<div><br></div><img src="cid:1651f1a2f1124d8dc901" alt="Captura de Tela 2018-08-09 às 11.30.16.png" style="max-width:100%;opacity:1"><div> <br><div>I attached the file mapa_modelo.xml and the pof_test.pd if needed to correct me.. </div></div><div><br></div><div>Thanks a lot!! :)</div><br><div class="gmail_quote"><span class=""><div dir="ltr">Em qui, 9 de ago de 2018 às 07:34, Antoine Rousseau <<a href="mailto:antoine@metalu.net" target="_blank">antoine@metalu.net</a>> escreveu:<br></div></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div>Hi Esteban, <br></div><div><br></div><div>about using pofxml, the syntax you used wasn't correct, since your xml file uses attributes instead of nested elements (of course pofxml should be protected against bad queries...).</div><div><br></div><div>The following patch does work with your example:</div></span><div><div><br></div><div><img src="cid:ii_jkmf5fe10_1651e3a703afa775" alt="xml_modelo.png" style="max-width:100%"><br></div><br></div><div><div class="h5"><div><br></div><div>Note that there is also a [pofjson].</div><div><br></div></div></div></div><div><div class="h5"><div class="gmail_extra"></div><div class="gmail_extra"><br clear="all"><div><div class="m_1839331603904067466m_7565871793023247804gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><font face="arial, helvetica, sans-serif"> Antoine Rousseau </font></div><div dir="ltr"><font face="arial, helvetica, sans-serif">  <a href="http://metalu.net" target="_blank">http://www.metalu.net</a> __ <a href="http://www.metaluachahuter.com/compagnies/al1-ant1/" target="_blank">htt<wbr>p://www.metaluachahuter.com/</a><br><br></font></div></div></div></div></div></div></div><div class="gmail_extra">
<br><div class="gmail_quote">2018-08-07 13:53 GMT+02:00 Esteban Viveros <span dir="ltr"><<a href="mailto:emviveros@gmail.com" target="_blank">emviveros@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Thanks @Matthias!!! I'm sorrounding a solution using python, but I'll study your suggestions. Make all work inside a pd patch is fine for me.</span><div><br></div><div>I'll write here how these question has been solved in these case. </div><div><br></div><div>At this time I assume pd vanilla objects can't handle big data in xml or json in one file.</div><div><br></div><div>Cheers</div><div> Esteban</div><div class="m_1839331603904067466m_7565871793023247804HOEnZb"><div class="m_1839331603904067466m_7565871793023247804h5"><div><br><br><div class="gmail_quote"><div dir="ltr">Em ter, 7 de ago de 2018 06:52, Matthias Geier <<a href="mailto:matthias.geier@gmail.com" target="_blank">matthias.geier@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" id="m_1839331603904067466m_7565871793023247804m_-4751795733668455347gmail_block_quote0"><div dir="ltr"><div>Hi Esteban.</div><div><br></div><div>If pdlua works on your system and if you are willing to write a bit of Lua code, you can make your own custom parser.</div><div><br></div><div>Here's an example where I have done that:<br></div><div><a href="https://github.com/SoundScapeRenderer/ssr/blob/master/pd/ssrclient.pd_lua" target="_blank">https://github.com/<wbr>SoundScapeRenderer/ssr/blob/<wbr>master/pd/ssrclient.pd_lua</a><br></div><div><br></div><div>This uses an existing Lua XML library (<a href="https://github.com/Phrogz/SLAXML" target="_blank">https://github.com/Phrogz/<wbr>SLAXML</a>) which I've just copied to the same directory.</div><div><br></div><div>I was receiving my XML data from a network socket. If you want to read your data from an XML file, you'll have to add that functionality.</div><div><br></div><div>I guess you could do a similar thing with Python, if you prefer that language.<br></div><div><br></div><div>cheers,</div><div>Matthias<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 2, 2018 at 12:21 AM, Esteban Viveros <span dir="ltr"><<a href="mailto:emviveros@gmail.com" target="_blank">emviveros@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks guys for your responses!!<div><br></div><div>@Lucas Cordiviola, I found PDcontainer in deken for mac win linux but not for arm (I want to use a RPi for this project), anyway I tried but could not load the xml files with the [h_map] and [h_multimap].</div><div><br></div><div>@Matt Davey, Pof seems cool, but it crashes pd anytime I tried to parse the files using [pofxml].</div><div>the patch are like that:</div><img src="cid:164f78fe1e0fe53d78e1" alt="pof-issue.png" style="max-width:100%"><div>and the xml sample can be downloaded <a href="https://forum.pdpatchrepo.info/uploads/files/1533158829399-modelo.xml" target="_blank">here</a>.</div><div><br></div><div>I tried other ways without success... If you want see pdpatchrepo <a href="https://forum.pdpatchrepo.info/topic/11524/xml-parsing-in-pd" target="_blank">tread xml-parsing-in-pd</a></div><div><br></div><div>I tried [text] object, but it truncated some data.. Values like <a href="tel:3000-3042" value="+5530003042" target="_blank">30003042</a> turn to 3.0003e+07 and pd freeze when I tried to load a 16mb xml file.</div><div><br></div><div>Any advance are welcomed!!</div><div>Cheers</div><div><div class="m_1839331603904067466m_7565871793023247804m_-4751795733668455347m_4559897530101072123m_-1980928808966927265h5"><div><br></div><br><div class="gmail_quote"><div dir="ltr">Em qua, 1 de ago de 2018 às 01:23, Matt Davey <<a href="mailto:hard.off@gmail.com" target="_blank">hard.off@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">There is pofxml in the pof library.  </div></div><div><br><div class="gmail_quote"></div></div><div><div class="gmail_quote"><div dir="ltr">On Tue, 31 Jul 2018 at 22:25, Lucas Cordiviola <<a href="mailto:lucarda27@hotmail.com" target="_blank">lucarda27@hotmail.com</a>> wrote:<br></div></div></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div text="#000000" bgcolor="#FFFFFF">
<p>You can try with PDcontainer. It's up on Deken.</p>
<p>Iirc it was for XML.</p>
<p><br>
</p>
<p>--<br>
</p>
<pre class="m_1839331603904067466m_7565871793023247804m_-4751795733668455347m_4559897530101072123m_-1980928808966927265m_6629221156221038546m_4304353964851512386m_-1012040539217814665moz-signature" cols="72">Mensaje telepatico asistido por maquinas.</pre></div><div text="#000000" bgcolor="#FFFFFF">
<div class="m_1839331603904067466m_7565871793023247804m_-4751795733668455347m_4559897530101072123m_-1980928808966927265m_6629221156221038546m_4304353964851512386m_-1012040539217814665moz-cite-prefix">On 7/31/2018 12:32 PM, Esteban Viveros wrote:<br>
</div>
</div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite">
<div dir="ltr">Hi! I'm looking for a solution for XML parsing. I found <span style="color:rgb(29,33,41);font-family:system-ui,-apple-system,system-ui,".SFNSText-Regular",sans-serif;font-size:14px">jasch_lib [detox] but it crashes pd in OSx and don't have RPi
 binary disponible in deken. I tried [jasch_lib/detox] in purr data and it still crash.</span>
<div><span style="color:rgb(29,33,41);font-family:system-ui,-apple-system,system-ui,".SFNSText-Regular",sans-serif;font-size:14px"><br>
</span></div>
<div><span style="color:rgb(29,33,41);font-family:system-ui,-apple-system,system-ui,".SFNSText-Regular",sans-serif;font-size:14px">My goal is to recognize
</span><span style="color:rgb(29,33,41);font-family:system-ui,-apple-system,system-ui,".SFNSText-Regular",sans-serif">some identifiers and make it disponible in some matrix or vector for sonification purposes.</span></div>
<div><span style="color:rgb(29,33,41);font-family:system-ui,-apple-system,system-ui,".SFNSText-Regular",sans-serif;font-size:14px"><br>
</span></div>
<div><span style="color:rgb(29,33,41);font-family:system-ui,-apple-system,system-ui,".SFNSText-Regular",sans-serif;font-size:14px">There are other external or vanilla way can it be done?</span></div>
<div><span style="color:rgb(29,33,41);font-family:system-ui,-apple-system,system-ui,".SFNSText-Regular",sans-serif;font-size:14px"><br>
</span></div>
<div><span style="color:rgb(29,33,41);font-family:system-ui,-apple-system,system-ui,".SFNSText-Regular",sans-serif;font-size:14px">Cheers</span></div>
</div>
-- <br>
<div dir="ltr" class="m_1839331603904067466m_7565871793023247804m_-4751795733668455347m_4559897530101072123m_-1980928808966927265m_6629221156221038546m_4304353964851512386m_-1012040539217814665gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<p dir="ltr"><a href="http://www.estebanviveros.com" target="_blank">www.estebanviveros.com</a>
</p>
</div>
</div>
<br>
<fieldset class="m_1839331603904067466m_7565871793023247804m_-4751795733668455347m_4559897530101072123m_-1980928808966927265m_6629221156221038546m_4304353964851512386m_-1012040539217814665mimeAttachmentHeader"></fieldset> <br>
</blockquote></div><div text="#000000" bgcolor="#FFFFFF"><blockquote type="cite"><pre>N �n�r����)em�h�yhiם�w^��</pre>
</blockquote>
<br>
</div></blockquote></div></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
</blockquote></div></div>
</blockquote></div></div></div></div><span class="m_1839331603904067466m_7565871793023247804m_-4751795733668455347m_4559897530101072123m_-1980928808966927265HOEnZb"><font color="#888888">-- <br><div dir="ltr" class="m_1839331603904067466m_7565871793023247804m_-4751795733668455347m_4559897530101072123m_-1980928808966927265m_6629221156221038546gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr"><a href="http://www.estebanviveros.com" target="_blank">www.estebanviveros.com</a> </p>
</div></div>
</font></span><br>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div><span>
</span></div></div><span class="m_1839331603904067466m_7565871793023247804HOEnZb"><font color="#888888">-- <br><div dir="ltr" class="m_1839331603904067466m_7565871793023247804m_-4751795733668455347gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr"><a href="http://www.estebanviveros.com" target="_blank">www.estebanviveros.com</a> </p>
</div></div>
</font></span><br>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br></blockquote></div><br></div></div></div></blockquote></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr" class="m_1839331603904067466gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr"><a href="http://www.estebanviveros.com" target="_blank">www.estebanviveros.com</a> </p>
</div></div>
</font></span></blockquote></div><br></div>