Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Flex¶ÁÈ¡ÍⲿXMLÖÐÎÄÂÒÂë½â¾ö°ì·¨

ÓÃ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);
}


Ïà¹ØÎĵµ£º

ÓÃFLEXÈçºÎÈ¡ä¯ÀÀÆ÷µØÖ·À¸ÖеÄÓòÃûÐÅÏ¢£¿


ÓÃFLEXÈçºÎÈ¡ä¯ÀÀÆ÷µØÖ·À¸ÖеÄÓòÃûÐÅÏ¢£¿ÎÒ²éÕÒµ½Á½ÖÖ·½·¨£º
µÚÒ»ÖÖ·½·¨ÊÇÓÃExternalInterface.call('window.location.href.toString')£¬ËüµÄÖµ¾ÍÊǵØÖ·À¸ÖеÄÓòÃû
ÓÐÒÔϼ¸µãÐèҪעÒ⣺
1.µ±FlashºÍ¼ÓÔØËüµÄÍøÒ³²»Í¬Óòʱ£¬ÐèÒªÔÚÍøÒ³ÔÚ PARAM »ò EMBED ±êÇ©ÖнøÐÐÉèÖÃAllowScriptAccess Ϊ“always”
¹ØÓÚ ......

ʵÀýÆÊÎöxmlÓ¦Óã¨1£©

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
 //µ¼ÈëʹÓÃxmlÓ¦ÓÃËùÐèµ ......

flashÔÓÖ¾£ºÐÂÒ»ÆÚflash&flex ¹úÍâµÄÔÓÖ¾·¢²¼

еÄÒ»ÆÚµÄflash&flex ¹úÍâµÄÔÓÖ¾·¢²¼£¬¿´À´Ò»°àÖÆ×÷ÈËÕæµÄºÜÓÐÐÄ˼¡£×î½üCSDN ͼƬÉÏ´«²»µ½£¬Á¬Ð´¶«Î÷Ò²²»·½±ãÁË¡£
ËùÒÔ¾ÍÎÞ°ì·¨ÌùͼÁË
ÓÐÐËȤµÄÈË¿ÉÒÔµ½ÕâÀïÏÂÔØеÄÒ»ÆÚÍâ¹úµÄ¹ØÓÚflash ºÍflex ×ÊѶµÄÔÓÖ¾¡£
http://ffdmag-en.software.alfa.javatech.com.pl/download-1-2010 ......

VC¶ÔÓÚXMLµÄ½âÎöÒÔ¼°²Ù×÷

XMLµÄ²éÕÒ
#include <stdio.h>
#include <iostream>
#import <msxml4.dll>
#include <string>
using namespace std;
void Travel(MSXML2::IXMLDOMNodePtr pDOMNode)
{
 if (pDOMNode->GetnodeTypeString()==(_bstr_t)"element") // »ñÈ¡½ÚµãÀàÐÍ
 {
  printf("%s ......

eclipseÖÐÌáʾxml±êÇ©

¡¡¡¡¡¡ÔÚ²»ÄÜÉÏÍâÍøµÄÇé¿öÏ£¬ÎÒÃÇÔÚeclipseÖÐдxmlʱÎÞ·¨µÃµ½±êÇ©µÄÌáʾ£¬ÒòΪxmlÖеÄdtd»ñÈ¡²»µ½.
¡¡¡¡¡¡¿´ÁËÏÂÍâÃæµÄ×ÊÁÏ¡£ËµÊÇÑ¡Ôñ"window"-->"preferences"--->"Myeclipse Enterprise Workbench"-->"Files and Editors"-->"xml"-->"xml category"
¡¡¡¡¡¡ÔÚuser specified EntriesÖÐÐÂÔöÒ»¸ö. £¨ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ