[jdev] What to do with Invalid XML Characters

Norman Rasmussen norman at rasmussen.co.za
Sun Aug 12 07:48:52 CDT 2007

XML defines the list of valid characters to be:
   #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]

Which of the following should an IM application perform if the user
(attempts to) enter characters outside of this range?

1) Reject the entry at the UI level - have to check both keypresses,
and clipboard paste
2) UI should filter invalid chars before sending data to xmpp object layer
3) xmpp object layer should filter/reject data
4) xmpp stream layer should filter/reject xmpp object

Also any ideas on the quickest way to perform these operations would
be welcomed.



- Norman Rasmussen
 - Email: norman at rasmussen.co.za
 - Home page: http://norman.rasmussen.co.za/

More information about the JDev mailing list