Mega Code Archive
Use the comments() method or the processingInstructions() method to get XMLLists
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
XML.ignoreComments = false;
XML.ignoreProcessingInstructions = false;
var example:XML =
Welcome!
;
trace(example.*.comments().length()); // Displays: 2
trace(example.body.comments().toXMLString());
trace(example.body.comments()[1].toXMLString());
trace(example.*.processingInstructions().toXMLString());
}
}
}