其實這個Free ASP.NET XML component裡面他有很多東西可以用。
Notice: The Chilkat documentation is located at:
http://www.chilkatsoft.com/refdoc
我把我的範例寫出來給大家看,用這寫XML速度很快。
Private Sub demo()
‘範例
Dim xml As New Chilkat.Xml()
Dim companyNode As Chilkat.Xml
Dim nameNode As Chilkat.Xml
companyNode = xml.NewChild(”MapLayer”, “”)
nameNode = companyNode.NewChild(”name”, “Apple Computer, Inc.”)
‘ Add an attribute to this node.
nameNode.AddAttribute(”Symbol”, “AAPL”)
companyNode.NewChild2(”address”, “1 Infinite Loop”)
companyNode.NewChild2(”city”, “Cupertino”)
companyNode.NewChild2(”state”, “CA”)
companyNode.NewChild2(”zip”, “95014″)
companyNode.NewChild2(”website”, “http:www.apple.com”)
companyNode.NewChild2(”phone”, “408-996-1010″)
Dim strurl As String = Server.MapPath(”mod1.xml”)
xml.SaveXml(strurl)
End Sub
留言列表