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

xml½ÚµãÐÅÏ¢

xml£º 
<?xml version="1.0" encoding="utf-8" ?>
<library>
 <name>Ê׶¼Í¼Êé¹Ý</name>
 <address>³¯ÑôÇø»ªÍþÇÅÄÏ</address>
 <books>
  <book type="math">
   <id>0000</id>
  </book>
  <book type="computer">
   <id>0001</id>
   <name>Xml³õѧ</name>
   <publisher>ÈËÃñ³ö°æÉç</publisher>
   <publishdate>2010-05-0-18</publishdate>
   <fee>100.54</fee>
  </book>
  <book type="computer">
   <id>0002</id>
   <name>XSD¶¨Òå</name>
   <author>×ÓµÜ</author>
   <publisher>×ӵܳö°æÉç</publisher>
   <publishdate>2010-05-0-18</publishdate>
   <fee>102.54</fee>
  </book>
 </books>
</library>
cs:
            XmlDocument doc=new XmlDocument();
            doc.Load(System.AppDomain.CurrentDomain.BaseDirectory+"/htmlxml/books.xml");
            XmlNodeList nodelist = doc.GetElementsByTagName("book");
            XmlElement element = doc.GetElementById("b3");
            XmlNode node = doc.SelectSingleNode("library/books/book[2]");
            XmlNodeList nodelistselect = doc.SelectNodes("library/books/book");
            Response.Write("Name: " + node.Name + "<br/>");
   &n


Ïà¹ØÎĵµ£º

magento ¿ª·¢ ÁíÒ»ÖÖ·½Ê½ÓÃxmlÀ´²¼¾Ö

ÊÇ·ñÑá¾ëÁËÓÃxmlÎļþÀ´×öMagentoµÄÒ³Ãæ²¼¾Ö£¬ÊǵĻ°À´ÊÔÊÔÏÂÃæÕâÖÖ·½Ê½£¬°Ñ²¼¾Ö´úÂëдµ½controller ÀïÃæ
public function mycoolAction()
{
/* ... Some code ...*/
$update = $this->getLayout()->getUpdate();
/* ... Some code ...*/
$this->addActionLayoutHandles();
/* ... Some code ...*/
......

Loading XML data using ActionScript 3.0

Loading XML data using ActionScript 3.0
By Blue_Chi | Flash CS3 | ActionScript 3.0 | Beginner
Using XML is one of the best ways for structuring external content in a logical format that is easy to understand, process, and update. This tutorial will teach you the basics on how to load and process X ......

microsoft.xmldom(Ò») xmlÎĵµ±éÀújs

xml:
<?xml version="1.0" encoding="utf-8" ?>
<library>
 <name>Ê׶¼Í¼Êé¹Ý</name>
 <address>³¯ÑôÇø»ªÍþÇÅÄÏ</address>
 <books>
  <book>
   <id>0000</id>
  </book>
  < ......

Xml°ïÖúÎļþ


using System.Xml;
//³õʼ»¯Ò»¸öxmlʵÀý
XmlDocument xml=new XmlDocument();
//µ¼ÈëÖ¸¶¨xmlÎļþ
xml.Load(path);
xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));
//Ö¸¶¨Ò»¸ö½Úµã
XmlNode root=xml.SelectSingleNode("/root");
//»ñÈ¡½ÚµãÏÂËùÓÐÖ±½Ó×Ó½Úµã
XmlNodeList childlist=root ......

¶àÖÖXML½âÎö·½·¨

±¾ÎĽéÉÜÁ˸÷ÖÖ½âÎö·½·¨£¬×ÅÖØ·ÖÎöÁ˸÷×ÔµÄÓÅȱµã:
½âÎöµÄÖØÒªÐÔ
¡¡¡¡½âÎöΪʲôÖØÒª?ÒòΪËùÓÐ XML ´¦Àí¶¼´Ó½âÎö¿ªÊ¼¡£ÎÞÂÛʹÓø߲ã±à³ÌÓïÑÔ(Èç XSLT)»¹ÊǵͲã Java ±à³Ì£¬µÚÒ»²½¶¼ÊÇÒª¶ÁÈë XML Îļþ£¬½âÂë½á¹¹ºÍ¼ìË÷ÐÅÏ¢µÈµÈ£¬Õâ¾ÍÊǽâÎö¡£
¡¡¡¡½âÎöÎĵµÊ±ÃæÁٵĵÚÒ»¸öÑ¡ÔñÊDzÉÓÃÏֳɵĽâÎö¿â(»ù±¾ÉÏÿÖÖ±à³ÌÓïÑÔ¶¼Ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ