viernes, 23 de julio de 2010

Aprendiendo XML

Mientras se descargaban los paquetes faltantes con el synaptic, me puse a estudiar un poco más sobre XML y me di cuenta de un dato importante:

Entity References

Some characters have a special meaning in XML.

If you place a character like "<" inside an XML element, it will generate an error because the parser interprets it as the start of a new element.

This will generate an XML error:
if salary < 1000 then

To avoid this error, replace the "<" character with an entity reference:
if salary < 1000 then

There are 5 predefined entity references in XML:
< < less than
> > greater than
& & ampersand
' ' apostrophe
" " quotation mark

Note: Only the characters "<" and "&" are strictly illegal in XML. The greater than character is legal, but it is a good habit to replace it.

Nota: La metadata es la data que habla sobre otra data >.<

No hay comentarios:

Publicar un comentario