README: Changes to markdown style README.md
[glsdk/iodelay-config.git] / simple-XML-parse.py
1 #!/usr/bin/python
2 # Python script to experiment with XML parsing
3 # Author:- Nikhil Devshatwar
5 # Do not use this script to generate values for iodelay
6 # This is helpful to develop the iodelay-autogen.py whenever
7 # the XML file syntax changes
9 import xml.etree.ElementTree as ET
10 import re
12 XML_PATH = "XMLFiles/DRA72x"
14 pad_data_xml   = XML_PATH + "/CTRL_MODULE_CORE.xml"
15 iod_data_xml   = XML_PATH + "/IODELAYCONFIG.xml"
16 model_data_xml = XML_PATH + "/model_DRA72x_SR1.0_v1.0.9.xml"
18 pad_xml = ET.parse(pad_data_xml).getroot()
19 iod_xml = ET.parse(iod_data_xml).getroot()
20 model_xml = ET.parse(model_data_xml).getroot()
22 padlist = model_xml.findall("padDB/clockNode/type/pad")