#490 EndElement callback missing

Not a Bug
closed-works-for-me
nobody
None
5
2010-08-05
2010-08-04
Jens Lorenz
No

Hello,

I have some troubles on using the eXpat 2.0.1.

I registered via the function XML_SetElementHandler() two callback functions.

In following cases the end callback of the TAG "ELEM" is missing...
<RULE><ELEM TYPE="BLA" SETUP="1" />
</RULE>

<RULE><ELEM TYPE="BLA" SETUP="1" /></RULE>

...whereas this works perfectly
<RULE>
<ELEM TYPE="BLA" SETUP="1" />
</RULE>

Do I something wrong or is my expectation not correct?

Best Regards
Jens

Discussion

  • Fred L. Drake, Jr.

    Please provide a minimal example program which exhibits this behavior.

     
  • Jens Lorenz

    Jens Lorenz - 2010-08-05
    • milestone: --> Not a Bug
    • status: open --> closed-works-for-me
     
  • Jens Lorenz

    Jens Lorenz - 2010-08-05

    My fault. I stopped the parser with suspend flag within the start callback of the ELEM TAG and deregister the EndElementHandler. Afterwards I resume the parsing and for this case the end callback doesn't happen.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks