Xpath to select commented code

annapelican

New Member
HiI have this xpath query:\[code\]descendant-or-self::link\[/code\]and this html code:\[code\]<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link rel="stylesheet" type="text/css" href="http://stackoverflow.com/questions/3887613/css/style.css"><link rel="stylesheet" type="text/css" href="http://stackoverflow.com/questions/3887613/css/elements.css"><title>Page</title><!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="http://stackoverflow.com/questions/3887613/css/ie6.css" /><![endif]--></head>etc...\[/code\]What do I need to add to this query to make it also match the commented \[code\]<link>\[/code\].This is a continuation of this question: http://stackoverflow.com/questions/3879108/php-domdocument-alter-conditional-comments
 
Back
Top