the mechanism for associating an xml document with a schema varies according to the schema language. the association may be achieved via markup within the xml document itself, or via some external means.