>What Wikipedia doesn't immediately convey is that XML is horribly complex
So for example, namespaces can be declared after they are used. They apply to the entire tag they are declared in, so you must buffer the tag. Tags can be any length...
You can also declare entities at the beginning of the file (in a DOCTYPE statement), or externally in the DTD file.
Plus characters can be captured as decimal or hexadecimal entities.
So for example, namespaces can be declared after they are used. They apply to the entire tag they are declared in, so you must buffer the tag. Tags can be any length...