<div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span><div style="font-size:12.8000001907349px">This is my first post, I would like to know if a library that can help me with this.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I want to parse a XML fle with Python and save the data into a Lua table called for example "newTable", then I want to create a "table.lua" fle with the "newTable" write on it.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">for example:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">the XML fle: cities.xml</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><cities></div><div style="font-size:12.8000001907349px"><div>     <city></div><div>              <name>BuenosAires</name></div><div>              <temperature>30</temperature><br></div><div>      </city></div></div><div style="font-size:12.8000001907349px"><div><city></div><div>      <name>Seatle</name></div><div>      <temperature>25</temperature><br></div><div></city></div></div><div style="font-size:12.8000001907349px"></cities></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">And  I want to create a cities_temp.lua file</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">cities_temps ={</div><div style="font-size:12.8000001907349px">["Buenos Aires"] = 30,</div><div style="font-size:12.8000001907349px">["Seatle"] = 25,<br></div><div style="font-size:12.8000001907349px">}</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Is that posible to do with LUPA (<a href="https://pypi.python.org/pypi/lupa)">https://pypi.python.org/pypi/lupa)</a>?? In the docs I read that you can create lua tables but I did not see if there is a way to create a .lua file with that table.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I could do it with python writing to a file line per line but i want some more elegant.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Can anyone give some help?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thanks.</div><div><br></div>-- <br><div class="gmail_signature">Ariel Argañaraz<br><br><br></div>
</div>