ÈçºÎ±£´æÔÚxmlÎļþÉÏÊDz»»á±»Éú³É<>
XmlDocument XMLFile = new XmlDocument();
XMLFile.Load(HttpContext.Current.Server.MapPath(xml/thumbnails.xml));
XmlNode root= XMLFile.SelectSingleNode(Node);
XmlNodeList xnl = XMLFile.GetElementsByTagName("thumbnails");
if (xnl.Count != 0)
{
xnl[0].FirstChild.InnerText = "<thumbnail
filename=\"../upfile/Images/200912/20091204110027.jpg\" label=\"zcool1\" url=\"ProDetail.aspx?
Id=68&&MenuID=020103&&FirstNo=0201\">;";
XMLFile.Save(HttpContext.Current.Server.MapPath(Site));
}
<?xml version="1.0" encoding="utf-8"?>
<thumbnails><thumbnail filename="../upfile/Images/200912/20091204110027.jpg" label="zcool1"
url="ProDetail.aspx?Id=68&a
Ïà¹ØÎĵµ£º
xmlÎļþ£º
<?xml version="1.0" encoding="UTF-8"?>
<mobile-list>
<mobile type="Nokia2652">
<wap2>false</wap2>
<width>115</width>
</mobile>
<mobile type="Nokia2650">
......
<?
/**
* xml2array() will convert the given XML text to an array in the XML structure.
* Link: http://www.bin-co.com/php/scripts/xml2array/
* Arguments : $contents - The XML text
* $get_attributes - 1 or 0. If this is 1 the function will get the attributes as well as the ......
ÏÂÎç¿´ÁËÒ»ÏÂdomºÍdom4j£¬¸Ð¾õÕâÁ½ÕßÔÚ½âÎö·½Ãæ²î²»¶à£¬µ«ÊÇdom4jÒª±Èdom¼òµ¥Ò»Ð©£¬ÔÚ´´½¨Ò»¸öxmlÎļþ£¬dom4jÒª±Èdom¼òµ¥Ì«¶àÁË£¬±Ï¾¹È˼Ҷ¼°ïÎÒÃÇ·â×°ºÃÁË¡£
domÊDz»ÐèÒª¼Ó°üµÄ£¬¶ødom4jÒª¼ÓÒ»¸ödom4j-1.6.1.jarÕâ¸ö°ü¡£¾ßÌåµÄÏÂÔØÂ·¾¶ÊÇ£ºhttp://www.dom4j.org/
ÏÂÃæÎÒ˵һÏÂÕâÁ½ÕßÈçºÎ½âÎöºÍ´´½¨£¬ÒÔ¼°ËûÃǵÄÇø±ð¡£x ......
XML DTD ÈëÃÅ(2009-12-14 09:08:49)
±êÇ©£ºÔÓ̸
DTDʵ¼ÊÉÏ¿ÉÒÔ¿´×÷Ò»¸ö»ò¶à¸öXMLÎļþµÄÄ£°å£¬ÕâЩXMLÎļþÖеÄÔªËØ¡¢ÔªËصÄÊôÐÔ¡¢ÔªËصÄÅÅÁз½Ê½/˳Ðò¡¢ÔªËØÄܹ»°üº¬µÄÄÚÈݵȣ¬¶¼±ØÐë·ûºÏDTDÖе͍Òå¡£XMLÎļþÖеÄÔªËØ£¬¼´ÎÒÃÇËù´´½¨µÄ±ê¼Ç£¬ÊǸù¾ÝÎÒÃÇÓ ......