Skip to content

Commit 0903e79

Browse files
authored
TOC changes for LINQ to XML, part 3 (#12608)
* first nodes in querying XML trees * add projections and transformations * add advanced query techniques
1 parent 3df8ec3 commit 0903e79

File tree

34 files changed

+33
-176
lines changed

34 files changed

+33
-176
lines changed

.openpublishing.redirection.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,10 @@
692692
"source_path": "docs/csharp/programming-guide/concepts/async/asynchronous-programming-with-async-and-await.md",
693693
"redirect_url": "/dotnet/csharp/async/"
694694
},
695+
{
696+
"source_path": "docs/csharp/programming-guide/concepts/linq/advanced-query-techniques-linq-to-xml.md",
697+
"redirect_url": "/dotnet/csharp/programming-guide/concepts/linq/how-to-join-two-collections-linq-to-xml"
698+
},
695699
{
696700
"source_path": "docs/csharp/programming-guide/concepts/linq/cloning-vs-attaching.md",
697701
"redirect_url": "/dotnet/csharp/programming-guide/concepts/linq/creating-xml-trees-linq-to-xml-2#attaching-vs-cloning"
@@ -744,6 +748,14 @@
744748
"source_path": "docs/csharp/programming-guide/concepts/linq/working-with-xml-namespaces.md",
745749
"redirect_url": "/dotnet/csharp/programming-guide/concepts/linq/namespaces-overview-linq-to-xml"
746750
},
751+
{
752+
"source_path": "docs/csharp/programming-guide/concepts/linq/projections-and-transformations-linq-to-xml.md",
753+
"redirect_url": "/dotnet/csharp/programming-guide/concepts/linq/how-to-work-with-dictionaries-using-linq-to-xml"
754+
},
755+
{
756+
"source_path": "docs/csharp/programming-guide/concepts/linq/querying-xml-trees.md",
757+
"redirect_url": "/dotnet/csharp/programming-guide/concepts/linq/how-to-find-an-element-with-a-specific-attribute"
758+
},
747759
{
748760
"source_path": "docs/csharp/programming-guide/concepts/threading/how-to-use-a-thread-pool.md",
749761
"redirect_url": "/dotnet/api/system.threading.threadpool.queueuserworkitem"

docs/csharp/programming-guide/concepts/linq/advanced-query-techniques-linq-to-xml.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/csharp/programming-guide/concepts/linq/how-to-calculate-intermediate-values.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ foreach (decimal ex in extensions)
3434
```
3535

3636
## Example
37-
The following example shows the same query for XML that is in a namespace. For more information, see [Working with XML Namespaces (C#)](../../../../csharp/programming-guide/concepts/linq/working-with-xml-namespaces.md).
37+
The following example shows the same query for XML that is in a namespace. For more information, see [Working with XML Namespaces (C#)](../../../../csharp/programming-guide/concepts/linq/namespaces-overview-linq-to-xml.md).
3838

3939
This example uses the following XML document: [Sample XML File: Numerical Data in a Namespace](../../../../csharp/programming-guide/concepts/linq/sample-xml-file-numerical-data-in-a-namespace.md).
4040

@@ -60,7 +60,3 @@ foreach (decimal ex in extensions)
6060
198.00
6161
435.00
6262
```
63-
64-
## See also
65-
66-
- [Basic Queries (LINQ to XML) (C#)](../../../../csharp/programming-guide/concepts/linq/basic-queries-linq-to-xml.md)

docs/csharp/programming-guide/concepts/linq/how-to-control-the-type-of-a-projection.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,3 @@ LETSS:Let's Stop N Shop:Jaime Yorres
6666
## See also
6767

6868
- <xref:System.Linq.Enumerable.Select%2A>
69-
- [Projections and Transformations (LINQ to XML) (C#)](../../../../csharp/programming-guide/concepts/linq/projections-and-transformations-linq-to-xml.md)

docs/csharp/programming-guide/concepts/linq/how-to-create-hierarchy-using-grouping.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,3 @@ Console.WriteLine(newData);
6767
</Group>
6868
</Root>
6969
```
70-
71-
## See also
72-
73-
- [Advanced Query Techniques (LINQ to XML) (C#)](../../../../csharp/programming-guide/concepts/linq/advanced-query-techniques-linq-to-xml.md)

docs/csharp/programming-guide/concepts/linq/how-to-debug-empty-query-results-sets.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ One of the most common problems when querying XML trees is that if the XML tree
1010

1111
The second set of examples show the necessary corrections so that you can query XML in a namespace.
1212

13-
For more information, see [Working with XML Namespaces (C#)](../../../../csharp/programming-guide/concepts/linq/working-with-xml-namespaces.md).
13+
For more information, see [Working with XML Namespaces (C#)](../../../../csharp/programming-guide/concepts/linq/namespaces-overview-linq-to-xml.md).
1414

1515
## Example
1616
This example shows creation of XML in a namespace, and a query that returns an empty result set.
@@ -75,7 +75,3 @@ Result set follows:
7575
3
7676
End of result set
7777
```
78-
79-
## See also
80-
81-
- [Basic Queries (LINQ to XML) (C#)](../../../../csharp/programming-guide/concepts/linq/basic-queries-linq-to-xml.md)

docs/csharp/programming-guide/concepts/linq/how-to-filter-on-an-optional-element.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Child Four Text
4848
```
4949

5050
## Example
51-
The following example shows the same query for XML that is in a namespace. For more information, see [Working with XML Namespaces (C#)](../../../../csharp/programming-guide/concepts/linq/working-with-xml-namespaces.md).
51+
The following example shows the same query for XML that is in a namespace. For more information, see [Working with XML Namespaces (C#)](../../../../csharp/programming-guide/concepts/linq/namespaces-overview-linq-to-xml.md).
5252

5353
```csharp
5454
XElement root = XElement.Parse(@"<Root xmlns='http://www.adatum.com'>
@@ -94,6 +94,5 @@ Child Four Text
9494
- <xref:System.Xml.Linq.XElement.Attribute%2A?displayProperty=nameWithType>
9595
- <xref:System.Xml.Linq.XContainer.Elements%2A?displayProperty=nameWithType>
9696
- <xref:System.Xml.Linq.Extensions.Elements%2A?displayProperty=nameWithType>
97-
- [Basic Queries (LINQ to XML) (C#)](../../../../csharp/programming-guide/concepts/linq/basic-queries-linq-to-xml.md)
9897
- [Standard Query Operators Overview (C#)](../../../../csharp/programming-guide/concepts/linq/standard-query-operators-overview.md)
9998
- [Projection Operations (C#)](../../../../csharp/programming-guide/concepts/linq/projection-operations.md)

docs/csharp/programming-guide/concepts/linq/how-to-find-a-single-descendant-using-the-descendants-method.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ GC3 Value
3737
```
3838

3939
## Example
40-
The following example shows the same query for XML that is in a namespace. For more information, see [Working with XML Namespaces (C#)](../../../../csharp/programming-guide/concepts/linq/working-with-xml-namespaces.md).
40+
The following example shows the same query for XML that is in a namespace. For more information, see [Working with XML Namespaces (C#)](../../../../csharp/programming-guide/concepts/linq/namespaces-overview-linq-to-xml.md).
4141

4242
```csharp
4343
XElement root = XElement.Parse(@"<aw:Root xmlns:aw='http://www.adventure-works.com'>
@@ -66,7 +66,3 @@ Console.WriteLine(grandChild3);
6666
```
6767
GC3 Value
6868
```
69-
70-
## See also
71-
72-
- [Basic Queries (LINQ to XML) (C#)](../../../../csharp/programming-guide/concepts/linq/basic-queries-linq-to-xml.md)

docs/csharp/programming-guide/concepts/linq/how-to-find-all-nodes-in-a-namespace.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,3 @@ Console.WriteLine(newTree);
8888
</aw:PurchaseOrder>
8989
</Root>
9090
```
91-
92-
## See also
93-
94-
- [Basic Queries (LINQ to XML) (C#)](../../../../csharp/programming-guide/concepts/linq/basic-queries-linq-to-xml.md)

docs/csharp/programming-guide/concepts/linq/how-to-find-an-element-with-a-specific-attribute.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ foreach (XElement el in address)
3535
```
3636

3737
## Example
38-
The following example shows the same query for XML that is in a namespace. For more information, see [Working with XML Namespaces (C#)](../../../../csharp/programming-guide/concepts/linq/working-with-xml-namespaces.md).
38+
The following example shows the same query for XML that is in a namespace. For more information, see [Working with XML Namespaces (C#)](../../../../csharp/programming-guide/concepts/linq/namespaces-overview-linq-to-xml.md).
3939

4040
This example uses the following XML document: [Sample XML File: Typical Purchase Order in a Namespace](../../../../csharp/programming-guide/concepts/linq/sample-xml-file-typical-purchase-order-in-a-namespace.md).
4141

@@ -67,6 +67,5 @@ foreach (XElement el in address)
6767

6868
- <xref:System.Xml.Linq.XElement.Attribute%2A>
6969
- <xref:System.Xml.Linq.XContainer.Elements%2A>
70-
- [Basic Queries (LINQ to XML) (C#)](../../../../csharp/programming-guide/concepts/linq/basic-queries-linq-to-xml.md)
7170
- [Standard Query Operators Overview (C#)](../../../../csharp/programming-guide/concepts/linq/standard-query-operators-overview.md)
7271
- [Projection Operations (C#)](../../../../csharp/programming-guide/concepts/linq/projection-operations.md)

0 commit comments

Comments
 (0)