Create a processing instruction using the pi_factory. *target* is the target name of the processing instruction. *text* is the data of the processing instruction, or ''.
(self, target, text=None)
| 1501 | self._comment_factory, self.insert_comments, text) |
| 1502 | |
| 1503 | def pi(self, target, text=None): |
| 1504 | """Create a processing instruction using the pi_factory. |
| 1505 | |
| 1506 | *target* is the target name of the processing instruction. |
| 1507 | *text* is the data of the processing instruction, or ''. |
| 1508 | """ |
| 1509 | return self._handle_single( |
| 1510 | self._pi_factory, self.insert_pis, target, text) |
| 1511 | |
| 1512 | def _handle_single(self, factory, insert, *args): |
| 1513 | elem = factory(*args) |