Thursday 21 October 2010

Tutorial on XML

XML Syntax
An XML document must have a single root element that encloses all other elements. This means that the fragment below can't be a well-formed XML document as it stands:


Neddie Seagoon
12 High Road
Sometown
AB12 3CD


Jim Moriarty
45 Low Road
Someplace
EF56 7GH


Q. How could you correct the fragment above so that it becomes a well-formed XML document?

1 comment:

  1. The Fragment has 2 Root elements which is not a right syntax format for XML Document. To correct the fragment i have to remove the starting element and the end element that is being embodied in the middle of the XML Document. By doing so the fragment becomes a well-formed XML Document

    ReplyDelete