Anonymous - 2024-03-22

I am having trouble decoding when the encoded XML has an empty tag.
I am working to a schema that uses empty tags as a sort of Boolean.
The schema calls for a tag like this:

            <flag-tag />

When I encode using the qname "flag-tag" and I encode 'start element' followed immediately by 'end element' like this:

qname.localName = &ELEM_FLAG_TAG;
TRY_CATCH_ENCODE(serialize.startElement(&exiStream, qname, &valueType));
TRY_CATCH_ENCODE(serialize.endElement(&exiStream));

I get no runtime error, but when I decode I do not get a callback with that element name.

If I set #define DEBUG_GENERATE_XML ON in exipConfig.h I see the empty element as:

            <flag-tag></flag-tag>

but I don't see it in my element callback handler function.

Is there a trick I am missing?

David.

David Ross
Senior Software Developer
[cid:2019OmnitronicsLogo_EmailSignature_fb7f6bf8-4d18-44a4-801f-be07db4b4ec6.jpg]

    27 Sarich Court

Osborne Park, WA 6017 | Australia

[cid:linkedinicon_c357871d-51b5-4002-9b55-6676dd3daf71.jpg] https://www.linkedin.com/company/76578/ [cid:fbicon_1cead5e2-8d6e-48aa-97d0-91e48557cc74.jpg] https://www.facebook.com/Omnitronicsworld/ [cid:twittericon_22c540e7-ce1a-46a7-b777-99e2e1d260c4.jpg] https://twitter.com/Omnitronics [cid:youtubeicon_a38e9bcb-6ff9-4c27-a58c-e1544d727779.jpg] https://www.youtube.com/channel/UCqOPAs6oxp-TrHUIX5oRB0w https://www.facebook.com/user_name_here
www.omnitronicsworld.comhttps://www.omnitronicsworld.com
[cid:2024iwceemailsignature_74908328-f4b0-4479-9152-812870f6602c.png]https://www.omnitronicsworld.com/digital-radio-dispatch-location-services/omnicore-enterprise-dispatch/

https://www.omnitronicsworld.com/audio-bridging-interoperability/619sri/

https://www.bapco-show.co.uk/https://www.omnitronicsworld.com/webinar_roip_and_remote_working/https://www.omnitronicsworld.com/eschat-2/