Setting Options for the XML Class : Comments and Processing Instructions « XML « Flash / Flex / ActionScript

Home
Flash / Flex / ActionScript
1.Animation
2.Array
3.Class
4.Data Type
5.Development
6.Function
7.Graphics
8.Language
9.Network
10.Regular Expressions
11.Statement
12.String
13.TextField
14.XML
Flash / Flex / ActionScript » XML » Comments and Processing Instructions 
Setting Options for the XML Class
 

//ignoreWhitespace 
//ignoreComments 
//ignoreProcessingInstructions 
//prettyPrinting 
//prettyIndent 
//ignoreWhitespace


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        trace(XML.settings().ignoreProcessingInstructions)// Displays: true
        XML.ignoreProcessingInstructions = false;
        trace(XML.settings().ignoreProcessingInstructions)// Displays: false

    }
  }
}

        
Related examples in the same category
1.Accessing Comments and Processing Instructions
2.To obtain an XMLList representing all comments and processing instructions within an entire XML tree
3.Search for elements only while ignoring text nodes, comments, and processing directives, use elements()
4.Finding Node Types: element, attribute, text, comment, processing-instruction
5.Converting Comments and Processing-Instructions to Strings
6.use the comments() method or the processingInstructions() method to get XMLLists
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.