Hi! I'm looking for a solution for XML parsing. I found 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.
My goal is to recognize some identifiers and make it disponible in some matrix or vector for sonification purposes.
There are other external or vanilla way can it be done?
www.estebanviveros.com
You can try with PDcontainer. It's up on Deken.
Iirc it was for XML.
--
Mensaje telepatico asistido por maquinas.
On 7/31/2018 12:32 PM, Esteban Viveros wrote: Hi! I'm looking for a solution for XML parsing. I found 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.
My goal is to recognize some identifiers and make it disponible in some matrix or vector for sonification purposes.
There are other external or vanilla way can it be done?
www.estebanviveros.comhttp://www.estebanviveros.com
N�n�r����)em�h�yhiם�w^��
There is pofxml in the pof library.
On Tue, 31 Jul 2018 at 22:25, Lucas Cordiviola lucarda27@hotmail.com wrote:
You can try with PDcontainer. It's up on Deken.
Iirc it was for XML.
--
Mensaje telepatico asistido por maquinas.
On 7/31/2018 12:32 PM, Esteban Viveros wrote:
Hi! I'm looking for a solution for XML parsing. I found 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.
My goal is to recognize some identifiers and make it disponible in some matrix or vector for sonification purposes.
There are other external or vanilla way can it be done?
Cheers
www.estebanviveros.com
N �n�r����)em�h�yhiם�w^��
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Thanks guys for your responses!!
@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].
@Matt Davey, Pof seems cool, but it crashes pd anytime I tried to parse the files using [pofxml]. the patch are like that: [image: pof-issue.png] and the xml sample can be downloaded here https://forum.pdpatchrepo.info/uploads/files/1533158829399-modelo.xml.
I tried other ways without success... If you want see pdpatchrepo tread xml-parsing-in-pd https://forum.pdpatchrepo.info/topic/11524/xml-parsing-in-pd
I tried [text] object, but it truncated some data.. Values like 30003042 turn to 3.0003e+07 and pd freeze when I tried to load a 16mb xml file.
Any advance are welcomed!! Cheers
Em qua, 1 de ago de 2018 às 01:23, Matt Davey hard.off@gmail.com escreveu:
There is pofxml in the pof library.
On Tue, 31 Jul 2018 at 22:25, Lucas Cordiviola lucarda27@hotmail.com wrote:
You can try with PDcontainer. It's up on Deken.
Iirc it was for XML.
--
Mensaje telepatico asistido por maquinas.
On 7/31/2018 12:32 PM, Esteban Viveros wrote:
Hi! I'm looking for a solution for XML parsing. I found 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.
My goal is to recognize some identifiers and make it disponible in some matrix or vector for sonification purposes.
There are other external or vanilla way can it be done?
Cheers
www.estebanviveros.com
N �n�r����)em�h�yhiם�w^��
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
www.estebanviveros.com
Hi Esteban.
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.
Here's an example where I have done that: https://github.com/SoundScapeRenderer/ssr/blob/master/pd/ssrclient.pd_lua
This uses an existing Lua XML library (https://github.com/Phrogz/SLAXML) which I've just copied to the same directory.
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.
I guess you could do a similar thing with Python, if you prefer that language.
cheers, Matthias
On Thu, Aug 2, 2018 at 12:21 AM, Esteban Viveros emviveros@gmail.com wrote:
Thanks guys for your responses!!
@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].
@Matt Davey, Pof seems cool, but it crashes pd anytime I tried to parse the files using [pofxml]. the patch are like that: [image: pof-issue.png] and the xml sample can be downloaded here https://forum.pdpatchrepo.info/uploads/files/1533158829399-modelo.xml.
I tried other ways without success... If you want see pdpatchrepo tread xml-parsing-in-pd https://forum.pdpatchrepo.info/topic/11524/xml-parsing-in-pd
I tried [text] object, but it truncated some data.. Values like 30003042 turn to 3.0003e+07 and pd freeze when I tried to load a 16mb xml file.
Any advance are welcomed!! Cheers
Em qua, 1 de ago de 2018 às 01:23, Matt Davey hard.off@gmail.com escreveu:
There is pofxml in the pof library.
On Tue, 31 Jul 2018 at 22:25, Lucas Cordiviola lucarda27@hotmail.com wrote:
You can try with PDcontainer. It's up on Deken.
Iirc it was for XML.
--
Mensaje telepatico asistido por maquinas.
On 7/31/2018 12:32 PM, Esteban Viveros wrote:
Hi! I'm looking for a solution for XML parsing. I found 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.
My goal is to recognize some identifiers and make it disponible in some matrix or vector for sonification purposes.
There are other external or vanilla way can it be done?
Cheers
www.estebanviveros.com
N �n�r����)em�h�yhiם�w^��
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
--
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
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.
I'll write here how these question has been solved in these case.
At this time I assume pd vanilla objects can't handle big data in xml or json in one file.
Cheers Esteban
Em ter, 7 de ago de 2018 06:52, Matthias Geier matthias.geier@gmail.com escreveu:
Hi Esteban.
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.
Here's an example where I have done that: https://github.com/SoundScapeRenderer/ssr/blob/master/pd/ssrclient.pd_lua
This uses an existing Lua XML library (https://github.com/Phrogz/SLAXML) which I've just copied to the same directory.
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.
I guess you could do a similar thing with Python, if you prefer that language.
cheers, Matthias
On Thu, Aug 2, 2018 at 12:21 AM, Esteban Viveros emviveros@gmail.com wrote:
Thanks guys for your responses!!
@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].
@Matt Davey, Pof seems cool, but it crashes pd anytime I tried to parse the files using [pofxml]. the patch are like that: [image: pof-issue.png] and the xml sample can be downloaded here https://forum.pdpatchrepo.info/uploads/files/1533158829399-modelo.xml.
I tried other ways without success... If you want see pdpatchrepo tread xml-parsing-in-pd https://forum.pdpatchrepo.info/topic/11524/xml-parsing-in-pd
I tried [text] object, but it truncated some data.. Values like 30003042 turn to 3.0003e+07 and pd freeze when I tried to load a 16mb xml file.
Any advance are welcomed!! Cheers
Em qua, 1 de ago de 2018 às 01:23, Matt Davey hard.off@gmail.com escreveu:
There is pofxml in the pof library.
On Tue, 31 Jul 2018 at 22:25, Lucas Cordiviola lucarda27@hotmail.com wrote:
You can try with PDcontainer. It's up on Deken.
Iirc it was for XML.
--
Mensaje telepatico asistido por maquinas.
On 7/31/2018 12:32 PM, Esteban Viveros wrote:
Hi! I'm looking for a solution for XML parsing. I found 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.
My goal is to recognize some identifiers and make it disponible in some matrix or vector for sonification purposes.
There are other external or vanilla way can it be done?
Cheers
www.estebanviveros.com
N �n�r����)em�h�yhiם�w^��
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
www.estebanviveros.com
Hi Esteban,
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...).
The following patch does work with your example:
Note that there is also a [pofjson].
Antoine Rousseau http://www.metalu.net http://metalu.net __ http://www.metaluachahuter.com/ http://www.metaluachahuter.com/compagnies/al1-ant1/
2018-08-07 13:53 GMT+02:00 Esteban Viveros emviveros@gmail.com:
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.
I'll write here how these question has been solved in these case.
At this time I assume pd vanilla objects can't handle big data in xml or json in one file.
Cheers Esteban
Em ter, 7 de ago de 2018 06:52, Matthias Geier matthias.geier@gmail.com escreveu:
Hi Esteban.
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.
Here's an example where I have done that: https://github.com/SoundScapeRenderer/ssr/blob/master/pd/ssrclient.pd_lua
This uses an existing Lua XML library (https://github.com/Phrogz/SLAXML) which I've just copied to the same directory.
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.
I guess you could do a similar thing with Python, if you prefer that language.
cheers, Matthias
On Thu, Aug 2, 2018 at 12:21 AM, Esteban Viveros emviveros@gmail.com wrote:
Thanks guys for your responses!!
@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].
@Matt Davey, Pof seems cool, but it crashes pd anytime I tried to parse the files using [pofxml]. the patch are like that: [image: pof-issue.png] and the xml sample can be downloaded here https://forum.pdpatchrepo.info/uploads/files/1533158829399-modelo.xml.
I tried other ways without success... If you want see pdpatchrepo tread xml-parsing-in-pd https://forum.pdpatchrepo.info/topic/11524/xml-parsing-in-pd
I tried [text] object, but it truncated some data.. Values like 30003042 turn to 3.0003e+07 and pd freeze when I tried to load a 16mb xml file.
Any advance are welcomed!! Cheers
Em qua, 1 de ago de 2018 às 01:23, Matt Davey hard.off@gmail.com escreveu:
There is pofxml in the pof library.
On Tue, 31 Jul 2018 at 22:25, Lucas Cordiviola lucarda27@hotmail.com wrote:
You can try with PDcontainer. It's up on Deken.
Iirc it was for XML.
--
Mensaje telepatico asistido por maquinas.
On 7/31/2018 12:32 PM, Esteban Viveros wrote:
Hi! I'm looking for a solution for XML parsing. I found 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.
My goal is to recognize some identifiers and make it disponible in some matrix or vector for sonification purposes.
There are other external or vanilla way can it be done?
Cheers
www.estebanviveros.com
N �n�r����)em�h�yhiם�w^��
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
--
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
--
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
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
[image: Captura de Tela 2018-08-09 às 11.30.16.png]
I attached the file mapa_modelo.xml and the pof_test.pd if needed to correct me..
Thanks a lot!! :)
Em qui, 9 de ago de 2018 às 07:34, Antoine Rousseau antoine@metalu.net escreveu:
Hi Esteban,
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...).
The following patch does work with your example:
[image: xml_modelo.png]
Note that there is also a [pofjson].
Antoine Rousseau http://www.metalu.net http://metalu.net __ http://www.metaluachahuter.com/ http://www.metaluachahuter.com/compagnies/al1-ant1/
2018-08-07 13:53 GMT+02:00 Esteban Viveros emviveros@gmail.com:
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.
I'll write here how these question has been solved in these case.
At this time I assume pd vanilla objects can't handle big data in xml or json in one file.
Cheers Esteban
Em ter, 7 de ago de 2018 06:52, Matthias Geier matthias.geier@gmail.com escreveu:
Hi Esteban.
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.
Here's an example where I have done that: https://github.com/SoundScapeRenderer/ssr/blob/master/pd/ssrclient.pd_lua
This uses an existing Lua XML library (https://github.com/Phrogz/SLAXML) which I've just copied to the same directory.
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.
I guess you could do a similar thing with Python, if you prefer that language.
cheers, Matthias
On Thu, Aug 2, 2018 at 12:21 AM, Esteban Viveros emviveros@gmail.com wrote:
Thanks guys for your responses!!
@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].
@Matt Davey, Pof seems cool, but it crashes pd anytime I tried to parse the files using [pofxml]. the patch are like that: [image: pof-issue.png] and the xml sample can be downloaded here https://forum.pdpatchrepo.info/uploads/files/1533158829399-modelo.xml .
I tried other ways without success... If you want see pdpatchrepo tread xml-parsing-in-pd https://forum.pdpatchrepo.info/topic/11524/xml-parsing-in-pd
I tried [text] object, but it truncated some data.. Values like 30003042 <3000-3042> turn to 3.0003e+07 and pd freeze when I tried to load a 16mb xml file.
Any advance are welcomed!! Cheers
Em qua, 1 de ago de 2018 às 01:23, Matt Davey hard.off@gmail.com escreveu:
There is pofxml in the pof library.
On Tue, 31 Jul 2018 at 22:25, Lucas Cordiviola lucarda27@hotmail.com wrote:
You can try with PDcontainer. It's up on Deken.
Iirc it was for XML.
--
Mensaje telepatico asistido por maquinas.
On 7/31/2018 12:32 PM, Esteban Viveros wrote:
Hi! I'm looking for a solution for XML parsing. I found 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.
My goal is to recognize some identifiers and make it disponible in some matrix or vector for sonification purposes.
There are other external or vanilla way can it be done?
Cheers
www.estebanviveros.com
N �n�r����)em�h�yhiם�w^��
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
www.estebanviveros.com
You must get "nodes/node[....]" and "links/link[.....]". See the attached corrected patch.
Antoine Rousseau http://www.metalu.net http://metalu.net __ http://www.metaluachahuter.com/ http://www.metaluachahuter.com/compagnies/al1-ant1/
2018-08-09 16:38 GMT+02:00 Esteban Viveros emviveros@gmail.com:
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
[image: Captura de Tela 2018-08-09 às 11.30.16.png]
I attached the file mapa_modelo.xml and the pof_test.pd if needed to correct me..
Thanks a lot!! :)
Em qui, 9 de ago de 2018 às 07:34, Antoine Rousseau antoine@metalu.net escreveu:
Hi Esteban,
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...).
The following patch does work with your example:
[image: xml_modelo.png]
Note that there is also a [pofjson].
Antoine Rousseau http://www.metalu.net http://metalu.net __ htt p://www.metaluachahuter.com/ http://www.metaluachahuter.com/compagnies/al1-ant1/
2018-08-07 13:53 GMT+02:00 Esteban Viveros emviveros@gmail.com:
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.
I'll write here how these question has been solved in these case.
At this time I assume pd vanilla objects can't handle big data in xml or json in one file.
Cheers Esteban
Em ter, 7 de ago de 2018 06:52, Matthias Geier matthias.geier@gmail.com escreveu:
Hi Esteban.
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.
Here's an example where I have done that: https://github.com/SoundScapeRenderer/ssr/blob/ master/pd/ssrclient.pd_lua
This uses an existing Lua XML library (https://github.com/Phrogz/SLAXML) which I've just copied to the same directory.
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.
I guess you could do a similar thing with Python, if you prefer that language.
cheers, Matthias
On Thu, Aug 2, 2018 at 12:21 AM, Esteban Viveros emviveros@gmail.com wrote:
Thanks guys for your responses!!
@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].
@Matt Davey, Pof seems cool, but it crashes pd anytime I tried to parse the files using [pofxml]. the patch are like that: [image: pof-issue.png] and the xml sample can be downloaded here https://forum.pdpatchrepo.info/uploads/files/1533158829399-modelo.xml .
I tried other ways without success... If you want see pdpatchrepo tread xml-parsing-in-pd https://forum.pdpatchrepo.info/topic/11524/xml-parsing-in-pd
I tried [text] object, but it truncated some data.. Values like 30003042 <3000-3042> turn to 3.0003e+07 and pd freeze when I tried to load a 16mb xml file.
Any advance are welcomed!! Cheers
Em qua, 1 de ago de 2018 às 01:23, Matt Davey hard.off@gmail.com escreveu:
There is pofxml in the pof library.
On Tue, 31 Jul 2018 at 22:25, Lucas Cordiviola lucarda27@hotmail.com wrote:
> You can try with PDcontainer. It's up on Deken. > > Iirc it was for XML. > > > -- > > Mensaje telepatico asistido por maquinas. > > On 7/31/2018 12:32 PM, Esteban Viveros wrote: > > Hi! I'm looking for a solution for XML parsing. I found 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. > > My goal is to recognize some identifiers and make it disponible in > some matrix or vector for sonification purposes. > > There are other external or vanilla way can it be done? > > Cheers > -- > > www.estebanviveros.com > > > N �n�r����)em�h�yhiם�w^�� > > > _______________________________________________ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> https://lists.puredata.info/ > listinfo/pd-list
>
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
--
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
--
www.estebanviveros.com
HUm... Now I understand!! Thank you a lot @Antoine for the explanation, patience and at first for your great work!! :))))))
Em sex, 10 de ago de 2018 às 06:24, Antoine Rousseau antoine@metalu.net escreveu:
You must get "nodes/node[....]" and "links/link[.....]". See the attached corrected patch.
Antoine Rousseau http://www.metalu.net http://metalu.net __ http://www.metaluachahuter.com/ http://www.metaluachahuter.com/compagnies/al1-ant1/
2018-08-09 16:38 GMT+02:00 Esteban Viveros emviveros@gmail.com:
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
[image: Captura de Tela 2018-08-09 às 11.30.16.png]
I attached the file mapa_modelo.xml and the pof_test.pd if needed to correct me..
Thanks a lot!! :)
Em qui, 9 de ago de 2018 às 07:34, Antoine Rousseau antoine@metalu.net escreveu:
Hi Esteban,
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...).
The following patch does work with your example:
[image: xml_modelo.png]
Note that there is also a [pofjson].
Antoine Rousseau http://www.metalu.net http://metalu.net __ http://www.metaluachahuter.com/ http://www.metaluachahuter.com/compagnies/al1-ant1/
2018-08-07 13:53 GMT+02:00 Esteban Viveros emviveros@gmail.com:
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.
I'll write here how these question has been solved in these case.
At this time I assume pd vanilla objects can't handle big data in xml or json in one file.
Cheers Esteban
Em ter, 7 de ago de 2018 06:52, Matthias Geier < matthias.geier@gmail.com> escreveu:
Hi Esteban.
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.
Here's an example where I have done that:
https://github.com/SoundScapeRenderer/ssr/blob/master/pd/ssrclient.pd_lua
This uses an existing Lua XML library ( https://github.com/Phrogz/SLAXML) which I've just copied to the same directory.
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.
I guess you could do a similar thing with Python, if you prefer that language.
cheers, Matthias
On Thu, Aug 2, 2018 at 12:21 AM, Esteban Viveros emviveros@gmail.com wrote:
Thanks guys for your responses!!
@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].
@Matt Davey, Pof seems cool, but it crashes pd anytime I tried to parse the files using [pofxml]. the patch are like that: [image: pof-issue.png] and the xml sample can be downloaded here https://forum.pdpatchrepo.info/uploads/files/1533158829399-modelo.xml .
I tried other ways without success... If you want see pdpatchrepo tread xml-parsing-in-pd https://forum.pdpatchrepo.info/topic/11524/xml-parsing-in-pd
I tried [text] object, but it truncated some data.. Values like 30003042 <3000-3042> turn to 3.0003e+07 and pd freeze when I tried to load a 16mb xml file.
Any advance are welcomed!! Cheers
Em qua, 1 de ago de 2018 às 01:23, Matt Davey hard.off@gmail.com escreveu:
> There is pofxml in the pof library. > > On Tue, 31 Jul 2018 at 22:25, Lucas Cordiviola < > lucarda27@hotmail.com> wrote: > >> You can try with PDcontainer. It's up on Deken. >> >> Iirc it was for XML. >> >> >> -- >> >> Mensaje telepatico asistido por maquinas. >> >> On 7/31/2018 12:32 PM, Esteban Viveros wrote: >> >> Hi! I'm looking for a solution for XML parsing. I found 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. >> >> My goal is to recognize some identifiers and make it disponible in >> some matrix or vector for sonification purposes. >> >> There are other external or vanilla way can it be done? >> >> Cheers >> -- >> >> www.estebanviveros.com >> >> >> N �n�r����)em�h�yhiם�w^�� >> >> >> _______________________________________________ >> Pd-list@lists.iem.at mailing list >> UNSUBSCRIBE and account-management -> >> https://lists.puredata.info/listinfo/pd-list >> > --
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
www.estebanviveros.com
--
www.estebanviveros.com
Hi @Antoine! Reporting: [pofxml] fails to parse the true file https://forum.pdpatchrepo.info/uploads/files/1534109081004-map_true.xml.zip (it's huge).
[image: Captura de Tela 2018-08-12 às 18.38.04.png] Cheers Esteban
Em sex, 10 de ago de 2018 às 08:19, Esteban Viveros emviveros@gmail.com escreveu:
HUm... Now I understand!! Thank you a lot @Antoine for the explanation, patience and at first for your great work!! :))))))
Em sex, 10 de ago de 2018 às 06:24, Antoine Rousseau antoine@metalu.net escreveu:
You must get "nodes/node[....]" and "links/link[.....]". See the attached corrected patch.
Antoine Rousseau http://www.metalu.net http://metalu.net __ http://www.metaluachahuter.com/ http://www.metaluachahuter.com/compagnies/al1-ant1/
2018-08-09 16:38 GMT+02:00 Esteban Viveros emviveros@gmail.com:
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
[image: Captura de Tela 2018-08-09 às 11.30.16.png]
I attached the file mapa_modelo.xml and the pof_test.pd if needed to correct me..
Thanks a lot!! :)
Em qui, 9 de ago de 2018 às 07:34, Antoine Rousseau antoine@metalu.net escreveu:
Hi Esteban,
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...).
The following patch does work with your example:
[image: xml_modelo.png]
Note that there is also a [pofjson].
Antoine Rousseau http://www.metalu.net http://metalu.net __ http://www.metaluachahuter.com/ http://www.metaluachahuter.com/compagnies/al1-ant1/
2018-08-07 13:53 GMT+02:00 Esteban Viveros emviveros@gmail.com:
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.
I'll write here how these question has been solved in these case.
At this time I assume pd vanilla objects can't handle big data in xml or json in one file.
Cheers Esteban
Em ter, 7 de ago de 2018 06:52, Matthias Geier < matthias.geier@gmail.com> escreveu:
Hi Esteban.
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.
Here's an example where I have done that:
https://github.com/SoundScapeRenderer/ssr/blob/master/pd/ssrclient.pd_lua
This uses an existing Lua XML library ( https://github.com/Phrogz/SLAXML) which I've just copied to the same directory.
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.
I guess you could do a similar thing with Python, if you prefer that language.
cheers, Matthias
On Thu, Aug 2, 2018 at 12:21 AM, Esteban Viveros <emviveros@gmail.com > wrote:
> Thanks guys for your responses!! > > @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]. > > @Matt Davey, Pof seems cool, but it crashes pd anytime I tried to > parse the files using [pofxml]. > the patch are like that: > [image: pof-issue.png] > and the xml sample can be downloaded here > https://forum.pdpatchrepo.info/uploads/files/1533158829399-modelo.xml > . > > I tried other ways without success... If you want see pdpatchrepo tread > xml-parsing-in-pd > https://forum.pdpatchrepo.info/topic/11524/xml-parsing-in-pd > > I tried [text] object, but it truncated some data.. Values like > 30003042 <3000-3042> turn to 3.0003e+07 and pd freeze when I tried > to load a 16mb xml file. > > Any advance are welcomed!! > Cheers > > > Em qua, 1 de ago de 2018 às 01:23, Matt Davey hard.off@gmail.com > escreveu: > >> There is pofxml in the pof library. >> >> On Tue, 31 Jul 2018 at 22:25, Lucas Cordiviola < >> lucarda27@hotmail.com> wrote: >> >>> You can try with PDcontainer. It's up on Deken. >>> >>> Iirc it was for XML. >>> >>> >>> -- >>> >>> Mensaje telepatico asistido por maquinas. >>> >>> On 7/31/2018 12:32 PM, Esteban Viveros wrote: >>> >>> Hi! I'm looking for a solution for XML parsing. I found 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. >>> >>> My goal is to recognize some identifiers and make it disponible >>> in some matrix or vector for sonification purposes. >>> >>> There are other external or vanilla way can it be done? >>> >>> Cheers >>> -- >>> >>> www.estebanviveros.com >>> >>> >>> N �n�r����)em�h�yhiם�w^�� >>> >>> >>> _______________________________________________ >>> Pd-list@lists.iem.at mailing list >>> UNSUBSCRIBE and account-management -> >>> https://lists.puredata.info/listinfo/pd-list >>> >> -- > > www.estebanviveros.com > > _______________________________________________ > Pd-list@lists.iem.at mailing list > UNSUBSCRIBE and account-management -> > https://lists.puredata.info/listinfo/pd-list >
>
www.estebanviveros.com
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
--
www.estebanviveros.com
--
www.estebanviveros.com