most xml elements are delimited by opening tag and closing tag the tag above is an opening tag its matching closing tag looks like this the slash just before the tag name means that it is closing tag an opening and closing tag may have text or other xml elements in between the two tags so xml documents may contain xml elements nested as deeply as necessary depending on the data you are trying to encode each xml element may have attributes associated with it for instanceconsider an xml element that encapsulates the information needed to do goto graphics command to complete goto command we need the and coordinatesthe width of the lineand the pen color here is an example of encoding that information in xml format goto in this example the attributes are xywidthand color each attribute is mapped to its value as shown above the goto text is the text that appears between the opening and closing tags that text is sometimes called the child data by encoding an entire graphics commands input file in xml format we eliminate some of the dependence between the draw program and its data except for the xml format ( the grammarthe contents of the xml file are completely up to the programmer or programmers using the data the file in sect is an example of the truck picture' xml input file the truck xml file beginfill circle endfill penup goto pendown beginfill circle endfill penup goto pendown beginfill goto goto goto goto goto this copy belongs to 'acha