Menu

TiXmlElement::Row() & Column() are 0. why?

2004-05-21
2004-06-02
  • John-Philip Leonard Johansson

    Hi!

    I've used TinyXML for a month now and I'm loving it. I was using a few global functions of mine for throwing errors, etc. Now when I've baked everything to a class my current TiXmlElement* always has location (0,0). I can read elements, attributes, etc. from my file all fine, but it's location never change.

    Does somebody know what I did wrong?

    I've checked the post "TiXmlDocument::ErrorRow allways gives one", I've tried setting the SetTabSize() and it didn't work.

    Thank you
    // John-Philip

     
    • Lee Thomason

      Lee Thomason - 2004-05-21

      Odd. If you have a small test cases, submit it to "bugs"

      thanks!
      lee

       
    • John-Philip Leonard Johansson

      Hi!

      I've been working on my code. And now I have separated the classes that are most essential. I don't think I can cut out any more content, as I'm construction a I/O binder (save and load works the same) for XML on top of TinyXML. So my small test project is probably kinda big =/ I'll submit it to the "bugs" section as you requested.

      In the test project, as I create/read the XML file I print out the current element's name and location. always 1,1. No matter what element, root or root child... It's the same in bigger docs.

       
    • John-Philip Leonard Johansson

      Hi.. I had my Internet Explorer window open on the report bugg page, and I reloaded to see if you had answered. And the darn thing just posted my bug report again! So there's two now, sorry about that =)

       

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.