[gxml] * make Document's get_elements_by_tag_name use NodeList



commit abd2f9a42f961a880f8eb6357236b8286fcdf091
Author: Richard Schwarting <aquarichy gmail com>
Date:   Mon Jul 25 17:17:07 2011 -0400

    * make Document's get_elements_by_tag_name use NodeList

 gxml/Document.vala |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gxml/Document.vala b/gxml/Document.vala
index c3199a1..28e549e 100644
--- a/gxml/Document.vala
+++ b/gxml/Document.vala
@@ -37,8 +37,11 @@ namespace GXml.Dom {
 	}
 
 	/**
-	 * Represents an XML Document as a tree of nodes. The Document has a document element, which is the root of the tree. A Document can have its type defined by a DocumentType.
-	 * For more, see: [[http://www.w3.org/TR/DOM-Level-1/level-one-core.html#i-Document]]
+	 * Represents an XML Document as a tree of nodes. The Document
+	 * has a document element, which is the root of the tree. A
+	 * Document can have its type defined by a DocumentType. For
+	 * more, see:
+	 * [[http://www.w3.org/TR/DOM-Level-1/level-one-core.html#i-Document]]
 	 */
 	public class Document : XNode {
 		/** Private properties */
@@ -438,10 +441,8 @@ namespace GXml.Dom {
 		 * the document.
 		 */
 		// TODO: make that last statement true.
-		public List<XNode> get_elements_by_tag_name (string tag_name) {
-			// TODO: return a NodeList
+		public NodeList get_elements_by_tag_name (string tag_name) {
 			// TODO: does this ensure that the root element is also included?
-			// TODO: DO NOT return a separate list, we need to return the live list
 			// http://www.w3.org/TR/DOM-Level-1/level-one-core.html
 			return this.document_element.get_elements_by_tag_name (tag_name);
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]