When using XML-based configuration metadata, you use the 'id' and/or 'name'attributes to specify the object
identifier(s). The 'id' attribute allows you to specify exactly one id, and because it is a real XML element ID
attribute, the XML parser is able to do some extra validation when other elements reference the id. As such, it is the preferred way to specify an object id. However, the XML specification does limit the characters which
are legal in XML IDs. This is usually not a constraint, but if you have a need to use one of these special XML characters, or want to introduce other aliases to the object
Comments
Post a Comment