]> err.no Git - sope/blob - sope-xml/DOM/README
renamed packages as discussed in the developer list
[sope] / sope-xml / DOM / README
1 # $Id$
2
3 How to build a DOM tree ?
4 =========================
5
6 1. get a factory
7
8   DOMBuilderFactory *factory
9     = [DOMBuilderFactory standardDOMBuilderFactory];
10
11 2. get a builder for your resource type
12
13   id<DOMBuilder> builder
14     = [factory createDOMBuilderForMimeType:@"text/xml"];
15
16 3. parse what you have:
17
18   id<DOMDocument> document
19     = [builder buildFromSource:@"myfile.xml"];
20
21 Some info on classes ...
22 ========================
23
24 Nodes with children
25
26   Document
27   DocumentFragment
28   EntityReference
29   Element
30   Attr
31   Entity
32
33 Nodes without children
34
35   DocumentType
36   ProcessingInstruction
37   Comment
38   Text
39   CDATASection
40   Notation
41
42 Nodes with parent
43
44   DocumentType
45   EntityReference
46   Element
47   ProcessingInstruction
48   Comment
49   Text
50   CDATASection
51
52 Nodes without parent
53
54   Document
55   DocumentFragment
56   Attr
57   Entity
58   Notation