• Login or register

discuss.effbot.org

  • Popular
  • Recent
  • 1 point by effbot 1 year ago on General Discussion for effbot.org 1 child

    Thanks for the sample. I'll look into this as soon as I find the time.

    Update: Your sample code is setting a class attribute (Myfile.isread) instead of an instance attribute (self.isread). Since class attributes are shared between all instances of a class, the second Myfile instance will always return an empty string -- which causes the second parser to raise a "ParseError: no element found" exception. If I fix that, both parsers successfully parse that XML snippet.

    • parent
    • reply
    • 1 point by MarcusSchorn 1 year ago 0 children

      Opps, you are right. I have originally used it in the running system. And cutted some XML away. I will check again.

      • link
      • reply
  • Widget
  • Recent Comments
  • Leaders
Powered by