Normalizing Text Nodes : Normalize : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Normalize »

 

Normalizing Text Nodes


 


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

        var example:XML = <stooges>
                             <moe /><curly><larry>
            </larry>
                                   </curly>
                   </stooges>;
        
        example.appendChild("sh");
        example.appendChild("");
        example.appendChild("emp");
        trace(example.text().length())// Displays : 3
        trace(example.text().toXMLString());


    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» Normalize