]> err.no Git - sope/blobdiff - sope-xml/DOM/README
fixed some comments
[sope] / sope-xml / DOM / README
index b4eb458acafb41ab96a39e810f39c0a9a8d96578..deeaea948bc12f2d352ce05f2a3cc683dffc6c3d 100644 (file)
@@ -1,5 +1,3 @@
-# $Id$
-
 How to build a DOM tree ?
 =========================
 
@@ -18,6 +16,23 @@ How to build a DOM tree ?
   id<DOMDocument> document
     = [builder buildFromSource:@"myfile.xml"];
 
+
+KVC
+===
+
+You can navigate the DOM tree with standard key/value coding. The NGDOMDocument
+will treat all KVC keys starting with a "/" as query path expressions.
+
+Samples:
+  document.documentElement             => root DOMElement
+  document.documentElement.childNodes  => NSArray containing the root children
+  document./uid                        => DOMElement or array! matching 'uid'
+  document./uid.textValue              => text-value of 'uid' element
+
+  element.@value.textValue    => text-value of 'value' attribute of element
+  element./subnode.textValue  => lookup subnode (strips of the /) using QP
+
+
 Some info on classes ...
 ========================