1

Closed

Why I can't find node if there is no namespace?

description

In file like this '//s:Double' is working But '//Setter' does not work. <?xml version="1.0" encoding="utf-8" ?> <Path ToolTip="Process" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dd="clr-namespace:DiagramDesigner;assembly=DiagramDesigner"> <Path.Style> <Style TargetType="Path"> <Style.BasedOn> <Style TargetType="Path"> <Style.Resources> <ResourceDictionary /> </Style.Resources> <Setter Property="Shape.Fill"> <Setter.Value> <LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush.GradientStops> <GradientStop Color="#FFFAFBE9" Offset="0" /> <GradientStop Color="#FFFFA500" Offset="1" /> </LinearGradientBrush.GradientStops> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="Shape.Stroke"> <Setter.Value> <SolidColorBrush>#FFD69436</SolidColorBrush> </Setter.Value> </Setter> <Setter Property="Shape.StrokeThickness"> <Setter.Value> <s:Double>1</s:Double> </Setter.Value> </Setter> ........ </Path>
Closed Nov 24, 2009 at 1:17 PM by jcoon
This issue is resolved in the latest development version (3.0.2 Alpha):

http://xmlexplorer.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=34234

XPath support in the .NET Framework does not allow selection of elements in a 'default' namespace (a namespace where no prefix is provided). See this article for a more in-depth discussion:

http://www.topxml.com/people/bosley/defaultns.asp

This is a duplicate issue, please use the Discussions tab or comment on the existing issue:

http://xmlexplorer.codeplex.com/WorkItem/View.aspx?WorkItemId=3783

Thanks!

Jason

comments