用URLLoader加载XML,然后将data转化为ByteArray
用byteArray.readMultiByte(bytes.length,"utf-8")
然后将转化后的字符串再强制转化为XML
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.Binary;
var urlRequest:URLRequest = new URLRequest(source);
loader.addEventListener("complete",completeHandler);
loader.load(urlRequest);
private var completeHandler(evt:Event):void
{
var bytes:ByteArray = ByteArray(evt.currentTarget.data);
var xmlStr:String = bytes.readMultiByte(bytes.length,"utf-8");
var xml:XML = XML(xmlStr);
trace(xml);
}
本文转自:http://blog.csdn.net/jiabangok/archive/2009/02/25/3934334.aspx
评论 (2)
-
|112.111.173.xxx |Y-m-d H:i:s coach outlet - http://www.coachoutletfactory.comcoach outlet
coach factory outlet
coach outlet factory
coach outlet online
coach outlet store
coach bags on sale
coach bags outlet
coach factory outlet online
coach outlet store online
coach outlet online store
coach factory outlet sale
coach online outlet store
coach sunglasses
COACH HANDBAGS
COACH WALLETS
COACH ACCESSORIES
COACH BOOTS
COACH SHOES
Coach Handbags
COACH JEWELRY
COACH APPAREL
COACH MEN
Coach Shoulder Bags
Coach Sling Bags
Coach Luggage Bags
Coach Patchwork Purse
Coach Baby Bags
Coach Tote Bags
Coach Backpack Bags
Coach Carly Bags
Coach Claire Bags
Coach Garnet Bags
Coach Hampton Bags
Coach HOBO Bags
Coach Leather Handbags
Coach Sabrina Bags
Coach Spotlight Bags
Coach Tr******el Bags
Coach Tribeca Bags
New Coach Handbags
Coach Ergo BagsPowered by !JoomlaComment 4.0 beta2



Another way in wow power leveling protecting yourself from credit card scams and frauds is to shred all the
documents, emails, and wow power leveling other paperwork that contain credit card account information.
You h******e to remember that wow power leveling when this information gets into the wrong hands,
they can use this to purchase world of warcraft gold items in the internet using your account. This will
surely give you so much financial best wow gold debts in the future. So that you can be sure that there are
no suspicious or fraudulent cheapest wow gold activities going on with your credit card accounts.