Menu

End Tags Element?

2005-11-21
2013-05-20
  • Michel Boudreau

    Michel Boudreau - 2005-11-21

    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.

     
    • B Sizer

      B Sizer - 2005-11-22

      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.

       
    • Michel Boudreau

      Michel Boudreau - 2005-11-22

      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.

       
      • Ellers

        Ellers - 2005-11-24

        ??

        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.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.