Re: XML Processing Instruction ( was " <? PHP vs. <?" )

From: Date: Mon, 22 Jan 2001 01:40:01 +0000
Subject: Re: XML Processing Instruction ( was " <? PHP vs. <?" )
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-35932@lists.php.net to get a copy of this message
If I am not mistaken XML tags needs to be identifed. So <? doesn't mean much in XML... I like both sintaxes and in my company we only use <? ?>... Maybe we could vote the use or not of this feature? Rom ----- Original Message ----- From: Brian White <bwhite@steptwo.com.au> To: <teo@digiro.net>; <php-general@lists.php.net> Sent: Sunday, January 21, 2001 5:03 PM Subject: [PHP] XML Processing Instruction ( was " <? PHP vs. <?" ) At 10:50 AM 1/19/12 +0200, Teodor Cimpoesu wrote: >I was refering to whole story of using `<?' in xml docs. > >-- teodor The "<?"...">" construct comes from SGML/XML - it is called a "Processing Instruction"(PI). It's general purpose is to allow application to leave pieces of information in the XML that aren't strictly part of the content but allow it to help process it. Classic use of it to put in page formatting information into content ( pagebreaks, page no's etc ) that is only relevant to the paper production system. Part of the problems is that multiple different applications can use PI's, so they need to be able to tell which ones are their's - therefore the first thing that should go in a PI is some kind of indication as to which application requires it. Therefore: Always "<?php" is a much better idea than "<?" Regs Brian White ------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy http://www.steptwo.com.au/ bwhite@steptwo.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#35932) next »