xml – Google Web Toolkit(GWT)XPath
发布时间:2020-12-16 00:01:13 所属栏目:百科 来源:网络整理
导读:我需要在GWT中评估XPath查询. 我没有服务器端,所以我必须在我的GWT客户端应用程序中评估它们. 哪个是GWT最好的XPath库? 我找到了totoe( http://code.google.com/p/totoe/),一个基于Sarissa的GWT图书馆(谢谢Diogo!).它就像一个魅力! 例如: String xml = "
我需要在GWT中评估XPath查询.
我没有服务器端,所以我必须在我的GWT客户端应用程序中评估它们. 哪个是GWT最好的XPath库?
我找到了totoe(
http://code.google.com/p/totoe/),一个基于Sarissa的GWT图书馆(谢谢Diogo!).它就像一个魅力!
例如: String xml = "..."; Document document = new XmlParser().parse(xml,"xmlns:acme="http://www.acme.org""); Element root = document.getRoot(); List<Comment> comments = document.findByType(NodeType.COMMENT); List<Node> products = document.selectNodes("//acme:products"); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |