Re: xml tags interfere with php tags

From: Date: Wed, 01 Sep 2004 19:21:29 +0000
Subject: Re: xml tags interfere with php tags
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-195451@lists.php.net to get a copy of this message
How do I get an xml tag to work with a php script? <?xml version="1.0"?> php is trying to parse that.
<?= '<'.'?xml version="1.0"?'.'>' ?> ugly, huh? I'm not sure if there is a better way, but I use the above to prevent erroneous PHP parsing of xml declarations regardless of short_open_tags setting, and to keep my text editor's syntax highlighting from being fooled. ---------------------------------------------------------------- michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html


« previous php.general (#195451) next »