# Improvement of XML parsers

**URL:** <https://root-forum.cern.ch/t/improvement-of-xml-parsers/21982>\
**Category:** Evolution Proposals, Apps & Ideas\
**Created:** [October 4, 2016, 9:41pm UTC](https://root-forum.cern.ch/t/improvement-of-xml-parsers/21982 "2016-10-04T21:41:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwielane](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dwielane/32/12354_2.png) [@dwielane](https://root-forum.cern.ch/u/dwielane)\
**Post date:** [October 4, 2016, 9:41pm UTC](https://root-forum.cern.ch/t/improvement-of-xml-parsers/21982/1 "2016-10-04T21:41:39Z")

</div>

Hello,  
I noticed that reading XML files is quite hard. It will be nice to have functions like GetChildByName or GetChildNumber. It’s important in cases when XML is generated/edited by human - and order of nodes is uknown or when some nodes doesn’t exist. Making loops to look for nodes it’s not complicated but makes code much longer.

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [October 6, 2016, 7:13am UTC](https://root-forum.cern.ch/t/improvement-of-xml-parsers/21982/2 "2016-10-06T07:13:10Z")

</div>

Hi,

if you have usecase which is appropriate for this kind of development we definitively encourage you to file a Pull Request on [github.com/root-mirror](https://github.com/root-mirror).  
Don’t forget to add a test and an example tutorial!

Looking forward to it,  
Danilo
