Forum: GNU Radio Reading data from an xml file in python

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2031d93c433e5bd023aa44e48e11b577?d=identicon&s=25 Salman Ali (salmanali_99)
on 2009-05-28 06:27
(Received via mailing list)
Hello all!

I have been experimenting with transfer of xml file between different
computers. I need help in reading an xml file in pyton. I want the data
in the xml file to be put into some variables. I have used minidom put
still could not work it out in an easy way. I would be grateful if
someone could post  a complete code showing how could i retreive the
data in some variable in python in some easy way for the simple xml file
sample given below.

<?xml version="1.0" encoding="UTF-8"?>
<sdr>
   <modulation>QAM</modulation>
   <index>4</index>
    <power>50</power>
</sdr>


thanks
C0ba64b9e5a62ed77295b79b63ab87c0?d=identicon&s=25 Dimitris Symeonidis (Guest)
on 2009-05-30 15:57
(Received via mailing list)
If you want to do it in C++, here's an example:
https://www.cgran.org/browser/projects/radio_data_...

If instead you insist on doing it in python, try googling "xml python
example"

Dimitris Symeonidis
"If you think you're too small to make a difference, try sleeping with
a mosquito!" - Amnesty International
This topic is locked and can not be replied to.