views:

51

answers:

3

I'm looking for docs on the "official" way to escape stuff in XML. Like the full list of the "<" constructs (whatever they are called) and how to use them.


I'm not asking for how to do it, just the official docs (or a good, reliable and correct tutorial).

+1  A: 

They're called "entities": see for example this List of XML and HTML character entity references.

ChrisW
The "how to" bit I'm looking for is any gotchas and corner cases that aren't apparent from a simple understanding. In short, all thing thing I should know, but don't known that I don't know.
BCS
+1  A: 

http://www.w3.org/TR/REC-xml/#syntax, third paragraph.

phihag
Bingo !
BCS
There are two Bingo buttons to the left, one shaped as an arrow upwards and the other as a green check mark. Just saying ;)
phihag
Now that I've checked that it has what I need (not just looks like it does)... :D
BCS
+1  A: 

If you're going to be doing a lot of detailed work with XML, the annotated XML spec is both authoritative and insightful. It's like the DVD commentary for the XML spec!

Ned Batchelder