[Expat-discuss] Re: empty tags
Carlos Pereira
carlos at pehoe.civil.ist.utl.pt
Fri Nov 7 06:38:21 EST 2003
>I know there was a discussion of this some time ago, but I would like to
>check something.
>When the parser comes across a tag like <plus/>, which function gets
>called? Is <plus/> treated as a start tag, an end tag, both a start and end
>tag, or character data?
This case is treated EXACTLY as if you had <plus></plus>,
so the start_element function is called first, then the
end_element is called. In fact your code doesn't even
know whether the data came from <plus/> or <plus></plus>.
This is somewhere in the manual ;-)
Carlos
More information about the Expat-discuss
mailing list