开发者

Perl XML::LibXML Partial Match

开发者 https://www.devze.com 2023-02-01 01:44 出处:网络
How to tell XML开发者_运维知识库::LibXML to find nodes in a xml file by partial match, e.g. if the nodecontains \'Disc\' or \'iso\'.

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

精彩评论

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