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

C# XML×¢ÊÍ

×÷Õß: J. Andrew Schafer
ÕâƪÎÄÕ¼ÙÉèÄã¶Ô XML, XSLT, ºÍ C# ÊìϤ
ÏÂÔØÕâƪÎÄÕµÄÔ´´úÂë: XMLC.exe (76KB)
ÒëÕß˵Ã÷£ºÕâƪÎÄÕÂÊǺÜÔçÒÔÇ°¾Í·¢±íÁË£¬ËüÌṩµÄÔ´´úÂëÊÇ»ùÓÚ VS.net ²âÊ԰棨RTM ºÍ Beta 2£©µÄ¡£
ÕªÒª
    C# ÔÊÐí¿ª·¢ÈËÔ±ÔÚÔ´´úÂëÖвåÈëXML×¢ÊÍ£¬ÕâÔÚ¶àÈËЭ×÷¿ª·¢µÄʱºòÏÔµÃÌرðÓÐÓᣠC#½âÎöÆ÷¿ÉÒÔ°Ñ´úÂëÎļþÖеÄÕâЩXML±ê¼ÇÌáÈ¡³öÀ´£¬²¢×÷½øÒ»²½µÄ´¦ÀíΪÍⲿÎĵµ¡£ ÕâƪÎÄÕ½«Õ¹Ê¾ÈçºÎʹÓÃÕâЩXML×¢ÊÍ¡£×÷ÕßÑÝʾÁËÈçºÎÉú³É¹¤³Ì£¬ÈçºÎ°ÑXML×¢ÊÍÊä³öΪÓÐÓÃÎĵµ£¬ÈçºÎ°ÑÕâЩעÊÍת±äΪ°ïÖúÎļþ¡£ ÔÚÏîÄ¿¿ª·¢ÖУ¬ºÜ¶àÈ˲¢²»ÀÖÒâд·±ÔÓµÄÎĵµ¡£µ«ÊÇ£¬¿ª·¢×鳤ϣÍû´úÂë×¢Ê;¡¿ÉÄÜÏêϸ£»ÏîÄ¿¹æ»®ÈËԱϣÍû´úÂëÉè¼ÆÎĵµ¾¡¿ÉÄÜÏ꾡£»²âÊÔ¡¢¼ì²éÈËԱϣÍû¹¦ÄÜ˵Ã÷Ê龡¿ÉÄÜÏêϸµÈµÈ¡£ Èç¹ûÕâЩÎĵµ¶¼±»ÒªÇóдµÄ»°£¬±£³ÖËüÃÇͬ²½±È½øÐÐÒ»¸öÕ½ÒÛ»¹Í´¿à¡£
    ΪºÎ²»°ÑÕâЩÐÅÏ¢±£´æÔÚÒ»¸öµØ·½ÄØ£¿£¿×îÃ÷ÏÔÏëµ½µÄµØ·½¾ÍÊÇ´úÂëµÄ×¢ÊÍÖУ»µ«ÊÇÄãºÜÄÑͨÀÀ³ÌÐò£¬²¢ÇÒÓÐЩÐèÒªÕâЩÎĵµµÄÈ˲¢²»¶®±àÂë¡£
    ÕâƪÎÄÕ½«Õ¹Ê¾ÈçºÎͨ¹ýʹÓÃXML×¢ÊÍÀ´½â¾öÕâЩÎÊÌâ¡£´úÂë×¢ÊÍ¡¢Óû§Êֲᡢ¿ª·¢ÈËÔ±Êֲᡢ²âÊԼƻ®µÈºÜ¶àÎĵµ¿ÉÒԺܷ½±ãµÄ´ÓXML×¢ÊÍÖлñµÃ¡£ÎÒ½«ÏÈÑÝʾÈçºÎ²åÈëXML×¢ÊÍ¡¢ÈçºÎ°ÑÕâЩXML×¢Ê͵¼³öΪÁíÒ»¸öÎĵµ¡£È»ºóÔÙÌÖÂÛÿ¸öXML±ê¼ÇµÄÒâ˼£¬ÒÔ¼°Ê¹ÓÃXMLºÍXSLÉú³É°ïÖúÎļþ¡£
XML ×¢ÊÍ
     ËùÓеÄXML×¢ÊͶ¼ÔÚÈý¸öÏòÇ°µÄбÏßÖ®ºó(///)¡£Á½ÌõбÏß±íʾÊÇÒ»¸ö×¢ÊÍ£¬±àÒëÆ÷½«ºöÂÔºóÃæµÄÄÚÈÝ¡£ÈýÌõбÏ߸æËß±àÒëÆ÷£¬ºóÃæÊÇXML×¢ÊÍ£¬ÐèÒªÊʵ±µØ´¦Àí¡£
     µ±¿ª·¢ÈËÔ±ÊäÈëÈý¸öÏòÇ°µÄбÏߺó£¬Microsoft Visual Studio .NET IDE ×Ô¶¯¼ì²éËüÊÇ·ñÔÚÀà»òÕßÀà³ÉÔ±µÄ¶¨ÒåµÄÇ°Ãæ¡£Èç¹ûÊǵĻ°£¬Visual Studio .NET IDE ½«×Ô¶¯²åÈë×¢Êͱê¼Ç£¬¿ª·¢ÈËÔ±Ö»ÐèÒªÔö¼ÓЩ¶îÍâµÄ±ê¼ÇºÍÖµ¡£ÏÂÃæ¾ÍÊÇÔÚ³ÉÔ±º¯ÊýÇ°Ôö¼ÓÈý¸öбÏߣ¬×Ô¶¯Ôö¼ÓµÄ×¢ÊÍ£º
/// <summary>
///
/// </summary>
/// <param name="strFilePath"></param>
public void LoadXMLfromFile(string strFilePath)
     ÕâÀïǶÈëµÄ±ê¼Ç½ö½öÊÇVisual Studio .NET IDE µÄÒ»²¿·Ö±ê¼Ç£¬È»¶øÔÚIntelliSense for xmlÖУ¬²¢Ã»ÓаÑc#¹æ·¶ÖÐËùÓеıê¼ÇÁгöÀ´£¬ÒÅʧµÄ²¿·ÖÖ»ÄÜÓÃÊÖ¹¤²åÈë¡£
     ÕâЩÊÖ¹¤±ê¼ÇÊǷdz£ÓÐÓõģ¬Èç¹ûÇ¡µ±µØÉèÖÃËûÃÇ£¬¶Ôµ¼³ö³


Ïà¹ØÎĵµ£º

ASP.NET MVC¿ØÖÆÆ÷¸ÅÀÀ(C#)

Õâƪ½Ì³Ì̽ÌÖASP.NET MVC¿ØÖÆÆ÷£¬¿ØÖÆÆ÷actionºÍaction result¡£Íê³É´Ë½Ì³Ìºó£¬Äã»á¶®µÃ¿ØÖÆÆ÷ÈçºÎ±»ÓÃÀ´¿ØÖÆ·ÃÎÊÕßÓëASP.NET MVCÍøÕ¾µÄ½»»¥·½Ê½¡£
Àí½â¿ØÖÆÆ÷
MVC ¿ØÖÆÆ÷¸ºÔð¶ÔASP.NET MVCÍøÕ¾µÄÇëÇó×÷³ö»ØÓ¦¡£Ã¿Ò»¸öä¯ÀÀÆ÷ÇëÇ󶼱»Ó³Éäµ½Ò»¸öÌض¨µÄ¿ØÖÆÆ÷¡£ÀýÈ磬ÏëÏóÄãÔÚä¯ÀÀÆ÷µØÖ·À¸ÊäÈëÒÔÏÂURL:
http://localhost/P ......

ÈçºÎ ʹÓà java ²Ù×Ý XML Îļþ


Introduction to XML and XML With Java  
 
If you are looking for sample programs to parse a XML file using DOM/SAX parser or looking for a program to generate a XML file please proceed directly to programs.
This small tutorial introduces you to the basic concepts of XML and using Xer ......

C++µÄXML±à³Ì¾­Ñé¨D¨DLIBXML2¿âʹÓÃÖ¸ÄÏ

дÕâƪÎÄÕµÄÔ­ÒòÓÐÈçϼ¸µã£º1)C++±ê×¼¿âÖÐûÓвÙ×÷XMLµÄ·½·¨£¬ÓÃC++²Ù×÷XMLÎļþ±ØÐëÊìϤһÖÖº¯Êý¿â£¬LIBXML2ÊÇÆäÖÐÒ»ÖÖºÜÓÅÐãµÄXML¿â£¬¶øÇÒËüͬʱ֧³Ö¶àÖÖ±à³ÌÓïÑÔ£»2)LIBXML2¿âµÄTutorialдµÃ²»Ì«ºÃ£¬ÓÈÆäÊDZàÂëת»»µÄ²¿·Ö£¬²»ÊÊÓÃÓÚÖÐÎıàÂëµÄת»»£»3)ÍøÉϵĴó¶àÊý¹ØÓÚLibxml2µÄ½éÉܽö½öÊÇ·­ÒëÁË×Ô´øµÄ×ÊÁÏ£¬Ã»ÓÐÏêϸ½é ......

C# »ñÈ¡ÎļþÐÅÏ¢²¢µ¼³öExcel£¬Xml±¨±í

using System;
using System.Data;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Windows.Forms;
using Excel = Microsoft.Office.Interop.Excel;
// Ìí¼ÓÒýÓÃ -> .NET -> Microsoft.Office.Interop.Excel(2003->11.0, 2007->12.0)
namespace WinFormTable
{
& ......

spring ÖмÓÔØxmlÅäÖÃÎļþµÄ·½·¨

 
Ò»£ºSpringÖеļ¸ÖÖÈÝÆ÷¶¼Ö§³ÖʹÓÃxml×°Åäbean£¬°üÀ¨£º
    XmlBeanFactory £¬
    ClassPathXmlApplicationContext £¬
    FileSystemXmlApplicationContext £¬
    XmlWebApplicationContext
¼ÓÔØÕâЩÈÝÆ÷µÄÅäÖÃÎļþµÄxmlÓÐһϼ¸ÖÖ³£¼ûµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ