易截截图软件、单文件、免安装、纯绿色、仅160KB

flex学习 flex读取xml文件

源xml文件
 <?xml version="1.0" encoding="iso-8859-1"?>
<books>
<stock>
<name>The Picasso Code</name>
<author>Dan Blue</author>
<category>Fiction</category>
<description>Cubist paintings reveal a secret society of people who really look like that</description>
</stock>
<stock>
<name>Here With the Wind</name>
<author>Margaret Middle</author>
<category>Fiction</category>
<description>In this edition, nobody in the south really gives a damn</description>
</stock>
<stock>
<name>Harry Potluck and the Chamber of Money</name>
<author>J.K. Roughly</author>
<category>Fiction</category>
<description>Young wizard finds the real pot-of-gold and retires</description>
</stock>
<stock>
<name>No Expectations</name>
<author>Chuck Dickens</author>
<category>Fiction</category>
<description>Dickens finally reveals what he really thinks of people</description>
</stock>
<stock>
<name>Atlas Stretched</name>
<author>Ann Rind</author>
<category>Fiction</category>
<description>Great inventors finally just take the money and run</description>
</stock>
<stock>
<name>Recycling Software</name>
<author>Big Gates</author>
<category>Nonfiction</category>
<description>How to just change the name and interface of the same old software and sell it as new</description>
</stock>
<stock>
<name>Make Tons of Money</name>
<author>Donald Rump</author>
<category>Nonfiction</category>
<description>Rump explains how he became a billionaire while constantly declaring bankruptcy</desc


相关文档:

Flex 命令生成资源文件


--英文
mxmlc -locale=en_US -allow-source-path-overlap=true
-include-resource-bundles=mf,collections,containers,controls,core,effects,formatters,logging,SharedResources,skins,states,styles,validators
-source-path=D:/UBAS_HOME/ClientCode/demo/client/code/MainFrame/assets/locale/en_US
-output=E:/ ......

获取某个文件夹信息,并生成XML文件,按树形显示

private XmlDocument xmlDoc;
        private void btnCreateXml_Click(object sender, EventArgs e)
        {
            //自 ......

使用DOM4J和xpath解析XML(一)

books.xml:
Xml代码
<?xml version="1.0" encoding="UTF-8"?>  
<books>  
    <!--This is a test for dom4j, jakoes, 2007.7.19-->  
    <book show="yes"  ......

XStream xml json 转换

1、首先下载 xstream.jar和jettison.jar(转换为json时用到),并引入该包。
2、看如下代码吧:
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.json.JettisonMappedXmlDriver;
import c ......

VC解析XML 使用CMarkup类解析XML

VC解析XML--使用CMarkup类解析XML
(一) 先讲一下XML中的物殊字符,手动填写时注意一下。
字符                   字符实体
&              &nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号