(self, input)
| 185 | return self.parse(input) |
| 186 | |
| 187 | def parse(self, input): |
| 188 | options = copy.copy(self._options) |
| 189 | options.filter = self.filter |
| 190 | options.errorHandler = self.errorHandler |
| 191 | fp = input.byteStream |
| 192 | if fp is None and input.systemId: |
| 193 | import urllib.request |
| 194 | fp = urllib.request.urlopen(input.systemId) |
| 195 | return self._parse_bytestream(fp, options) |
| 196 | |
| 197 | def parseWithContext(self, input, cnode, action): |
| 198 | if action not in self._legal_actions: |