[Tutor] how to get data from xml

ទិត្យវិរៈ titvirak at khmeros.info
Tue Apr 4 10:56:27 CEST 2006


Dear all Pythoners,

I am quiet new to python and now working with xml. I have an xml like this:

<?xml version="1.0" encoding="utf-8"?>
<fonttables>
    <table name="abc">
        <CONSONANTS>
            <KA>0x6B</KA>
            <KHA>0x78</KHA>
            <KO>0x4B</KO>
            <KHO>0x58</KHO>
            <NGO>0x67</NGO>
            <CHA>0x63</CHA>
            <CHHA>0x71</CHHA>
            <CHO>0x43</CHO>
            <CHHO>0x51</CHHO>
            <NYO>0x6A</NYO>


and I want to get data for KA, KHA, KO and so on. Can you guide me a
way. Btw, I'm using dom for xml.

Thanks,

Titvirak


More information about the Tutor mailing list