ÇóÖú°¡xml¶ÁÈ¡,´óϺ°ïæÏ - .NET¼¼Êõ / ASP.NET
<?xml version="1.0" encoding="utf-8" ?>
<config>
<type name="ÀàÐÍ1">
<names>
<name>1</name>
<name>2</name>
<name>3</name>
</names>
</type>
<type name="ÀàÐÍ2">
<names>
<name>any</name>
</names>
</type>
</config>
ÎÒÏë°ÑtypeÖеÄnameµÄֵȡµ½ÔõôŪ°¡
XmlElement root = xmlDoc.DocumentElement;
XmlNodeList t =root.ChildNodes;
foreach(XmlNode node in )
{
//do code
}
¿´¿´ÎÒµÄÌû×ӰɽáÌùµÄÄǸö×îºóÎÒ×Ô¼ºÐ´µÄÄǶÎ
²»ºÃÒâ˼ ÖØ·¢Ò»´Î
<?xml version="1.0" encoding="utf-8" ?>
<config>
<type name="ÀàÐÍ1">
<name>1</name>
<name>2</name>
<name>3</name>
</type>
<type>ÀàÐÍ2
<name>any</name>
</type>
</config>
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(Server.MapPath(@"WorkFlow.xml"));
Ïà¹ØÎÊ´ð£º
txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔÊý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽÎļþ
<folder state="unchecked" label="È«²¿">
¡¡¡¡<folder state="unchecked" isBra ......
ÎÒÓÐÒ»¸öÀàËÆµÄxmlµÄ string£¬Ïëͨ¹ý±éÀúÔõô¸öxml Êä³öÎÒÏëÒªµÄelementµÄÖµ
xml Ϊ£º
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_ME ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎͼ¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......