> * Sarah Jelinek <Sarah.Jelinek at Sun.COM> [2010-02-02 18:23]: > > I think that changing the parser every time we add an attr for a > > node isn't a great answer either. > > New attribute types always require something to change--presumably to > introduce them, if nothing else. Placing type handling in your > parser/semantic handler allows you to choose whether or not you want > unknown attribute types to result in an error or a warning. Encoding > the types in the schema removes that choice.
Thanks Stephen, you explained it much better than I could have. The point of XML is to make information machine parseable while preserving as much human-readable metadata as possible. Whether this is by naming elements, or by attribute values, is a case-by-case decision, and ease of use and software maintenance should be taken into account. Regards -- Volker -- ------------------------------------------------------------------------ Volker A. Brandt Consulting and Support for Sun Solaris Brandt & Brandt Computer GmbH WWW: http://www.bb-c.de/~vab/ Am Wiesenpfad 6, 53340 Meckenheim Email: vab at bb-c.de Handelsregister: Amtsgericht Bonn, HRB 10513 Schuhgr??e: 45 Gesch?ftsf?hrer: Rainer J. H. Brandt und Volker A. Brandt