XML
文章平均质量分 66
diandian82
这个作者很懒,什么都没留下…
展开
-
Create XML using class XmlTextWriter
This is an example to create XML document using XmlTextWriter in C#. The following XML is the result i want to generate.xml version="1.0" encoding="gb2312"?>Books> Book genre="Mystery"原创 2008-12-11 11:30:00 · 681 阅读 · 0 评论 -
Create XML using class XmlDocument
The result XML document is as follows:xml version="1.0" encoding="GB2312"?>Books> Book genre="Mystery" publicationdate="2001" ISBN="123456789"> title>The Case of the Missing Cookietit原创 2008-12-11 11:57:00 · 587 阅读 · 0 评论 -
Simple example for Linq To XML
The XML Source file is:xml version="1.0" encoding="GB2312"?>Books> Book genre="Mystery" publicationdate="2001" ISBN="123456789"> title>The Case of the Missing Cookietitle> author原创 2008-12-12 11:36:00 · 863 阅读 · 0 评论 -
Customize web.config sections and register your own configuration then get values in asp.net
1. Please firstly add reference System.Configuration2.In web.config file you must register your own section under the path /configuration/configSectionsHere I will show the example:configura原创 2008-12-23 10:32:00 · 695 阅读 · 0 评论 -
Get XML tree format based on the tree data in SQL server table
Here I got a table as follows:ID PID NAME1 -1 汽车2 -1 飞机3 -1 火车4 1 小汽车5 1 大卡车6 1 公交车7原创 2009-03-13 13:01:00 · 906 阅读 · 0 评论 -
clientaccesspolicy.xml vs. crossdomain.xml
Silverlight supports two different mechanisms for services to opt-in to cross-domain access: • Place a clientaccesspolicy.xml file at the root of the domain where the service is hosted to configure原创 2010-04-26 13:55:00 · 1301 阅读 · 0 评论 -
使用SQL操作XML简单示例
declare @xml xmlset @xml = select @xmldeclare @value varchar(10)set @value = val1set @xml.modify(insert into (/root)[1])select @xmlset @value = val2set @xml.modify(replace value of (/roo原创 2010-05-27 17:59:00 · 523 阅读 · 0 评论 -
Linq to XML customize distinct function
Definition comparer class, class ItemComparer : IEqualityComparer { public bool Equals(XElement x, XElement y) { return x.Attribute("Name").Value == x.Attrib原创 2010-05-28 13:01:00 · 625 阅读 · 0 评论 -
Simple sample for transforming XML to HTML by using XSLT
1. Create a general web application. 2. Create the XML file called "Book.xml" Kalen Delaney Inside SQL Server 2000 Ken Henderson The Guru's Guide to SQL S原创 2010-04-14 16:01:00 · 479 阅读 · 0 评论