超级大笨狼中国象棋(js+xml)
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<STYLE>
v\:* { Behavior: url(#default#VML) }
body {
background-color:DarkGoldenrod;
margin-left: 10px;
margin-top: 10px;
}
</STYLE>
<title>超级大笨狼象棋</title>
</head>
<body onselectstart="document.selection.clear();" onclick="target();" oncontextmenu="selectNull();return(false);">
<v:group style="top:0;left:0;width:400px;height:450px;position:relative;" CoordOrig="0,0" CoordSize="400,450">
<v:Rect id=qiPan style="position:relative;width:460;height:510px;top=-30;left=-30;Z-INDEX:1;" fillColor="#f0e68c" StrokeWeight="2">
<v:TextBox inset="80pt,180pt,1pt,1pt" style="Z-INDEX:2;font-size=24;font-weight:bold;position:relative;letter-spacing: 2em;color='#CC9933';FILTER: glow(color=#ffffff,strength=1) alpha(opacity=90);cursor:default;"> 楚河汉界</v:TextBox >
<v:shadow on="Ture" type="single" color="#8b4513" offset="3px,3px"/>
</v:Rect>
<v:line from="0,0" to="400,0" style="Z-INDEX:3;FILTER: " strokeweight="1pt" > </v:line>
<v:line from="0,50" to="400,50" style="Z-INDEX:3;FILTER: " strokeweight="1pt" > </v:line>
<v:line from="0,100" to="400,100" style="Z-INDEX:3;FILTER: " strokeweight="1pt" > </v:line>
<v:line from="0,150" to="40
相关文档:
在Perl中解析XML的方法最常见的就是使用 XML::DOM
和 XML::Simple了。
XML::DOM过于庞大,而且解析结果是一个DOM树,操作也不方便。
对于小型且不复杂的XML文件,XML::DOM真是杀鸡用牛刀。
这时就轮到轻便的XML::Simple上场了。
XML::Simple如其名,真的很简单。假设XML内容如下:
<opt>
<user login= ......
工具:myeclipse 6.5
json中文官方:http://www.json.org/json-zh.html
新建项目webs,在WebRoot下新建目录json
xml的解析方式:
------------------------------------------------------------------
1.新建NewFile.xml
<?xml version="1.0" encoding="UTF-8"?>
<userinfo>
  ......
function init() {
var viewChartID = 0;
var viewChartSum = "" ;
reportName = document.getElementById("reportName").value;
xmlDoc=loadXMLDoc("./charreport/xml/viewChart.xml");
x=xmlDoc.getElementsByTagName('viewChart')[0].childNodes;
for (i=0;i<x.length;i++ ......
//判断该xml文档是否存在,不存在则创建
if (!File.Exists(Constants.SYS_CONFIGURE_URL + @"\SaveAccount.xml"))
&nbs ......
XML 命名空间提供了一种避免元素命名冲突的方法。
命名空间属性一般放置在元素的开始标记处,其使用语法如下所示:
xmlns:namespace-prefix="namespace",
例如:xmlns:f="http://www.w3schools.com/furniture"
W3C 命名规范声明命名空间本身就是一个统一资源标示符,Uniform Resource Identifier (URI)。
asp.net读取X ......