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

C#.Net²Ù×÷XMLÎļþµÄÊý¾Ý

XMLÎļþ×÷ΪÊý¾ÝÊý¾Ý´æ´¢½éÖʵÄÒ»ÖÖ£¬ºÃ´¦ÔÚÓÚ£ºÈκεÄϵͳ¾ù¿ÉÒÔ½âÎöËü¡£
XMLÈ«³Æ£ºExtensible Markup Language£¨À©Õ¹±ê¼ÇÓïÑÔ£©Ê¹ÓÃÎĵµÀàÐͶ¨Ò壨DTD£©»òÕßģʽ£¨Schema£©À´ÃèÊöÊý¾ÝµÄ¡£¿É¹©ÈËÔĶÁ£¬¶øÇÒ»¹»ùÓÚÒ»ÖÖ¹«¹²µÄ¿ª·¢±ê×¼¡£
×î½üÓÉÓÚ¿ª·¢µÄÐèÒª£¬Ò²ÊÇÑо¿ÒÔÏÂXMLµÄ²Ù×÷£¬±¾ÆªÈÕÖ¾Ö÷Òª×ܽáC#.NETÖÐÊÇÈçºÎ²Ù×÷XMLÎļþµÄ¡£
.NET FrameworkΪÎÒÃÇÌṩÁ˲Ù×÷XMLÎļþµÄÀ࣬Ö÷Òª·â×°ÔÚSystem.XmlÃüÃû¿Õ¼äÖС£
½ÓÏÂÀ´ÎÒÃÇ¿´¿´ÈçºÎͨ¹ý³ÌÐòÀ´·ÃÎÊXMLÎļþ£º
Ö÷ÒªÊÇÀûÓÃSystem.Xml.XmlDocumentÀàÒÔ¼°Ò»Ð©Ïà¹ØÀàÀ´Íê³É·ÃÎÊÊý¾Ý¹ý³Ì¡£
Çë´ó¼Ò×Ô¼ºÈ¥Á˽âÒ»ÏÂXMLµÄ½á¹¹£¬ÔÚÕâÀï²»×ö½²Êö¡£
System.XmlµÄÊôÐÔÒÔ¼°·½·¨ÈçÏ£º
InnerTextºÍInnerXml£ºÕÒµ½Óë¸÷×Ô×Ó½ÚµãÏà¹ØµÄÖµ»òÕß±ê¼Ç£»
Value£º·ÃÎʽڵãµÄÖµ£»
Attributes£º»ñÈ¡µ±Ç°½ÚµãµÄÊôÐÔ¼¯ºÏ£»
FirstChild¡¢LastChildºÍChildNodes£º»ñÈ¡µÚÒ»¸ö½Úµã¡¢×îºóÒ»¸ö½Úµã»òÕß×Ó½ÚµãµÄ¼¯ºÏ£»
NextSiblingºÍPreviousSibling£ºÁ¢¿Ì·ÃÎÊÏÂÒ»¸ö»òÉÏÒ»¸öͬ¼¶×ӽڵ㣻
DocumentElement£º·ÃÎÊÎļþµÄ¸ùÔªËØ£»
Item£º»ñÈ¡Ö¸¶¨µÄ×ӽڵ㣻
NodeType£ºÖ¸Ã÷µ±Ç°½ÚµãµÄÀàÐÍ£»
XmlNodeType£ºÃ¶¾Ù³öËùÓпÉÄܵĽڵãÀàÐÍ£»
GetElementsByTagName»òGetElementById£º»ñÈ¡Ò»¸ö»ò¶à¸öÖ¸¶¨µÄXMLÔªËØ¡£
Ê×ÏÈ£¬ÎÒÃÇ´´½¨Ò»¸öXMLÎĵµ£¨Ãû×ÖΪ£ºtest.xml ·¾¶£ºf:/studysum/ASP-XML/ÏÂÃ棩£º
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<Collection>
<Book id="1" ISBN="1-100000ABC-200">
<Title>Principle of Reletivity</Title>
<Author>Einstan</Author>
<Genre>Physics</Genre>
</Book>
<Book id="2" ISBN="1-100000ABC-300">
<Title>Cosmos</Title>
<Author>Sapan</Author>
<Genre>Cosmology</Genre>
</Book>
</Collection>
´´½¨C#³ÌÐò£¬¶Ô´ËXMLÎļþµÄÊý¾Ý½øÐÐÔöɾ¸Ä²é£¨Ê¹ÓÃASP.NETÀ´ÊµÏֵģ©£º
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml;
using System.Text;
public partial class _Default : System.Web.UI.Page
{


Ïà¹ØÎĵµ£º

flexÖÐxmlת»¯ÎªarrayʵÀý

±¾ÎĹ²Á½¸öÎļþ£ºtranslate.mxml ºÍ mapmarking.xml
1¡¢translate.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="librar ......

dom4j ¶Á xml Îļþ

<?xml version="1.0" encoding="UTF-8"?>
<company> 
  <tel>020-12345678-66</tel>  
  <tel>020-12345678-85</tel>  
  <introduce> 
  <![CDATA[
<br/><h1>¹«Ë¾¼ò½é& ......

xml jboss problem

the content of element type "jboss" must matched  loader-respository ,jmx-name,enforce-ejb-restriction,
security-domain,missing-method-permission-excluded-mode,unauthenticated-principal,exception-on-rollback,
webservices,enterprice-beans,assembly-descriptor,resource-managers,invoker-proxy-bin ......

asp.net C#ÍøÕ¾ÏîÄ¿ »ñÈ¡ÎïÀí·¾¶¡¢ÐéÄâ·¾¶µÄ·½·¨

-----------------------------.csÀàÎļþÖÐ
µ±Ç°ÏîÄ¿µÄÎïÀí·¾¶Â  
   
  strPath   =   this.Server.MapPath(Request.PhysicalApplicationPath);  
   
  ÄãҪ˵Ã÷ʲô“ÀàÎļþ”¡£ÈκÎPAGE¡¢CONTROL´úÂëÒ²ÊÇÔÚÀà ......

XMLÎļþµÄ½âÎö£­£­libxml¿âº¯Êý½âÊÍ


libxml£¨Ò»£©
                                     
ÕªÒª 
LibxmlÊÇÒ»¸öÓÐÃâ·ÑÐí¿ÉµÄÓÃÓÚ´¦ÀíXML¡¢¿ÉÒÔÇáËÉ¿çÔ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ