package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var example:XML =
;
example.appendChild("sh");
example.appendChild("");
example.appendChild("emp");
trace(example.text().length()); // Displays : 3
trace(example.text().toXMLString());
}
}
}