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

XML³£ÓòÙ×÷

 XMLÔÚÎÒÃǵijÌÐòÖÐÓõ½µÄÔ½À´Ô½¶à£¬ÒòΪËü´æ´¢¡¢¶ÁÈ¡¡¢Ð޸Ķ¼±È½Ï·½±ã¡£
ÏÂÃæÎÒÀ´·ÖÏíÒ»ÏÂXMLµÄ³£ÓòÙ×÷(Ôöɾ¸Ä²é)£¬ÏÂÃæÊdzÌÐòÔËÐÐЧ¹û£º
Ôö(Ôö¼Ó½Úµã°üÀ¨´´½¨XML):
/// <summary>
/// ´´½¨XMLÎĵµ
/// </summary>
/// <param name="path"></param>
public static void CreateXML(string path, Student stu)
{
XmlTextWriter xw = new XmlTextWriter(path, Encoding.UTF8);
xw.WriteStartDocument();
xw.Formatting = Formatting.Indented;
xw.WriteStartElement("Students");
xw.WriteStartElement("Student");
xw.WriteStartElement("SID");
xw.WriteStartAttribute("id");
xw.WriteValue(stu.SID.ToString());
xw.WriteEndAttribute();
xw.WriteValue(stu.SID.ToString());
xw.WriteEndElement();
xw.WriteStartElement("Name");
xw.WriteValue(stu.Name);
xw.WriteEndElement();
xw.WriteStartElement("Age");
xw.WriteValue(stu.Age.ToString());
xw.WriteEndElement();
xw.WriteStartElement("Sex");
xw.WriteValue(stu.Sex);
xw.WriteEndElement();
xw.WriteStartElement("Address");
xw.WriteValue(stu.Address);
xw.WriteEndElement();
xw.WriteEndElement();
xw.WriteEndElement();
xw.Flush();
xw.Close();
MessageBox.Show(path + " ´´½¨³É¹¦£¡", "Ìáʾ", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

ɾ(¸ù¾ÝÌõ¼þɾ³ý)£º
/// <summary>
/// ɾ³ý²Ù×÷
/// </summary>
/// <param name="path">XML·¾¶</param>
/// <param name="id">ɾ³ýµÄID</param>
public static void Delete(string path, string id)
{
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(path);
XmlNode xnl = xmlD


Ïà¹ØÎĵµ£º

¹ØÓÚSQLServer2005µÄѧϰ±Ê¼Ç——XMLµÄ´¦Àí

ÔÚ
SQLServer2005
ÖжÔ
XML
µÄ´¦Àí¹¦ÄÜÏÔÈ»ÔöÇ¿Á˺ܶ࣬ÌṩÁË
query(),value(),exist(),modify(),nodes()
µÈº¯Êý¡£
¹ØÓÚ
xml
£¬ÄÑÒÔÀí½âµÄ²»ÊÇ
SQLServer
ÌṩµÄº¯Êý£¬¶øÊǶÔ
xml
±¾ÉíµÄÀí½â£¬¿´Ëƺܼòµ¥µÄÎļþ¸ñʽ£¬´¦ÀíÆðÀ´È´ÊǷdz£À§Äѵġ£±¾ÎÄÖ»Êdzõ̽һ϶øÒÑ¡£
Ïê¼û
SQLServer
Áª»ú°ïÖú£º
Ö÷Ìâ
˵ ......

½«XMLÊý¾ÝÌî³äµ½TreeViewÖÐ


Îĵµ¼°´úÂëÏÂÔØ£ºhttp://www.dingos.cn/index.php?topic=1899.0
½éÉÜ
µ±²Ëµ¥ÏîÊǾ­³£¸Ä±äʱ£¬´ÓXMLÎĵµÖд´½¨TreeView²Åµ±ÊǷdz£ÓÐÓõġ£ÀýÈ磬ʹÓÃXML×÷ΪÊý¾Ý¿â´æ´¢¼Ç¼¡£
ÕâÀïÓиö¼òµ¥Ê¾Àý¡£ÒÔ·À»ìÏýÕâ¸öÀý×ӱȽϼòµ¥¡£
±³¾°
¶ÔXML¡¢TreeView¿Ø¼þµÄÓ¦Óã¬ÔÚVisual StudioÖÐÓÐÖúÓÚÀí½âÕâЩ²½Öè¡£
ʹÓôúÂë
×¢Ò⣠......

HTML£¬XHTMLºÍXMLµÄÇø±ð

£¨1£©XML
XMLÊÇThe Extensible Markup Language(¿ÉÀ©Õ¹±êʶÓïÑÔ)µÄ¼òд¡£Ä¿Ç°ÍƼö×ñÑ­µÄÊÇW3CÓÚ2000Äê10ÔÂ6ÈÕ·¢²¼µÄXML1.0£¬²Î¿¼£¨www.w3.org/TR/2000/REC-XML-20001006£©¡£ºÍHTMLÒ»Ñù£¬XMLͬÑùÀ´Ô´ÓÚSGML£¬µ«XMLÊÇÒ»ÖÖÄܶ¨ÒåÆäËûÓïÑÔµÄÓï¡£XML×î³õÉè¼ÆµÄÄ¿µÄÊÇÃÖ²¹HTMLµÄ²»×㣬ÒÔÇ¿´óµÄÀ©Õ¹ÐÔÂú×ãÍøÂçÐÅÏ¢·¢²¼µÄÐèÒª£¬ºó ......

phpÏÂͨ¹ýxml_parse½âÎöxmlÎļþ

xml_parse½âÎöxmlÎļþʱºò£¬
ºÜÓпÉÄܲ»½ö½öµ÷ÓÃÒ»´Îcharacter_handler¡£
ËùÒÔÔÚ»ñµÃxml½ÚµãµÄÎı¾ÐÅÏ¢µÄʱºò£¬ÒªÓÃÁ¬½ÓÔËËã".="¡£
²Î¿¼ http://jp2.php.net/manual/ro/function.xml-set-character-data-handler.php
ken at positive-edge dot com
30-Jan-2002
01:20
the function handler is called ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ