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

C#дXMLµÄ¼òµ¥Àý×Ó

Õâ¸öÀý×ÓÒª°Ñbookstore.xmlÎļþÔö¼ÓÒ»Ìõbook¼Ç¼
1 bookstore.xml
<?xml version="1.0" encoding="gb2312"?>
<bookstore>
  <book genre="love" ISBN="1234123">
    <title>who am i </title>
    <author>who</author>
    <price>999</price>
  </book>
</bookstore>
2 bookstore.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
namespace toxml
{
    public class ToXml
    {
        public static void Main(string[] args)
        {
            //ʵÀý»¯Ò»¸öXmlDocument¶ÔÏó
            XmlDocument xmlDoc = new XmlDocument();
            //ʵÀý¶ÔÏó¶ÁȡҪдÈëµÄXMLÎļþ
            xmlDoc.Load("bookstore.xml");
            //²éÕÒ<bookstore>
            XmlNode root = xmlDoc.SelectSingleNode("bookstore");
            //´´½¨Ò»¸ö<book>½Úµã
            XmlElement xe1 = xmlDoc.CreateElement("book");
            //ÉèÖøýڵãgenreÊôÐÔ
            xe1.SetAttribute("leixing", "music");
            //ÉèÖøýڵãISBNÊôÐÔ   
            xe1.SetAttribute("ISBN", "56756");
         


Ïà¹ØÎĵµ£º

C# »Ø¹ö1

c#ÊÂÎñ»Ø¹ö£¨×ª£©
×÷Õߣºxue5ya  À´Ô´£º²©¿ÍÔ°  ·¢²¼Ê±¼ä£º2009-03-20 16:08  ÔĶÁ£º263 ´Î  Ô­ÎÄÁ´½Ó   [ÊÕ²Ø]  
Code
public void UpdateContactTableByDataSet(DataSet ds,string strTblName) 

    ......

C#»ùÓÚTCPµÄSocketͨÐÅ


   
TCPЭÒéÊÇÒ»¸ö»ù±¾µÄÍøÂçЭÒ飬»ù±¾ÉÏËùÓеÄÍøÂç·þÎñ¶¼ÊÇ»ùÓÚTCPЭÒéµÄ£¬ÈçHTTP£¬FTPµÈµÈ£¬ËùÒÔÒªÁ˽âÍøÂç±à³Ì¾Í±ØÐëÁ˽â»ùÓÚTCPЭÒéµÄ±à
³Ì¡£È»¶øTCPЭÒéÊÇÒ»¸öÅÓÔÓµÄÌåϵ£¬Òª³¹µ×µÄŪÇå³þËüµÄʵÏÖ²»ÊÇÒ»ÌìÁ½ÌìµÄ¹¦·ò£¬ËùÐÒµÄÊÇÔÚ¡£net
framework»·¾³Ï£¬ÎÒÃDz»±ØÒªÈ¥×·¾¿TCPЭÒéµ×²ãµÄʵÏÖ£¬Ò»Ñù ......

ÓÃC#Éú³ÉWAPÒ³Ãæ½éÉÜ

ÊÖ»úÉÏÍøÔ½À´Ô½ÆÕ¼°£¬ÊÖ»úÖÖÀàÔ½À´Ô½¶à£¬Òª¿ª·¢Ò»¸ö¹©ÊÖ»ú·ÃÎÊÍøÕ¾²¢¼æÈÝËùÓв»Í¬ÀàÐ͵ÄÊÖ»úºÍä¯ÀÀÆ÷ÊǺܲ»ÈÝÒ׵쬱±¾©Ê¦·¶´óѧ×ÔϰÊÒ²éѯƽ̨µÄÊÖ»ú°æ×î³õÊÇÖ±½ÓÓÃASP.NETʵÏֵģ¬Ö»ÊÇÓÃCSS¶¨Òå³ÉÁËÊʺÏÊÖ»úÆÁÄ»µÄÒ³Ãæ£¬ËäȻͬѧÃÇ·ÃÎÊ»ù±¾Ã»ÓÐÎÊÌ⣬µ«ÊÇҲż¶û»áÓГ²»ÄÜÑ¡ÔñÏÂÀ­²Ëµ¥”¡¢“°´Å¥button²»Ä ......

flex ²Ù×÷xml ʵÏÖÔöɾ¸Ä²é

Ïêϸ½éÉÜFlexÖвÙ×÷XML(ÉÏ)
2009Äê12ÔÂ30ÈÕ ÐÇÆÚÈý 12:05
Ò» ÔÚ½éÉÜFlexÖвÙ×÷XML֮ǰ£¬Ê×Ïȼòµ¥½éÉÜÏÂXMLÖеĻù±¾ÊõÓï¡£   
ÔªËØ£ºXMLÖÐÓµÓпªÊ¼±êÇ©ºÍ½áÊø±êÇ©µÄÕâÒ»¿é³ÆÎª“ÔªËØ”   
½Úµã£º°ÑXMLÔªËØÓëÎı¾½áºÏÆðÀ´Í³³ÆÎª½Úµã   
¸ù½Úµã£ºÎ»ÓÚÕû¸öXMLÎÄ ......

dom4j¶ÁÈ¡xmlÎļþÀý×Ó

package com.test.dom4j;
import java.io.*;
import java.util.*;
import org.dom4j.*;
import org.dom4j.io.*;
public class MyXMLReader {
public static void main(String arge[]) {
try {
File f = new File("src/testxml.xml");
SAXReader reader = new SAXReader();
Document doc = reader.rea ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ