Discussion:
[Expat-bugs] [ expat-Bugs-3039307 ] EndElement callback missing
SourceForge.net
2010-08-04 09:31:29 UTC
Permalink
Bugs item #3039307, was opened at 2010-08-04 11:31
Message generated for change (Tracker Item Submitted) made by jenslorenz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=3039307&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jens Lorenz (jenslorenz)
Assigned to: Nobody/Anonymous (nobody)
Summary: EndElement callback missing

Initial Comment:
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

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=3039307&group_id=10127
SourceForge.net
2010-08-04 10:58:44 UTC
Permalink
Bugs item #3039307, was opened at 2010-08-04 05:31
Message generated for change (Comment added) made by fdrake
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=3039307&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jens Lorenz (jenslorenz)
Assigned to: Nobody/Anonymous (nobody)
Summary: EndElement callback missing

Initial Comment:
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

----------------------------------------------------------------------
Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2010-08-04 06:58

Message:
Please provide a minimal example program which exhibits this behavior.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=3039307&group_id=10127
SourceForge.net
2010-08-05 06:57:10 UTC
Permalink
Bugs item #3039307, was opened at 2010-08-04 11:31
Message generated for change (Comment added) made by jenslorenz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=3039307&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Not a Bug
Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Jens Lorenz (jenslorenz)
Assigned to: Nobody/Anonymous (nobody)
Summary: EndElement callback missing

Initial Comment:
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

----------------------------------------------------------------------
Comment By: Jens Lorenz (jenslorenz)
Date: 2010-08-05 08:57

Message:
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.

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2010-08-04 12:58

Message:
Please provide a minimal example program which exhibits this behavior.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=3039307&group_id=10127
Loading...