dmulyalin / ttp

Template Text Parser
MIT License
350 stars 34 forks source link

Parsing XML format #27

Closed Vibhavari13 closed 4 years ago

Vibhavari13 commented 4 years ago

Hello,

First and foremost, I would like to say that this tool has been very useful for me due to it's easy implementation and versatility. I love it and it has solved a lot of my problems. Although I've been able to parse semi-structured text based files, recently I was required to parse a certain type of XML file.

When I tried designing a template for it, I couldn't get a regex to match the tags of XML. Can you please help me resolve this issue or point me to a documentation which could help me, I would be so grateful.

Thank you.

dmulyalin commented 4 years ago

Hi, why not to use xml parsers such as lxml or built in xmletree?

Vibhavari13 commented 4 years ago

Thanks, that solved my problem.