关于Linux下xml解析器

hnoe 2011-06-08 10:23:36
请问Linux下支持Schema验证的xml解析器有吗?
最好还能支持XPATH查询的,请各位推荐一下
...全文
200 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
masterz 2011-07-07
  • 打赏
  • 举报
回复
Xerces-C++ 支持schema,对xpath支持不好,XQilla is an XQuery∞ and XPath 2∞ library and command line utility written in C++, implemented on top of the Xerces-C∞ library.
icy_csdn 2011-07-07
  • 打赏
  • 举报
回复
java的话就用SAXON好了。
huntor 2011-07-06
  • 打赏
  • 举报
回复
Xerces-C++


// Instantiate the DOM parser.
XercesDOMParser parser;
parser.setDoNamespaces(true);
parser.setDoSchema(true); // HERE
parser.parse(xmlFile);


SAX2XMLReader* parser = XMLReaderFactory::createXMLReader();
parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, true);
parser->setFeature(XMLUni::fgXercesSchema, true); // HERE
parser->parse(xmlFile);
mrshelly 2011-06-08
  • 打赏
  • 举报
回复
lxml

libxml2
hnoe 2011-06-08
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 mrshelly 的回复:]

lxml

libxml2
[/Quote]

但是我看libxml2的一些介绍说对shcema的支持还在完善,lxml我再了解一下

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧