asp.net²Ù×÷xmlÎÊÌâ - .NET¼¼Êõ / ASP.NET
ÈçºÎÔÚÒ»¸ö¿ÕxmlÎĵµÀï´´½¨£º
<hhh>
<bbb>
<name>ÕÅɽ</name>
<born>2010-10-13</born>
</bbb>
</hhh>
XML.writ()
XmlTextWriter writer = new XmlTextWriter(FullFileName, System.Text.Encoding.UTF8);
writer.WriteStartElement("bbb");
writer.WriteStartElement("name");
writer.WriteString("ÕÅÈý");
writer.WriteEndElement();
writer.WriteStartElement("born");
writer.WriteString("2010-10-13");
writer.WriteEndElement();
writer.WriteEndElement();
Â¥ÉÏЧÂÊ×î¸ß
¼òµ¥µÄ×ö·¨¿ÉÒÔÓÃXmlDocumentÈ»ºóSave
×¢ÊÍÊÇÎÒ֮ǰµÄ¡£ÎÞÊÓËü
FileStream fs = new FileStream(@"C:\Documents and Settings\Administrator\×ÀÃæ\mytarget.xml", FileMode.Create);
XmlWriter writer = XmlWriter.Create(fs);
writer.WriteStartDocument();
//¸ùÔªËØ£¨Write a root element.£©
writer.WriteStartElement("hhh");
...
writer.WriteEndElement("/hhh");
writer.WriteEndDocument();
writer.Flush();
http://blog.csdn.net/lee576/archive/2008/11/10/3268845.aspx
http://www.68design.net/Development/Aspnet/Basis-AspNet/11369-1.html
ÈçºÎÅжÏ<name>ÕÅɽ</name>½ÚµãÊÇ·ñ´æÔÚ£¬È»ºó
Ïà¹ØÎÊ´ð£º
C# code:
SqlConnection conn = CsDB.sqlcon();
SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
Private Sub Command1_Click()
Dim MyString() As String
Open "a.xml" For Binary As #1 ' ´ò¿ª¸Õ´´½¨µÄÎļþ¡£
ReDim MyString(LOF(1) - 1)
Put #1, , MyRecord ' ¶ÁÈëËùÓÐ×Ö·ûµ½±äÁ¿ÖÐ ......
Microsoft JET Database Engine '80040e07'
±ê×¼±í´ïʽÖÐÊý¾ÝÀàÐͲ»Æ¥Åä¡£
\wwwroot\update.asp, line 20
--------------------------------------------------------------------------------
Ho ......
ÏÖÔÚÓиöxmlÎļþÊÇ<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xm ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøվͼƬ¶¼Õ¼ÓÃÁËÒ»´ó°ë
ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂð£¿
Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵
3Q´ó¼Ò
htmlÒ³Ãæ.
Õâ¸ö,¼ÈÈ»Ö÷Ò ......