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

xsdÓëxmlºÍÀà(class)¶ÔÏóÖ®¼äµÄ»¥Ïàת»»

xsdÓëxmlºÍÀà(class)¶ÔÏóÖ®¼äµÄ»¥Ïàת»»
.
µÚÒ»£ºÍ¨¹ýÏÖÓеÄÒѾ­Ð´ºÃµÄxsdÀ´Éú³Éclass£¨.cs£©Îļþ¡£
ÔÚÄúVisual StudioµÄ°²×°Ä¿Â¼ÏµÄSDKv2.0BinÖÐÓиöÓ¦ÓóÌÐòxsd.exe£¨Í¨¹ýÕâ¸öÓ¦ÓóÌÐò¿ÉÒÔʹÓÃxsdÀ´´´½¨ÀàÎļþ£©¡£
¾ßÌå²Ù×÷£ºÍ¨¹ý´ò¿ªVisual Studio ÃüÁîÌáʾ£¬¿ÉÒÔÊäÈëxsdÖ¸ÁîÀ´²é¿´Ò»Ð©¾ßÌåµÄ²Ù×÷Ö¸ÁîµÄÓô¦£¬È»ºóͨ¹ýÊäÈëÖ¸Áîxsd /c ÄãxsdÎļþËùÔڵľø¶ÔµÄÎïÀí·¾¶£¬ÊäÈëÍê³Éºó»Ø³µ¡£ÕâÑù£¬ÀàÎļþ¾Í´´½¨³É¹¦ÁË£¨ÎļþµÄ·¾¶ÎªVisual StudioµÄ°²×°Ä¿Â¼ÏµÄVCĿ¼ÏÂÃæ¡££©¡£
×¢Ò⣺xsdÎļþÖи÷ÊôÐÔºÍÔªËصÄÊý¾ÝÀàÐͱØÐëΪC#ÖÐÏÖÓеÄÊý¾ÝÀàÐÍ¡£
µÚ¶þ£ºÀûÓÃÉÏÒ»²½Éú³ÉµÄÀàÎļþ£¨.cs£©À´´´½¨ÀàµÄʵÀýÒÔ¼°¸³Öµ£¬È»ºó½«ÕâЩÊý¾Ý´´½¨ºÍдÈëxmlÎļþÖС£
½«ÒѾ­´´½¨ºÃµÄÀàµÄʵÀý£¨XMLObject£©ºÍÒª´´½¨µÄXMLÎļþµÄ·¾¶£¬È»ºó½«²ÎÊý¸³¸øÏÂÃæµÄCreateXMLFile·½·¨¡£ÕâÑùXMLÎļþºÍÊý¾Ý¾Í»á±»Ð´ÈëÁË¡£
    /// 
        /// Create and Write Xml Document
        /// 
        /// XML Class Object
        /// Create XML File Url
        public void CreateXMLFile(object XMLObject, string XMLDocumentUrl)
    {
            try
       {
                using(TextWriter textWriter = new StreamWriter(XMLDocumentUrl))
                    {
                XmlSerializer xmlSerializer = new XmlSerializer(XMLObject.GetType());
                x


Ïà¹ØÎĵµ£º

Xml×Ö·û´®ÓëC#¶ÔÏóÖ®¼äÏ໥ת»»

ÎÒÃdz£³£ÐèÒª¶ÁÈ¡xmlÎļþ£¬°ÑÀïÃæµÄÐÅϢת»¯ÎªÎÒÃÇ×Ô¶¨ÒåµÄÀàÐÍ£¬»òÔò°É×Ô¶¨ÒåÀàÐÍת»¯ÎªXml×Ö·û´®¡£ÔÚÕâÀï½éÉÜÒ»¸ö±È½Ï¼òµ¥µÄ¶ÔÏóת»¯·½·¨¡£ÔÚÎÒ×Ô¼ºµÄFramworkÀïÃæÒ²¶à´ÎÓõ½¡£ÀïÃæÉæ¼°µ½½Úµã¡¢ÊôÐÔ¡¢¼¯ºÏ¡£
ʾÀýÒ» ¸ÃxmlÎļþÉæ¼°µ½ÊôÐÔ¡¢½Úµã¼¯ºÏ²»Éæ¼°¸ö½Úµã£º
<?xml version="1.0" encoding="utf-8"?>
<da ......

Java and XML_¶ÁÊé±Ê¼Ç_2010 05 19

2010-05-19
Æß¡¢×ª»»XML
l  ¿ÉÀ©Õ¹Ñùʽ±íÓïÑÔ£¨XSL£©£¬±»¶¨Òå³ÉÁËÒ»ÖÖ±íʾÑùʽ±íµÄÓïÑÔ¡£ÊǹÜÀíÔõÑù´Ó¸ñʽAת»»Ò»¸öÎĵµµ½¸ñʽBµÄ¹æ·¶ÓïÑÔ¡£¸ÃÓïÑÔ×é¼þÓÃÓÚ¹ÜÀíת»»½á¹¹ÖеĴ¦ÀíºÍÉí·ÝÑéÖ¤
n  XSLÊÇÒ»ÖÖÓÃÀ´×ª»»XMLÎĵµµÄÓïÑÔ¡£
n  XSLÊÇÒ»¸öÓÃÀ´Ö¸¶¨XMLÎĵµ¸ñʽµÄ´Ê»ã¿â¡£
l  XSLºÍÊ÷ÐÎÃèÊö£ºÕâ ......

¹ØÓÚHTTP·ÃÎÊXMLÎļþµÄËæ±Ê

×î½üÏîÄ¿ÖÐÒªÓõ½Ò»Ð©web xmlÊý¾ÝµÄ·ÃÎÊ·ÖÎö£¬²ÉÓÃmsxml
1.msxmlÊÇ΢ÈíÌṩµÄ£¬ÔÚ·Ç¿ª·¢»·¾³ÖУ¬ÐèҪע²á
2.xmlÎļþ£¬Ò»°ãÔÚµÚÒ»¾äÓбàÂ뷽ʽ£¬Ò»°ãĬÈÏÊÇutf-8£¬ÊôÓÚÒ»ÖÖunicode
3.´ÓÍøÂç²É¼¯µÄxmlÊý¾Ý£¬ÐèҪʹÓÃwinnetº¯Êý¿â
4.winnet²É¼¯×ÔÍøÂçµÄÊý¾Ý£¬Ä¬ÈϵĶ¼ÊÇCP_ACP¸ñʽµÄ£¬¼òµ¥Ëµ¾ÍÊÇANSI»òUNICODE£¬UTF8µÄ±àÂë ......

Ajax£ºÓµ±§JSON£¬ÈÃXML×ß¿ª


Ajax(Asynchronous JavaScript and XML)˵µ½µ×¾ÍÊÇÒ»ÖÖä¯ÀÀÆ÷Òì²½¶ÁÈ¡·þÎñÆ÷ÉÏXMLÄÚÈݵļ¼Êõ¡£ÏÖÔڵļ¼Êõ·²ÊǸúXML³¶ÉϹØϵ£¬ÔÙ¼ÓÉϸö¸ÅÄî×ö»Ï×Ó£¬¾ÍÏñ½ð×°ÁËÒ»Ñù£¬×§µÃ²»ÐС£ÃÅÍâ µÄÈË¿´µÃºÜÊÇÈÈÄÖ£¬ÃÅÀïµÄÈËÒ¡Ò¡Í·²»ÍâÈçÊÇ¡£XMLÄØ£¬¿çƽ̨µÄг±ÓïÑÔ£¿ÆäʵXML£½TXT¡£
XMLÖ»ÊÇ·ûºÏºÜ¶à¹æ·¶µÄÎı¾¡£Ëü±¾Éíʲô¶¼²»ÊÇ£¬Ö ......

xml post(C#)

xmlpost by HttpWebRequest:
protected string PostXmlToURL(string url,string data)
{
    HttpWebRequest hwr = (HttpWebRequest)HttpWebRequest.Create(url);
    hwr.Method = "POST";
    Stream stream = hwr.GetRequestStream();
    StreamWri ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ