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

C#ʵÏÖXMLϵÁл¯ºÍ·´ÏµÁл¯µÄ×ܽá

³£ÓõÄϵÁл¯¶¨Ò壨using System.Xml.Serialization;£©
[XmlAttribute("name")]        // ¶¨Òå<Tag name="…"></Tag>
[XmlElement("label")]        // ¶¨Òå<label>…</label>
[XmlIgnoreAttribute()]        // Ìø¹ýϵÁл¯
[XmlElement("description", IsNullable = false)]        // ¶¨Òå<description>…</description>£¬ÔÚÊôÐÔֵΪnullʱ²»ÏÔʾ¸ÃÔªËØ£¬¼´¿ÉÑ¡
[XmlArray("temp_var_list", IsNullable=false)]        // ¶¨Òå<temp_var_list><Tag>…</Tag>…<Tag>…</Tag></temp_var_list>£¬¼´Êý×é¶ÔÏóµÄ¸ù½áµã
[XmlArrayItem("temp_var_item")]        // ¶¨Òå<temp_var_item>…</temp_var_item>…<temp_var_item>…</temp_var_item>£¬¼´Êý¾ÝÔªËصĸù½áµã£¬³£ÓëXmlArray×éºÏʹÓÃ
[XmlRoot("dpd")]        // ¶¨ÒåÒª½áµã
¼¸¸ö×¢ÒâÊÂÏî
£¨1£©ÐèÐòÁл¯µÄ×ֶαØÐëÊǹ«¹²µÄ(public)
£¨2£©ÐèÒªÐòÁл¯µÄÀ඼±ØÐëÓÐÒ»¸öÎ޲εĹ¹Ô캯Êý
£¨3£©Ã¶¾Ù±äÁ¿¿ÉÐòÁл¯Îª×Ö·û´®£¬ÎÞÐèÓÃ[XmlInclude]
£¨4£©µ¼³ö·Ç»ù±¾ÀàÐͶÔÏ󣬶¼±ØÐëÓÃ[XmlInclude]ÊÂÏÈÉùÃ÷¡£¸Ã¹æÔòµÝ¹é×÷Óõ½×ÓÔªËØ
 Èçµ¼³öArrayList¶ÔÏó£¬ÈôÆä³ÉÔ±ÊÇ×Ô¶¨ÒåµÄ£¬ÐèÔ¤°üº¬´¦Àí£º
 using System.Xml.Serialization;
 [XmlInclude(typeof(×Ô¶¨ÒåÀà))]
£¨5£©AttributeÖеÄIsNullable²ÎÊýÈôµÈÓÚfalse£¬±íʾÈôÔªËØΪnullÔò²»ÏÔʾ¸ÃÔªËØ¡£
 Ò²¾ÍÊÇ˵£ºÕë¶ÔÖµÀàÐÍ£¨Èç½á¹¹Ì壩¸Ã¹¦ÄÜÊÇʵЧµÄ
 ÈôÊý×é°üº¬ÁË100¸ö¿Õ¼ä£¬Ìî³äÁË10¸öÀà¶ÔÏó£¬ÔòÐòÁл¯ºóÖ»ÏÔʾ10¸ö½Úµã
 ÈôÊý×é°üº¬ÁË100¸ö¿Õ¼ä£¬Ìî³äÁË10¸ö½á¹¹Ìå¶ÔÏó£¬ÔòÐòÁл¯ºó»áÏÔʾ100¸ö½Úµã
£¨6£©ÕæÕýÎÞ·¨XMLÐòÁл¯µÄÇé¿ö
 Ä³Ð©Àà¾ÍÊÇÎÞ·¨XMLÐòÁл¯µÄ£¨¼´Ê¹Ê¹ÓÃÁË[XmlInclude]£©
  IDictionary£¨ÈçHashTable£©
  System.Drawing.Color
  System.Drawing.Font
  SecurityAttributeÉùÃ÷
&


Ïà¹ØÎĵµ£º

StrutsÖÐÀûÓÃactionÀ´Êä³öxmlÎļþ

      Ó¦Ò»¸öͬʵÄÒªÇó£¬ÒªÀûÓÃstrtusµÄAction½«Ò»¸öÊý¾Ý¿â±íµÄÊý¾ÝÊä³öΪxml¸ñʽµÄÊý¾Ý£¬·½±ãµ¼ÈëʹÓ᣾­Ñо¿Action»¹ÕæÄÜ°ìµ½£¬Êµ¼ÊÉϲ»ÊÇActionµÄ¹¦ÀÍ£¬¶øÊÇJDOMµÄ¹¦ÀÍ£¬²»ËµÄÇô¶àÁË£¬¸ø´ó¼Ò·ÖÏíһϡ£     ÎÒÓÐÒ»¸ö²âÊÔ±í£¬ÓÐÁ½¸ö×ֶΣ¬Ò»¸öÊÇÓû§Ãû£¬Ò»¸öÊÇÃÜÂ룬ÏÖ½«Õ⸠......

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 ......

C#Éú³ÉXMLÎļþµÄ º¯Êý

protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
         &nbs ......

XMLµÄ±àд

XMLÊÇÃÅѧÎÊ¡£ÒªÑ§µÄ»°¡£Ò²ÐèÒªÓÃÐÄ¡£
¼òµ¥µÄÁ˽âÏ¡£¡£
Àý×Ó£ºËùÓнڵã×ֶμ¸ºõ×Ô¼º¹¹Ôì¡£
<?xml version="1.0" encoding="utf-8" ?><!--Õâ¸öÊDZêʶ¡£¡£Ö¸¶¨°æ±¾¡£¡£Ö¸¶¨±àÂë¶Áд>
<ShowList>
 <Movie>
  <Name>¹¦·ò</Name>
  <Poster>gongfu. ......

delphi µ÷ÓÃC# webservice

תÔØ×Ô£ºhttp://www.cnblogs.com/jdmei520/archive/2009/06/17/1505053.html
Webservice¼¼ÊõµÄ³öÏÖ½«¸÷ÖÖ¿ª·¢¼¼ÊõºÍÓïÑÔÍêÈ«µÄÈÚºÏÁË£¬ÏÂÃæ¾ÍÕâÖÖÈÚºÏÔÚC#ºÍdelphiÖ®¼äµÄ½»»¥×öÒ»´ÎÈ«ÃæµÄÌåÏÖ
1.ʹÓÃC#´´½¨Ò»¸öWebservice·þÎñ¡£
ʹÓÃvs2005µÄÄ£°å´´½¨C#µÄwebservice·Ç³£ÈÝÒס£Ô­ÎļþÈçÏÂ:
[WebService(Namespace  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ