given. Returns an element instance, representing a processing instruction.
Note that :class:`XMLParser` skips over processing instructions
- in the input instead of creating comment objects for them. An
+ in the input instead of creating PI objects for them. An
:class:`ElementTree` will only contain processing instruction nodes if
they have been inserted into to the tree using one of the
:class:`Element` methods.
.. method:: pi(target, text)
- Creates a comment with the given *target* name and *text*. If
- ``insert_pis`` is true, this will also add it to the tree.
+ Creates a process instruction with the given *target* name and *text*.
+ If ``insert_pis`` is true, this will also add it to the tree.
.. versionadded:: 3.8