The workshop is designed to help you anticipate possible questions, review what you've learned, and begin putting your knowledge into practice.
What should be the opening line of a valid XML document?
Does the following code put your XML content into a new DOM document?
$dom = new DomDocument;
What code would be used to load the contents of a file called my.xml into a SimpleXML object called $myData?
No, it just creates a DOM document referenced as $dom. To load the content you must also use something like:
$myData = simplexml_load_File("my.xml");