File: StreamListener.html

package info (click to toggle)
librexml-ruby 1.2.5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 792 kB
  • ctags: 655
  • sloc: ruby: 3,778; xml: 1,609; java: 109; makefile: 43
file content (162 lines) | stat: -rw-r--r-- 3,208 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<STYLE TYPE="text/css">@import "style.css";</STYLE>
</HEAD>
<BODY>
<H1>module StreamListener</H1>
<HR>
   A template for stream parser listeners. Note that the declarations (attlistdecl, elementdecl, etc) are trivially processed; REXML doesn't yet handle doctype entity declarations, so you  have to parse them out yourself.
  
  
  
  
  
  
  
  
  
  
  
  
  
<H2>Methods</H2>
<UL>
<LI>
<A HREF="#N1D">attlistdecl</A>
</LI>
<LI>
<A HREF="#N31">cdata</A>
</LI>
<LI>
<A HREF="#N15">comment</A>
</LI>
<LI>
<A HREF="#N19">doctype</A>
</LI>
<LI>
<A HREF="#N21">elementdecl</A>
</LI>
<LI>
<A HREF="#N2D">entity</A>
</LI>
<LI>
<A HREF="#N25">entitydecl</A>
</LI>
<LI>
<A HREF="#N11">instruction</A>
</LI>
<LI>
<A HREF="#N29">notationdecl</A>
</LI>
<LI>
<A HREF="#N9">tag_end</A>
</LI>
<LI>
<A HREF="#N5">tag_start</A>
</LI>
<LI>
<A HREF="#ND">text</A>
</LI>
<LI>
<A HREF="#N35">xmldecl</A>
</LI>
</UL>
<HR>
<H2>Methods</H2>
<DIV CLASS="method">
<A NAME="N1D">
<H3>attlistdecl</H3>
</A>
<HR>
     If a doctype includes an ATTLIST declaration, it will cause this method to be called.  The content is the declaration itself, unparsed. EG, &lt;!ATTLIST el attr CDATA #REQUIRED&gt; will come to this method as "el attr CDATA #REQUIRED".  This is the same for all of the .*decl methods.
  </DIV>
<DIV CLASS="method">
<A NAME="N31">
<H3>cdata</H3>
</A>
<HR>
     Called when &lt;![CDATA[ ... ]]&gt; is encountered in a document. 
  </DIV>
<DIV CLASS="method">
<A NAME="N15">
<H3>comment</H3>
</A>
<HR>
     Called when a comment is encountered. 
  </DIV>
<DIV CLASS="method">
<A NAME="N19">
<H3>doctype</H3>
</A>
<HR>
     Handles a doctype declaration. Any attributes of the doctype which are not supplied will be nil.  # EG, &lt;!DOCTYPE me PUBLIC "foo" "bar"&gt; 
  </DIV>
<DIV CLASS="method">
<A NAME="N21">
<H3>elementdecl</H3>
</A>
<HR>
     &lt;!ELEMENT ...&gt;
  </DIV>
<DIV CLASS="method">
<A NAME="N2D">
<H3>entity</H3>
</A>
<HR>
     Called when %foo; is encountered in a doctype declaration. 
  </DIV>
<DIV CLASS="method">
<A NAME="N25">
<H3>entitydecl</H3>
</A>
<HR>
     &lt;!ENTITY ...&gt;
  </DIV>
<DIV CLASS="method">
<A NAME="N11">
<H3>instruction</H3>
</A>
<HR>
     Called when an instruction is encountered.  EG: &lt;?xsl sheet='foo'?&gt; 
  </DIV>
<DIV CLASS="method">
<A NAME="N29">
<H3>notationdecl</H3>
</A>
<HR>
     &lt;!NOTATION ...&gt;
  </DIV>
<DIV CLASS="method">
<A NAME="N9">
<H3>tag_end</H3>
</A>
<HR>
     Called when the end tag is reached.  In the case of &lt;tag/&gt;, tag_end will be called immidiately after tag_start 
  </DIV>
<DIV CLASS="method">
<A NAME="N5">
<H3>tag_start</H3>
</A>
<HR>
     Called when a tag is encountered. 
  </DIV>
<DIV CLASS="method">
<A NAME="ND">
<H3>text</H3>
</A>
<HR>
     Called when text is encountered in the document 
  </DIV>
<DIV CLASS="method">
<A NAME="N35">
<H3>xmldecl</H3>
</A>
<HR>
     Called when an XML PI is encountered in the document. EG: &lt;?xml version="1.0" encoding="utf"?&gt; 
  </DIV>
<DIV CLASS="footer">
			API documentation generated by <A HREF="http://www.germane-software.com/~ser/Software/api2xml">API2XML</A>
</DIV>
</BODY>
</HTML>