
example.vala:7.17-7.31: error: `GXml.Document' is not a class, struct, or error code
	Document doc = new Document ();
	               ^^^^^^^^^^^^^^^
example.vala:8.10-8.48: error: Assignment: Cannot convert from `GXml.Node' to `GXml.Element?'
	Element root = doc.create_element ("Bookshelf");
	        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
example.vala:9.2-9.17: error: The name `append_child' does not exist in the context of `GXml.Document?'
	doc.append_child (root);
	^^^^^^^^^^^^^^^^
example.vala:10.10-10.45: error: Assignment: Cannot convert from `GXml.Node' to `GXml.Element?'
	Element owner = doc.create_element ("Owner");
	        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
example.vala:11.2-11.5: error: The name `root' does not exist in the context of `create_a_document'
	root.append_child (owner);
	^^^^
example.vala:12.2-12.6: error: The name `owner' does not exist in the context of `create_a_document'
	owner.set_attribute ("fullname", "John Green");
	^^^^^
example.vala:14.10-14.45: error: Assignment: Cannot convert from `GXml.Node' to `GXml.Element?'
	Element books = doc.create_element ("Books");
	        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
example.vala:15.2-15.5: error: The name `root' does not exist in the context of `create_a_document'
	root.append_child (books);
	^^^^
example.vala:18.11-18.44: error: Assignment: Cannot convert from `GXml.Node' to `GXml.Element?'
		Element book = doc.create_element ("Book");
		        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
example.vala:19.3-19.6: error: The name `book' does not exist in the context of `create_a_document'
		book.set_attribute ("author", authors[i]);
		^^^^
example.vala:20.3-20.6: error: The name `book' does not exist in the context of `create_a_document'
		book.set_attribute ("title", titles[i]);
		^^^^
example.vala:21.3-21.7: error: The name `books' does not exist in the context of `create_a_document'
		books.append_child (book);
		^^^^^
example.vala:24.45-24.67: error: 2 extra arguments for `string GXml.Node.to_string ()'
	stdout.printf ("create_a_document:\n%s\n", doc.to_string (true, 8));
	                                           ^^^^^^^^^^^^^^^^^^^^^^^
example.vala:8.17-8.48: warning: unhandled error `GLib.Error'
	Element root = doc.create_element ("Bookshelf");
	               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
example.vala:10.18-10.45: warning: unhandled error `GLib.Error'
	Element owner = doc.create_element ("Owner");
	                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
example.vala:14.18-14.45: warning: unhandled error `GLib.Error'
	Element books = doc.create_element ("Books");
	                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
example.vala:18.18-18.44: warning: unhandled error `GLib.Error'
		Element book = doc.create_element ("Book");
		               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
example.vala:41.12-41.31: error: The name `from_string' does not exist in the context of `GXml.Document'
	doc = new Document.from_string (xml);
	          ^^^^^^^^^^^^^^^^^^^^
example.vala:42.59-42.81: error: 2 extra arguments for `string GXml.Node.to_string ()'
	stdout.printf ("create_a_document_from_a_string:\n%s\n", doc.to_string (true, 8));
	                                                         ^^^^^^^^^^^^^^^^^^^^^^^
example.vala:50.12-50.30: error: The name `from_gfile' does not exist in the context of `GXml.Document'
	doc = new Document.from_gfile (f, can);
	          ^^^^^^^^^^^^^^^^^^^
example.vala:51.57-51.79: error: 2 extra arguments for `string GXml.Node.to_string ()'
	stdout.printf ("create_a_document_from_a_file:\n%s\n", doc.to_string (true, 8));
	                                                       ^^^^^^^^^^^^^^^^^^^^^^^
example.vala:57.12-57.29: error: The name `from_path' does not exist in the context of `GXml.Document'
	doc = new Document.from_path ("bookshelf.xml");
	          ^^^^^^^^^^^^^^^^^^
example.vala:58.57-58.79: error: 2 extra arguments for `string GXml.Node.to_string ()'
	stdout.printf ("create_a_document_from_a_path:\n%s\n", doc.to_string (true, 8));
	                                                       ^^^^^^^^^^^^^^^^^^^^^^^
example.vala:64.12-64.29: error: The name `from_path' does not exist in the context of `GXml.Document'
	doc = new Document.from_path ("bookshelf.xml");
	          ^^^^^^^^^^^^^^^^^^
example.vala:65.2-65.17: error: The name `save_to_path' does not exist in the context of `GXml.Document?'
	doc.save_to_path ("bookshelf2.xml");
	^^^^^^^^^^^^^^^^
Compilation failed: 21 error(s), 4 warning(s)
