matth has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks,

I am building an XML template and it has been suggested that I should use XML keys instead of XML ids. The build is from the output of a relational database and therefore I suspect that it would not in theory be a problem using keys. Is there, however, a clear and easy case for conversion of ids to keys? At the moment I am using the perl module XML Simple. I won't be doing anything too advanced with those modules. I am however keen that I can justify using ids instead of keys (or the other way around).

Replies are listed 'Best First'.
Re: XML keys and ids
by adrianh (Chancellor) on Jan 07, 2003 at 16:55 UTC

    If your stylesheet needs to lookup one value in terms of another then keys will probably be cleaner than ids.

    There is an article covering this on XML.com that might be worth reading.