Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <node type="SPDependencies" Name="SPDependencies">
- <node type="StoredProc" Name="SP1">
- <node type="OperationType" Name="Type1">
- <node type="TableName" Name="Table1"/>
- <node type="TableName" Name="Table2"/>
- </node>
- <node type="OperationType" Name="Type2">
- <node type="TableName" Name="Table1"/>
- <node type="TableName" Name="Table2"/>
- </node>
- .....
- </node>
- <node type="StoredProc" Name="SP2">
- <node type="OperationType" Name="Type1">
- ...
- ...
- </node>
- </node>
- <SP1>
- <Type1>
- <Table1>
- <Table2>
- <Table3>
- <Type2>
- <Table1>
- <Table2>
- <Table3>
- <SP2>
- <Type1>
- ........
- <Window.Resources>
- <HierarchicalDataTemplate DataType="node"
- ItemsSource="{Binding XPath=node}">
- <TextBox Width="Auto"
- Text="{Binding XPath=@Name, UpdateSourceTrigger=PropertyChanged}" />
- </HierarchicalDataTemplate>
- <XmlDataProvider
- x:Key="xmlDataProvider"
- XPath="node" Source="C:Data.XML">
- </XmlDataProvider>
- </Window.Resources>
- <Grid>
- <StackPanel>
- <Button Click="Button_Click">Save</Button>
- <TreeView
- Width="Auto"
- Height="Auto"
- Name="treeview"
- ItemsSource="{Binding Source={StaticResource xmlDataProvider}, XPath=.}"/>
- </StackPanel>
- </Grid>
- XmlDataProvider dataProvider = this.FindResource("xmlDataProvider") as XmlDataProvider;
- dataProvider.Document.Save(dataProvider.Source.LocalPath);
Add Comment
Please, Sign In to add comment