note 46746 added to language.basic-syntax
| From: | mike at skew dot org | Date: | Thu, 21 Oct 2004 23:53:59 +0000 |
| Subject: | note 46746 added to language.basic-syntax | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78916@lists.php.net to get a copy of this message | ||
mart3862 mentions "XML processing instructions" and quotes their syntax from the spec, but
is mistaken in using
<?xml version="1.0" ...?>
as an example. This little bit of markup that appears at the beginning of an XML file is in fact not
a processing instruction at all; it is an "XML declaration" -- or, if it appears in an
entity other than the main document, a "text declaration". All three constructs are
formatted slightly differently, although they all do begin and end with the same.
The difference between a processing instruction, an XML declaration, or a text declaration is more
than just a matter of subtle differences in syntax, though. A processing instruction embodies
exactly two opaque, author-defined pieces of information (a 'target' and an
'instruction') that are considered to be part of the document's logical structure and
that are thus made available to an application by the XML parser. An XML or text declaration, on the
other hand, contains one to three specific pieces of information (version, encoding, standalone
status), each with a well-defined meaning. This info provides cues to the parser to help it know how
to read the file; it is not considered part of the document's logical structure and is not made
available to the application.
----
Manual Page -- http://www.php.net/manual/en/language.basic-syntax.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46746
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46746&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46746&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46746&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46746&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46746&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46746&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46746&report=yes
Search -- http://master.php.net/manage/user-notes.php