Re: [xml] Do patterns support namespaces ?



On Sun, 2011-10-23 at 23:49 +0200, Michael Ludwig wrote:
There is a namespace prefix in your pattern that cannot be
bound to a namespace because you didn't declare any.

Yeah, missed that.

jo vostro:~$ echo '<?xml version="1.0"?><dummy xmlns:a="test"/>' |
xmllint --pattern "//a:b" -
Pattern //a:b failed to compile
<?xml version="1.0"?>
<dummy xmlns:a="test"/>


Thanks,
Joachim





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]