655
|
1 |
=head1 NAME
|
|
2 |
|
|
3 |
XML::DOM::ProcessingInstruction - An XML processing instruction in XML::DOM
|
|
4 |
|
|
5 |
=head1 DESCRIPTION
|
|
6 |
|
|
7 |
XML::DOM::ProcessingInstruction extends L<XML::DOM::Node>.
|
|
8 |
|
|
9 |
It represents a "processing instruction", used in XML as a way to keep
|
|
10 |
processor-specific information in the text of the document. An example:
|
|
11 |
|
|
12 |
<?PI processing instruction?>
|
|
13 |
|
|
14 |
Here, "PI" is the target and "processing instruction" is the data.
|
|
15 |
|
|
16 |
=head2 METHODS
|
|
17 |
|
|
18 |
=over 4
|
|
19 |
|
|
20 |
=item getTarget
|
|
21 |
|
|
22 |
The target of this processing instruction. XML defines this
|
|
23 |
as being the first token following the markup that begins the
|
|
24 |
processing instruction.
|
|
25 |
|
|
26 |
=item getData and setData (data)
|
|
27 |
|
|
28 |
The content of this processing instruction. This is from the
|
|
29 |
first non white space character after the target to the
|
|
30 |
character immediately preceding the ?>.
|
|
31 |
|
|
32 |
=back
|