万兽猫最高

老猫伏地,志在吃鱼。
随笔 - 95, 评论 - 561, 引用 - 8

导航

关于

猫年快乐

 

标签

每月存档

最新留言

广告

Say hello in LA

首先,祝LP大人生日快乐。
 到这里已经1星期了,时差差不多调整好乐。跳出来跟各位说声Hello  :)
  LA 的确如 Grace 所说,没有 SHA 这么多可以玩的地方,不过还没有去过LA的 Downtown,不知道那里如何。
最令我郁闷的是:这里的电视不转播F1的比赛,昨天转播的是F3000,感觉不爽的说。

posted on 2004-04-27 06:46:00 by zee  评论(11) 阅读(1758)

Say goodbye to Shanghai

订了这个周末的飞机去LA,今天刚刚把我的手机销号。下一次Blog,应该就是从米国发的了。 这次时间安排的非常不巧,既没有赶上和Grace 她们一起去西雅图,23/24号MVP在上海的活动也没有办法参加了。今年9/26的F1上海大奖赛, 我也没有办法到现场了的说。郁闷啊! 希望以后还有机会可以和各位朋友再把酒言欢...

posted on 2004-04-16 13:26:00 by zee  评论(13) 阅读(2227)

也说 Xpath 处理 Xml中的ns

  蝈蝈俊给出的解决办法,是基于XmlNamespaceManager 的。实际上,我本人更喜欢直接在Xpath里搞定:

以蝈蝈文中的Sample为例:

string ww = @"<item rdf:about=""http://ncsp.forum.nokia.com/download/?asset_id=10357""
xmlns:rdf=""http://www.w3.org/1999/02/22-rdf-syntax-ns#""
xmlns: dc=""http://purl.org/dc/elements/1.1/""
xmlns:ncsp=""http://ncsp.forum.nokia.com/"">
 <title>Advanced Audio Support v1.0</title>
<link>http://ncsp.forum.nokia.com/download/?asset_id=10357</link>
 <description>Media Server Audio Streaming plug-in installation file for Nokia 9200 Series Communicators. Deprecated - use the official audio stream plug-in instead, available from SDK v1.2 and later.</description>
 <dc:title xmlns: dc=""http://purl.org/dc/elements/1.1/"">Advanced Audio Support v1.0</dc:title>
 <dc:identifier xmlns: dc=""http://purl.org/dc/elements/1.1/"">10357</dc:identifier>
 <dc:language xmlns: dc=""http://purl.org/dc/elements/1.1/"">English</dc:language>
 <ncsp:filesize xmlns:ncsp=""http://ncsp.forum.nokia.com/"">7 kB</ncsp:filesize>
 <ncsp:class xmlns:ncsp=""http://ncsp.forum.nokia.com/"">Toolkit</ncsp:class>
</item>";
XmlReader read = new XmlTextReader(new StringReader(ww));
XPathDocument doc = new XPathDocument(read);
XPathNavigator nav = doc.CreateNavigator();
string strXPath = "/item/*[local-name(.) = 'identifier' and namespace-uri(.) = 'http://purl.org/dc/elements/1.1/']";

XPathExpression expr = nav.Compile(strXPath);
.......

 

posted on 2004-04-07 11:14:00 by zee  评论(6) 阅读(4403)

好有趣的.net Framework 2.0

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Note: This Class is new in the Whidbey Alpha.
NOTE: This Class is now obsolete.
 
呵呵,新引入的Class就被obsolete了

posted on 2004-04-03 14:56:00 by zee  评论(3) 阅读(2196)

Powered by: Joycode.MVC引擎 0.5.2.0