Can 'ref' and 'type' be used interchangeably in XML Schema document? What is the difference between "ref" and "type" while writing XML Schema? How can you explain XML to a layman? What is a crate and schema?