View Full Version : "<?ignore" directive
tonyk
11-30-2004, 04:34 PM
let me apologize in advance for what is probably a stupid question, but in one of the dot-lzx files in one of the demos i find the following:
<?ignore
<view ...
</view>
?>
i'm guessing that this is similar to xml comment syntax (<!-- comment -->), but i've never seen it before. is this an lzx directive, an xml directive, a javascript directive, or what?
thanks,
tony.
metasarah
11-30-2004, 09:32 PM
In xml <? ... ?> is a compiler directive and completely ignored by any XML processor. We use
<? ignore ...
to effectively comment out blocks of XML (the "ignore" string is just a comment of sorts), since you can't enclose an XML comment within an XML comment.
tonyk
12-01-2004, 06:56 AM
thanks for your reply.
so how is that different from an XML comment?
<!-- ignore -->
<? ignore ?>
sounds like they amount to the same thing,
but is there some subtle difference that is eluding me?
tonyk
12-01-2004, 06:59 AM
duh, never mind.
i should always re-read things twice, cause i just re-read your response and got the bit about embedded xml comments.
so while you can't do:
<!-- <!-- comment --> -->
you can do:
<? ignore <!-- comment --> ?>
thanks again!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.