XMLµÄʹÓÃ
дXML£º
protected void btnSave_Click(object sender, EventArgs e)
{
//ȨÏÞÅжÏ
XmlTextWriter xmlw = new XmlTextWriter(Server.MapPath("~\\") + "FriendLink.xml", Encoding.GetEncoding("gb2312"));
xmlw.Formatting = Formatting.Indented;
xmlw.WriteStartDocument();
xmlw.WriteStartElement("Pictures");
string[] pic = Request.Form["picsrc"].Split(',');
string[] url = Request.Form["urlsrc"].Split(',');
string[] nam = Request.Form["name"].Split(',');
int[] wh = null;
for (int i = 0; i < 4; i++)
{
xmlw.WriteStartElement("picsrc");
xmlw.WriteString(pic[i]);
xmlw.WriteEndElement();
xmlw.WriteStartElement("name");
if (string.IsNullOrEmpty(nam[i]))
xmlw.WriteString("...");
else
xmlw.WriteString(nam[i]);
xmlw.WriteEndElement();
xmlw.WriteStartElement("
Ïà¹ØÎĵµ£º
flexºÍspring+hibernateÕûºÏÍê³Éºóweb.XML³öÏÖÈçÏ´íÎó
The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,reso ......
Ò»¡¢XMLÖ»ÓÐÒ»¸öTableµÄÇé¿ö
£¨1£©userInfo.xml
<?xml version="1.0" encoding="utf-8" ?>
<UserInfo ......
1£® ÏÂÔØÓë°²×°
dom4jÊÇsourceforge.netÉϵÄÒ»¸ö¿ªÔ´ÏîÄ¿£¬Ö÷ÒªÓÃÓÚ¶ÔXMLµÄ½âÎö¡£´Ó2001Äê7Ô·¢²¼µÚÒ»°æÒÔÀ´£¬ÒѽÐøÍƳö¶à¸ö°æ±¾£¬Ä¿Ç°×î¸ß°æ±¾Îª1.5¡£
dom4jרÃÅÕë¶ÔJava¿ª·¢£¬Ê¹ÓÃÆðÀ´·Ç³£¼òµ¥¡¢Ö±¹Û£¬ ......
XStreamʹÓÃ
XStreamÊÇÒ»¸öJava¶ÔÏóºÍXMLÏ໥ת»»µÄ¹¤¾ß£¬ºÜºÃºÜÇ¿´ó¡£ÌṩÁËËùÓеĻù´¡ÀàÐÍ¡¢Êý×é¡¢¼¯ºÏµÈÀàÐÍÖ±½Óת»»µÄÖ§³Ö¡£Òò´ËXML³£ÓÃÓÚÊý¾Ý½»»»¡¢¶ÔÏóÐòÁл¯£¨ÕâÖÖÐòÁл¯ºÍJava¶ÔÏóµÄÐòÁл¯¼¼ÊõÓÐ×ű¾ÖʵÄÇø±ð£©¡£
XStreamÖеĺËÐÄÀà¾ÍÊÇXStreamÀ࣬һ°ãÀ´Ëµ£¬ÊìϤÕâ¸öÀà»ù±¾¾Í¹»ÓÃÁË£¬Èç¹ûÄãÓõĸü¶à£¬¹À¼ÆÊÇÄ ......