惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
V
Vulnerabilities – Threatpost
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
G
GRAHAM CLULEY
S
Securelist
P
Palo Alto Networks Blog
MongoDB | Blog
MongoDB | Blog
A
Arctic Wolf
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
WordPress大学
WordPress大学
Project Zero
Project Zero
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
C
Cyber Attacks, Cyber Crime and Cyber Security
F
Fortinet All Blogs
博客园 - 叶小钗
B
Blog RSS Feed
C
Cisco Blogs
Google DeepMind News
Google DeepMind News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
K
Kaspersky official blog
D
Docker
Latest news
Latest news
Cisco Talos Blog
Cisco Talos Blog
T
Tor Project blog
Cyberwarzone
Cyberwarzone
Security Latest
Security Latest
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
C
Check Point Blog
J
Java Code Geeks
Simon Willison's Weblog
Simon Willison's Weblog
T
Tenable Blog
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
H
Help Net Security
L
LINUX DO - 热门话题
T
The Exploit Database - CXSecurity.com
Jina AI
Jina AI
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
NISL@THU
NISL@THU
美团技术团队
腾讯CDC

博客园 - Freedom

ebook site Debugging Applications for Microsoft .NET and Microsoft Windows: Notes-Books Debugging Applications for Microsoft .NET and Microsoft Windows: Notes-Prerequisites to Debugging Debugging Applications for Microsoft .NET and Microsoft Windows: Notes-The Debugging Process NET垃圾回收机制 A Software Developer’s Reading Plan 浅析.NET中的Serialization #if (C# Reference) VS 2008 常用快捷键! One Day-XML:XML Schema 参考手册 One Day-XML:XSLT One Day-XML:WAP One Day-XML:Web Services One Day-XML:WSDL One Day-XML:RDF One Day-XML:RSS One Day-XML:XForms One Day-XML:SOAP One Day-XML:XML DOM
XML Namespaces and How They Affect XPath and XSLT
Freedom · 2010-05-26 · via 博客园 - Freedom

ref:http://msdn.microsoft.com/en-us/library/ms950779.aspx

How to use xpath to query the doc, also including namespace.

 代码

<?xml version="1.0" encoding="utf-8"?>
<TestSite xmlns="http://schemas.microsoft.com/windows/ProtocolsTest/2007/07/TestConfig" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.microsoft.com/windows/ProtocolsTest/2007/07/TestConfig http://schemas.microsoft.com/windows/ProtocolsTest/2007/07/TestConfig.xsd">
  
<Properties>
    
<!--Angelo -->
    
<!--Only Add your change list here!-->
       
<Property name="Path.DataSourceReference.SchemaVersion200310" value="Report\DataSources\DataSource\DataSourceReference" />
    
<Property name="Path.DataSets.SchemaVersion200310" value="Report\DataSets" />
    
<Property name="Path.DataSet.SchemaVersion200310" value="Report\DataSets\DataSet" />
    
<Property name="Path.Fields.SchemaVersion200310" value="Report\DataSets\DataSet\Fields" />
    
<Property name="Path.Field.SchemaVersion200310" value="Report\DataSets\DataSet\Fields\Field" />
    
<Property name="Path.DataField.SchemaVersion200310" value="Report\DataSets\DataSet\Fields\Field\DataField" />
    
<Property name="Path.Value.SchemaVersion200310" value="Report\DataSets\DataSet\Fields\Field\Value" />
    
<Property name="Path.Query.SchemaVersion200310" value="Report\DataSets\DataSet\Query" />
    
<Property name="Path.DataSourceName.SchemaVersion200310" value="Report\DataSets\DataSet\Query\DataSourceName" />
    
<Property name="Path.CommandType.SchemaVersion200310" value="Report\DataSets\DataSet\Query\CommandType" />
    
<Property name="Path.CommandText.SchemaVersion200310" value="Report\DataSets\DataSet\Query\CommandText" />
    
<Property name="Path.QueryParameters.SchemaVersion200310" value="Report\DataSets\DataSet\Query\QueryParameters" />
    
<Property name="Path.QueryParameter.SchemaVersion200310" value="Report\DataSets\DataSet\Query\QueryParameters\QueryParameter" />
    
<Property name="Path.Timeout.SchemaVersion200310" value="Report\DataSets\DataSet\Query\Timeout" />
    
<Property name="Path.CaseSensitivity.SchemaVersion200310" value="Report\DataSets\DataSet\CaseSensitivity" />
    
<Property name="Path.Collation.SchemaVersion200310" value="Report\DataSets\DataSet\Collation" />
    
<Property name="Path.AccentSensitivity.SchemaVersion200310" value="Report\DataSets\DataSet\AccentSensitivity" />
    
<Property name="Path.KanatypeSensitivity.SchemaVersion200310" value="Report\DataSets\DataSet\KanatypeSensitivity" />
    
<Property name="Path.WidthSensitivity.SchemaVersion200310" value="Report\DataSets\DataSet\WidthSensitivity" />
    
<Property name="Path.Filters.SchemaVersion200310" value="Report\DataSets\DataSet\Filters" />
    
<Property name="Path.Filter.SchemaVersion200310" value="Report\DataSets\DataSet\Filters\Filter" />
    
<Property name="Path.FilterExpression.SchemaVersion200310" value="Report\DataSets\DataSet\Filters\Filter\FilterExpression" />
    
<Property name="Path.Operator.SchemaVersion200310" value="Report\DataSets\DataSet\Filters\Filter\Operator" />
    
<Property name="Path.FilterValues.SchemaVersion200310" value="Report\DataSets\DataSet\Filters\Filter\FilterValues" />
    
<Property name="Path.FilterValue.SchemaVersion200310" value="Report\DataSets\DataSet\Filters\Filter\FilterValues\FilterValue" />
    
<Property name="Path.Body.SchemaVersion200310" value="Report\Body" />
    
<Property name="Path.ReportItems.SchemaVersion200310" value="Report\Body\ReportItems" />
    
<Property name="Path.Line.SchemaVersion200310" value="Report\Body\ReportItems\Line" />
    
<Property name="Path.Style.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style" />
    
<Property name="Path.BorderColor.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BorderColor" />
    
<Property name="Path.Default.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BorderColor\Default" />
    
<Property name="Path.Left.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BorderColor\Left" />
    
<Property name="Path.Right.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BorderColor\Right" />
    
<Property name="Path.Top.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BorderColor\Top" />
    
<Property name="Path.Bottom.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BorderColor\Bottom" />
    
<Property name="Path.BorderStyle.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BorderStyle" />
    
<Property name="Path.BorderWidth.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BorderWidth" />
    
<Property name="Path.BackgroundColor.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BackgroundColor" />
    
<Property name="Path.BackgroundGradientType.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BackgroundGradientType" />
    
<Property name="Path.BackgroundGradientEndColor.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BackgroundGradientEndColor" />
    
<Property name="Path.BackgroundImage.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BackgroundImage" />
    
<Property name="Path.Source.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BackgroundImage\Source" />
    
<Property name="Path.MIMEType.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BackgroundImage\MIMEType" />
    
<Property name="Path.BackgroundRepeat.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\BackgroundImage\BackgroundRepeat" />
    
<Property name="Path.FontStyle.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\FontStyle" />
    
<Property name="Path.FontFamily.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\FontFamily" />
    
<Property name="Path.FontSize.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\FontSize" />
    
<Property name="Path.FontWeight.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\FontWeight" />
    
<Property name="Path.Format.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\Format" />
    
<Property name="Path.TextDecoration.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\TextDecoration" />
    
<Property name="Path.TextAlign.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\TextAlign" />
    
<Property name="Path.VerticalAlign.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\VerticalAlign" />
    
<Property name="Path.Color.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\Color" />
    
<Property name="Path.PaddingLeft.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\PaddingLeft" />
    
<Property name="Path.PaddingRight.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\PaddingRight" />
    
<Property name="Path.PaddingTop.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\PaddingTop" />
    
<Property name="Path.PaddingBottom.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\PaddingBottom" />
    
<Property name="Path.LineHeight.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\LineHeight" />
    
<Property name="Path.Direction.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\Direction" />
    
<Property name="Path.WritingMode.SchemaVersion200310" value="Report\Body\ReportItems\Line\Style\WritingMode" />
    
  
</Properties>
</TestSite>

Always failed when there the namespace existing.