Re: [Bluez-devel] Proposed DTD

Denis KENZIOR
2006-10-24T07:08:52Z

Marcel,

> I am also not sure that the encoding attribute is needed. If you wanna
> encode binary data in text elements (at the moment only HID does this)
> then you can use \000 style encoding to do so.

Perhaps you mean the '&#00;' style escapes? This is feasible, except that
expat assumes attributes do not contain raw data (it returns an array of
const char * and assumes it is null terminated). Thus we would need to
switch text* (and perhaps url*?) elements to be something like:

<!ELEMENT text (#PCDATA)>

or find another parser.

-Denis