package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ XML.ignoreComments = false; XML.ignoreProcessingInstructions = false; var novel:XML = <BOOK ISBN="0141182806"> <!--This is a comment--> <?someTargetApp someData?> <TITLE>Actionscript</TITLE> <AUTHOR>J, K</AUTHOR> <PUBLISHER>Penguin Books Ltd</PUBLISHER> </BOOK>; trace(novel.comments()[0].toString( )); trace(novel.processingInstructions()[0].toString( )); } }}
Name (required)
email (will not be published) (required)
Website