A structured document is an electronic document where some method of embedded coding, such as SGML or XML markup, is used to give the whole, and parts, of the document various structural meanings according to a Document Type Definition (DTD) or other schema. A structured document whose markup doesn’t break the schema it is designed to conform to and which obeys the syntax rules of its markup language is “well-formed”.