Converting Comments and Processing-Instructions to Strings : Comments and Processing Instructions : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Comments and Processing Instructions »

 

Converting Comments and Processing-Instructions to Strings


 


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(  ));
        

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo XML
» Comments and Processing Instructions