ended structure of document