开发者

Perl XML::LibXML Partial Match

How to tell XML开发者_运维知识库::LibXML to find nodes in a xml file by partial match, e.g. if the node contains 'Disc' or 'iso'.

(@discs) = $link->findnodes("./link[./description/text()='Disc.iso']");

Thanks


Use the XPath function contains. Combine the expressions with the function or.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜