[maemo-developers] Enriching the Application Manager scripting experience

From: Marius Vollmer marius.vollmer at nokia.com
Date: Fri Feb 23 17:38:02 EET 2007
"ext Frantisek Dufka" <dufkaf at seznam.cz> writes:

> <x>
> <y/>
> </x>
>
> <x>
> <y></y>
> </x>
>
> <x>
> </x>
>
> it behaved the same.
>
> I got null (in some Java parser) for all three such cases when parsing
> the value and found the hard way that there was no way to distinguish
> between empty string (sometimes valid value) and missing XML element
> (bug in code creating the XML or completely different meaning).

Hmm, but surely you can use <br/> in XHTML and it will not be ignored,
right?  Maybe you really need a DTD or some such to tell the parser
what to do with empty tags?

More information about the maemo-developers mailing list