XHTMLSerializer

一:RESTful Web services:
download:http://www.51cnnet.net/ebook/364-restful-web-services
douban:http://www.douban.com/subject/2054201/
"It might seem a little odd to use XHTML, a technology associated with the human web,
as a representation format for a web service. I chose it for this example because HTML
solves many general markup problems and you’re probably already familiar with it. I’d
probably choose it for a real web service, for exactly the same reasons. Though it’s
human-readable and easy to render attractively, nothing prevents well-formed HTML
from being processed automatically like XML. XHTML is also extensible. I turned a
generic XHTML list into a list of “planets” using XHTML’s class attribute. This is a
simple example of an XHTML microformat: a way of adding semantic meaning to
XHTML’s markup tags.
"

二:用XHTML表示对象
<dl><dt>name</dt><dd>value</dd></dl>,可以用来表示一个对象,属性名+属性值
<ul><li>one object</li></uli>,可以用来表示一个集合类型的对象
二者混合使用,可以表示任意类型的对象

三、常见的文本-对象序列化
a.XmlSerializer,
b.JsonSerializer
c.csv,表示简单的二维数据结构
d.XHTMLSerializer ?

四、XHTMLSerializer
http://www.google.cn/search?q=c%23+xhtmlSerializer
其中有一个:
http://xerces.apache.org/xerces-j/apiDocs/org/apache/xml/serialize/XHTMLSerializer.html

不过很可惜,不是我想要的那种。谁有类似的类库,推荐一下~

五、需要有这么一套类库

Code Manage:
http://code.google.com/p/xhtmlserializer/

Discussion Groups:

http://space.cnblogs.com/group/100846/

posted @ 2009-05-20 17:45  高天蒲  阅读(223)  评论(1编辑  收藏  举报
[url=http://t.sina.com.cn/1084588625?s=6uyXnP][img]http://service.t.sina.com.cn/widget/qmd/1084588625/a57ab42b/1.png[/img][/url]