module XMLScan::XMLScanner::StrictChar
Private Instance Methods
check_valid_char(code)
click to toggle source
# File lib/xmlscan/xmlchar.rb 93 def check_valid_char(code) 94 unless valid_char? code then 95 wellformed_error "#{code} is not a valid XML character" 96 end 97 end
check_valid_chardata(str)
click to toggle source
# File lib/xmlscan/xmlchar.rb 87 def check_valid_chardata(str) 88 unless valid_chardata? str then 89 parse_error "invlalid XML character is found" 90 end 91 end
check_valid_encoding(str)
click to toggle source
# File lib/xmlscan/xmlchar.rb 105 def check_valid_encoding(str) 106 unless valid_encoding? str then 107 parse_error "#{str} is not a valid XML encoding name" 108 end 109 end
check_valid_name(name)
click to toggle source
# File lib/xmlscan/xmlchar.rb 81 def check_valid_name(name) 82 unless valid_name? name then 83 parse_error "`#{name}' is not valid for XML name" 84 end 85 end
check_valid_pubid(str)
click to toggle source
# File lib/xmlscan/xmlchar.rb 111 def check_valid_pubid(str) 112 unless valid_pubid? str then 113 parse_error "#{str} is not a valid public ID" 114 end 115 end
check_valid_version(str)
click to toggle source
# File lib/xmlscan/xmlchar.rb 99 def check_valid_version(str) 100 unless valid_version? str then 101 parse_error "#{str} is not a valid XML version" 102 end 103 end
on_attr_charref(code, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 201 def on_attr_charref(code, *a) 202 check_valid_char code 203 super 204 end
on_attr_charref_hex(code, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 206 def on_attr_charref_hex(code, *a) 207 check_valid_char code 208 super 209 end
on_attr_entityref(ref, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 196 def on_attr_entityref(ref, *a) 197 check_valid_name ref 198 super 199 end
on_attr_value(str, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 191 def on_attr_value(str, *a) 192 check_valid_chardata str 193 super 194 end
on_attribute(name, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 186 def on_attribute(name, *a) 187 check_valid_name name 188 super 189 end
on_cdata(str, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 156 def on_cdata(str, *a) 157 check_valid_chardata str 158 super 159 end
on_chardata(str, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 151 def on_chardata(str, *a) 152 check_valid_chardata str 153 super 154 end
on_charref(code, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 171 def on_charref(code, *a) 172 check_valid_char code 173 super 174 end
on_charref_hex(code, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 176 def on_charref_hex(code, *a) 177 check_valid_char code 178 super 179 end
on_comment(str, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 140 def on_comment(str, *a) 141 check_valid_chardata str 142 super 143 end
on_doctype(root, pubid, sysid, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 133 def on_doctype(root, pubid, sysid, *a) 134 check_valid_name root 135 check_valid_pubid pubid if pubid 136 check_valid_chardata sysid if sysid 137 super 138 end
on_entityref(ref, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 166 def on_entityref(ref, *a) 167 check_valid_name ref 168 super 169 end
on_etag(name, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 161 def on_etag(name, *a) 162 check_valid_name name 163 super 164 end
on_pi(target, pi, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 145 def on_pi(target, pi, *a) 146 check_valid_name target 147 check_valid_chardata pi 148 super 149 end
on_stag(name, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 181 def on_stag(name, *a) 182 check_valid_name name 183 super 184 end
on_xmldecl_encoding(str, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 123 def on_xmldecl_encoding(str, *a) 124 check_valid_encoding str 125 super 126 end
on_xmldecl_standalone(str, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 128 def on_xmldecl_standalone(str, *a) 129 check_valid_chardata str 130 super 131 end
on_xmldecl_version(str, *a)
click to toggle source
Calls superclass method
# File lib/xmlscan/xmlchar.rb 118 def on_xmldecl_version(str, *a) 119 check_valid_version str 120 super 121 end