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

flexÖÐʹÓÃhttpservice¶ÁÈ¡xmlÎļþ

1¡¢mian.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="HTTPSrv.send();" width="242" height="442">
<mx:Script>
<!--[CDATA[

import mx.rpc.events.ResultEvent;
[Bindable]
private var pro:XML;
private function LoadMenu(event:ResultEvent):void{
pro= XML(event.result);
var results:XMLList = pro.project;
tree.dataProvider = results;
}
]]-->
</mx:Script>
<mx:HTTPService url="Project.xml" id="HTTPSrv" useProxy="false"
showBusyCursor="true" result="LoadResulter(event)" resultFormat="xml"/>
<mx:Tree id="tree" x="10" y="35" width="218" height="397" labelField="@label" />
<mx:Label x="10" y="10" text="Tree Nodes from XML File"/>
</mx:Application>

2 project.xml
  <?xml version="1.0" encoding="utf-8"?>
<projects>
<project >
<project name="PhotoTurning" >
<project name="assets" >
<project name="photo" >
<project name="3dphoto_1.png" />
<project name="3dphoto_2.png" >
</project>
</project>
<project name="flex_src">
<project name="view" >
<project name="components" >
<project name="PhotoTurning.mxml" />
</project>
</project>
</project>
</project>
</project>
</projects>


Ïà¹ØÎĵµ£º

C# ͨ¹ýxslת»»´óxmlÎļþ·½·¨

ͨ¹ýxslת»»´óxmlÎļþ
Õ⼸ÌìÔÚ×öÕâ¸ö£¬ÍøÉϵļ¸¸ö·½·¨ÎÒ¶¼ÊÔ¹ýÁË£¬»ã×ÜÈçÏÂ
·½·¨Ò»£º
XPathDocument myXPathDoc = new XPathDocument(tbXMLFile.Text);
 
XslCompiledTransform myXslTrans = new XslCompiledTransform();
myXslTrans.Load(tbXSLFile.Text);
 
XmlTextWriter myWriter = new XmlTextWrit ......

flex datagrid ¶à¸öµ¥Ñ¡°´Å¥

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" layout="absolute" xmlns:ns1="com.component.*">
<mx:Script>
 <![CDATA[
  import com.component.DataHBox;
  import com.component. ......

Ìí¼ÓXML½Úµã

Ìí¼ÓXML½Úµã
 /// <summary>
    /// ³õʼ»¯XML status-0
    /// </summary>
    /// <returns></returns>
    private bool InitialConfig()
    {
        bool b ......

[as3¹¤¾ßÀà]XMLÊý¾ÝÖ±½Óת»»³Éas3Àà

ƽʱ×öÓÎÏ·¿ª·¢µÄʱºò£¬ºÜ´ó³Ì¶ÈÉ϶¼»á²ÉÓÃxmlÀ´×öÅäÖÃÎļþ¡£ÓÐʱºòÐèҪдºÜ¶à£¬È»ºóÓÖÐèÒªÒÀ´ÎÈ¥½âÎö¡£Èç¹ûÓÐÒ»¸ö¹¤¾ßÀ´×Ô¶¯½âÎöÿһ¸öxml£¬²¢ÇÒÌáÈ¡³ö×Ô¼ºÐèÒªµÄÊý¾Ý£¬¶àºÃѽ¡£ËùÒÔ͵Á˸öÀÁ£¬Ð´ÁËÒ»¸ö½âÎöÒ»¶¨¸ñʽµÄxmlºÍ½âÎöÀ࣬°ÑÕâ¸ö¸ñʽ¶ª¸ø²ß»®×Ô¼ºÈ¥µ÷ÕûÊý¾ÝÀ²¡£Í¬Ê±×Ô¼ºÕâ±ßÖ»ÐèÒª½ÓÊÜÏֳɵÄÀà
×¢Ò⣬ÕâÀïµÄÖ¸µÄÀ ......

ajaxÓëjsp »ñµÃ¿Õxml½â¾ö·½·¨


AjaxºÍjspµÄ¹ÖÏÖÏó     
Èç¹ûÓÃAjaxÈ¥ÇëÇóÒ»¸öjspÒ³Ã棬¸ÃjspÒ³Ãæ·µ»ØµÄÊÇxml£¨response.setContentType("text/xml; charset=GB2312");£©£¬²¢ÇÒ¸Ãjsp°üº¬ÏÂÃæÕâЩͷ@pageÖ¸ÁîµÄ»°£¬ÔòÔÚ¿Í»§¶Ëxml=XMLHttpRequest.responseXMLµÃµ½µÄÊÇÒ»¸ö²»°üº¬ÈÎÎñ¶«Î÷µÄxml¶ÔÏ󣬼´xml.childNodes.length½«»áÊÇ0. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ