svg2.sax 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. SAX.setDocumentLocator()
  2. SAX.startDocument()
  3. SAX.internalSubset(svg, -//W3C//DTD SVG April 1999//EN, http://www.w3.org/Graphics/SVG/svg-19990412.dtd)
  4. SAX.externalSubset(svg, -//W3C//DTD SVG April 1999//EN, http://www.w3.org/Graphics/SVG/svg-19990412.dtd)
  5. SAX.startElement(svg, width='268px', height='207px')
  6. SAX.characters(
  7. , 1)
  8. SAX.startElement(g, style='stroke: #000000')
  9. SAX.characters(
  10. , 5)
  11. SAX.startElement(path, d=' M 29 28 ')
  12. SAX.endElement(path)
  13. SAX.characters(
  14. , 5)
  15. SAX.startElement(path, d=' L 19 74 ')
  16. SAX.endElement(path)
  17. SAX.characters(
  18. , 2)
  19. SAX.endElement(g)
  20. SAX.characters(
  21. , 2)
  22. SAX.startElement(g, style='stroke: #800040')
  23. SAX.characters(
  24. , 5)
  25. SAX.startElement(polyline, verts=' 32,100 72,50 90,82 73,16 120,64 152,9 177,107')
  26. SAX.endElement(polyline)
  27. SAX.characters(
  28. , 2)
  29. SAX.endElement(g)
  30. SAX.characters(
  31. , 2)
  32. SAX.startElement(g, style='stroke: #000000')
  33. SAX.characters(
  34. , 2)
  35. SAX.endElement(g)
  36. SAX.characters(
  37. , 2)
  38. SAX.startElement(g, style='stroke: #0000ff')
  39. SAX.characters(
  40. , 5)
  41. SAX.startElement(rect, x='30', y='101', width='51', height='33')
  42. SAX.endElement(rect)
  43. SAX.characters(
  44. , 1)
  45. SAX.endElement(g)
  46. SAX.characters(
  47. , 2)
  48. SAX.startElement(g, style='fill: #0000ff')
  49. SAX.characters(
  50. , 5)
  51. SAX.startElement(ellipse, cx='182', cy='127', major='37', minor='31', angle='90')
  52. SAX.endElement(ellipse)
  53. SAX.characters(
  54. , 1)
  55. SAX.endElement(g)
  56. SAX.characters(
  57. , 2)
  58. SAX.startElement(g, style='fill: #ff0000')
  59. SAX.characters(
  60. , 5)
  61. SAX.startElement(polyline, verts=' 78,180 76,151 131,149 136,182 135,182 134,183 127,185 117,186 109,192 104,194 98,199 96,200 95,201 94,202 92,202 85,202 70,200 54,199 47,198 46,197 45,197 37,195 26,193 17,187 9,181 8,181 7,176 6,175 6,173 6,172 6,170 8,164 8,163 8,162 9,162 10,162 11,162 13,162 20,162 26,162 27,162 28,162 30,162 30,163 31,163 32,164 34,166 35,166 36,167 36,168 37,169 38,169 39,169 41,170 43,170 45,170 47,170 49,170 50,168 50,161 50,160 50,159 47,162 78,180')
  62. SAX.endElement(polyline)
  63. SAX.characters(
  64. , 5)
  65. SAX.startElement(g)
  66. SAX.characters(
  67. , 6)
  68. SAX.startElement(desc)
  69. SAX.characters( Java Font definition:Dialog 0, 30)
  70. SAX.endElement(desc)
  71. SAX.characters(
  72. , 5)
  73. SAX.endElement(g)
  74. SAX.characters(
  75. , 4)
  76. SAX.startElement(g)
  77. SAX.characters(
  78. , 6)
  79. SAX.startElement(desc)
  80. SAX.characters( Java Font definition:Helvetic, 33)
  81. SAX.endElement(desc)
  82. SAX.characters(
  83. , 5)
  84. SAX.endElement(g)
  85. SAX.characters(
  86. , 1)
  87. SAX.endElement(g)
  88. SAX.characters(
  89. , 2)
  90. SAX.startElement(g, style='stroke: #000000')
  91. SAX.characters(
  92. , 5)
  93. SAX.startElement(text, x='188', y='36')
  94. SAX.characters(this is text, 12)
  95. SAX.endElement(text)
  96. SAX.characters(
  97. , 1)
  98. SAX.endElement(g)
  99. SAX.characters(
  100. , 2)
  101. SAX.startElement(g, style='stroke: #000000')
  102. SAX.characters(
  103. , 5)
  104. SAX.startElement(g)
  105. SAX.characters(
  106. , 6)
  107. SAX.startElement(desc)
  108. SAX.characters( Java Font definition:Dialog 0, 30)
  109. SAX.endElement(desc)
  110. SAX.characters(
  111. , 5)
  112. SAX.endElement(g)
  113. SAX.characters(
  114. , 4)
  115. SAX.startElement(g)
  116. SAX.characters(
  117. , 6)
  118. SAX.startElement(desc)
  119. SAX.characters( Java Font definition:Helvetic, 35)
  120. SAX.endElement(desc)
  121. SAX.characters(
  122. , 5)
  123. SAX.endElement(g)
  124. SAX.characters(
  125. , 1)
  126. SAX.endElement(g)
  127. SAX.characters(
  128. , 2)
  129. SAX.startElement(g, style='stroke: #008080')
  130. SAX.characters(
  131. , 5)
  132. SAX.startElement(text, x='176', y='85')
  133. SAX.characters(sadfsadfsad, 11)
  134. SAX.endElement(text)
  135. SAX.characters(
  136. , 1)
  137. SAX.endElement(g)
  138. SAX.characters(
  139. , 2)
  140. SAX.startElement(g, style='stroke: #000000')
  141. SAX.characters(
  142. , 2)
  143. SAX.endElement(g)
  144. SAX.characters(
  145. , 2)
  146. SAX.startElement(g, style='fill: #800040')
  147. SAX.characters(
  148. , 5)
  149. SAX.startElement(ellipse, cx='208', cy='180', major='45', minor='31', angle='0')
  150. SAX.endElement(ellipse)
  151. SAX.characters(
  152. , 1)
  153. SAX.endElement(g)
  154. SAX.characters(
  155. , 2)
  156. SAX.startElement(g, style='stroke: #000000')
  157. SAX.characters(
  158. , 2)
  159. SAX.endElement(g)
  160. SAX.characters(
  161. , 2)
  162. SAX.startElement(g, style='fill: #ffffff')
  163. SAX.characters(
  164. , 5)
  165. SAX.startElement(g)
  166. SAX.characters(
  167. , 6)
  168. SAX.startElement(desc)
  169. SAX.characters( Java Font definition:Dialog 7, 32)
  170. SAX.endElement(desc)
  171. SAX.characters(
  172. , 5)
  173. SAX.endElement(g)
  174. SAX.characters(
  175. , 4)
  176. SAX.startElement(g)
  177. SAX.characters(
  178. , 6)
  179. SAX.startElement(desc)
  180. SAX.characters( Java Font definition:Dialog 7, 32)
  181. SAX.endElement(desc)
  182. SAX.characters(
  183. , 5)
  184. SAX.endElement(g)
  185. SAX.characters(
  186. , 1)
  187. SAX.endElement(g)
  188. SAX.endElement(svg)
  189. SAX.endDocument()