I need a way to find out when end tags occur and what element it ends. I can see from the code that end tags are discarded completly. I was wondering if there is a way to know when the end tag occurs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The end tag for any element occurs after all child elements. In properly-formed XML there is no question over which tag an end tag is ending - it's whichever one it's logically matched up to in the source file. Therefore I'm not sure why you want to know this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I need a way to find out when end tags occur and what element it ends. I can see from the code that end tags are discarded completly. I was wondering if there is a way to know when the end tag occurs.
The end tag for any element occurs after all child elements. In properly-formed XML there is no question over which tag an end tag is ending - it's whichever one it's logically matched up to in the source file. Therefore I'm not sure why you want to know this.
Nevermind, I found a way to do it on my own.
I needed this so I could set the system states correctly when parsing the file. It also checked for structure and errors.
??
You want a sax-style parser. Or maybe you're trying to write one. Either way, from what you've posted, TinyXml isn't the right toolkit for you.