Python Parser

************py ************
import xml.etree.ElementTree as ET
data=”’


Idly $2.5
Two idly’s with chutney

553


”’
myroot = ET.fromstring(data)
#print(myroot)
print(myroot.tag)

************xml************



Idly $2.5
Two idly’s with chutney

553


Paper Dosa $2.7
Plain paper dosa with chutney

700


Upma $3.65
Rava upma with bajji

600


Bisi Bele Bath $4.50
Bisi Bele Bath with sev

400


Kesari Bath $1.95
Sweet rava with saffron

950

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*