Skip to content

Add language slugs (System.Xml) #11218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 37 additions & 41 deletions xml/System.Xml.Linq/XAttribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ End If

This example produces the following output:

```

```txt
Creating a deep copy created a new attribute from the original.
```

Expand Down Expand Up @@ -311,8 +310,7 @@ Console.WriteLine(root)

This example produces the following output:

```

```xml
<Root Att1="Some text" Att2="12.345" Att3="2006-10-06T12:30:00" Att4="1" Att5="2" Att6="3" />
```

Expand Down Expand Up @@ -459,7 +457,7 @@ Next

This example produces the following output:

```
```txt
{http://www.w3.org/2000/xmlns/}aw is a namespace declaration
{http://www.adventure-works.com}Att is not a namespace declaration
```
Expand Down Expand Up @@ -568,12 +566,11 @@ Dim NewRoot As XElement = _
For Each att As XAttribute In NewRoot.Attributes()
Console.WriteLine("{0}={1}", att.Name, att.Value)
Next

```

This example produces the following output:

```
```txt
{http://www.w3.org/2000/xmlns/}aw=http://www.adventure-works.com
{http://www.adventure-works.com}Att=content
Att2=different content
Expand Down Expand Up @@ -675,7 +672,7 @@ Loop While (Not (att Is Nothing))

This example produces the following output:

```
```txt
Att1="1"
Att2="2"
Att3="3"
Expand Down Expand Up @@ -755,8 +752,7 @@ Console.WriteLine(att.NodeType.ToString)

This example produces the following output:

```

```txt
Attribute
```

Expand Down Expand Up @@ -841,7 +837,7 @@ Console.WriteLine("(bool)BoolValue={0}", bv)

This example produces the following output:

```
```txt
(bool)BoolValue=True
```

Expand Down Expand Up @@ -960,7 +956,7 @@ Console.WriteLine("OrderDate={0:d}", orderDate)

This example produces the following output:

```
```txt
<Root Att="2006-10-06T12:30:00" />
dt=10/6/2006 12:30:00 PM
-----
Expand Down Expand Up @@ -1058,7 +1054,7 @@ Console.WriteLine("dt={0}", dt)

This example produces the following output:

```
```txt
<Root Att="2006-10-06T12:30:00-07:00" />
dt=10/6/2006 12:30:00 PM -07:00
```
Expand Down Expand Up @@ -1140,7 +1136,7 @@ Console.WriteLine("value={0}", value)

This example produces the following output:

```
```txt
value=79228162514264337593543950335
```

Expand Down Expand Up @@ -1221,7 +1217,7 @@ Console.WriteLine("value={0}", value)

This example produces the following output:

```
```txt
value=1.79769313486231E+308
```

Expand Down Expand Up @@ -1302,7 +1298,7 @@ Console.WriteLine("value={0}", value)

This example produces the following output:

```
```txt
value=3c1cc55b-baff-4b7a-9d17-077af3aa5730
```

Expand Down Expand Up @@ -1383,7 +1379,7 @@ Console.WriteLine("value={0}", value)

This example produces the following output:

```
```txt
value=2147483647
```

Expand Down Expand Up @@ -1464,7 +1460,7 @@ Console.WriteLine("value={0}", value)

This example produces the following output:

```
```txt
value=9223372036854775807
```

Expand Down Expand Up @@ -1556,7 +1552,7 @@ Console.WriteLine("Nullable boolean: BoolValue2={0}", bool2)

This example produces the following output:

```
```txt
Nullable boolean: BoolValue1=True
Nullable boolean: BoolValue2=False
```
Expand Down Expand Up @@ -1647,7 +1643,7 @@ Console.WriteLine("Nullable DateTime: value={0}", IIf(value.HasValue, value.ToSt

This example produces the following output:

```
```txt
Nullable DateTime: value=10/6/2006 12:30:00 PM
```

Expand Down Expand Up @@ -1735,7 +1731,7 @@ Console.WriteLine("Nullable DateTimeOffset: value={0}", IIf(value.HasValue, valu

This example produces the following output:

```
```txt
Nullable DateTimeOffset: value=10/6/2006 12:30:00 PM -07:00
```

Expand Down Expand Up @@ -1814,7 +1810,7 @@ Console.WriteLine("Nullable decimal: value={0}", IIf(value.HasValue, value.ToStr

This example produces the following output:

```
```txt
Nullable decimal: value=79228162514264337593543950335
```

Expand Down Expand Up @@ -1895,7 +1891,7 @@ Console.WriteLine("Nullable double: value={0}", IIf(value.HasValue, value.ToStri

This example produces the following output:

```
```txt
Nullable double: value=1.79769313486231E+308
```

Expand Down Expand Up @@ -1976,7 +1972,7 @@ Console.WriteLine("Nullable Guid: value={0}", IIf(value.HasValue, value.ToString

This example produces the following output:

```
```txt
Nullable Guid: value=3c1cc55b-baff-4b7a-9d17-077af3aa5730
```

Expand Down Expand Up @@ -2057,7 +2053,7 @@ Console.WriteLine("Nullable int: value={0}", IIf(value.HasValue, value.ToString(

This example produces the following output:

```
```txt
Nullable int: value=2147483647
```

Expand Down Expand Up @@ -2137,7 +2133,7 @@ Console.WriteLine("Nullable long: value={0}", IIf(value.HasValue, value.ToString

This example produces the following output:

```
```txt
Nullable long: value=9223372036854775807
```

Expand Down Expand Up @@ -2218,7 +2214,7 @@ Console.WriteLine("Nullable Single: value={0}", IIf(value.HasValue, value.ToStri

This example produces the following output:

```
```txt
Nullable Single: value=3.402823E+38
```

Expand Down Expand Up @@ -2306,7 +2302,7 @@ Console.WriteLine("Nullable TimeSpan: value={0}", IIf(value.HasValue, value.ToSt

This example produces the following output:

```
```txt
Nullable TimeSpan: value=01:05:30
```

Expand Down Expand Up @@ -2387,7 +2383,7 @@ Console.WriteLine("Nullable uint: value={0}", IIf(value.HasValue, value.ToString

This example produces the following output:

```
```txt
Nullable uint: value=4294967295
```

Expand Down Expand Up @@ -2468,7 +2464,7 @@ Console.WriteLine("Nullable ulong: value={0}", IIf(value.HasValue, value.ToStrin

This example produces the following output:

```
```txt
Nullable ulong: value=9223372036854775807
```

Expand Down Expand Up @@ -2548,7 +2544,7 @@ Console.WriteLine("value={0}", value)

This example produces the following output:

```
```txt
value=3.402823E+38
```

Expand Down Expand Up @@ -2632,7 +2628,7 @@ Console.WriteLine("(string)att={0}", str)

This example produces the following output:

```
```txt
(string)att=attribute content
```

Expand Down Expand Up @@ -2718,7 +2714,7 @@ Console.WriteLine("value={0}", value)

This example produces the following output:

```
```txt
value=01:05:30
```

Expand Down Expand Up @@ -2799,7 +2795,7 @@ Console.WriteLine("value={0}", value)

This example produces the following output:

```
```txt
value=4294967295
```

Expand Down Expand Up @@ -2880,7 +2876,7 @@ Console.WriteLine("value={0}", value)

This example produces the following output:

```
```txt
value=1844674407370955161
```

Expand Down Expand Up @@ -2979,7 +2975,7 @@ Loop While (Not (att Is Nothing))

This example produces the following output:

```
```txt
Att4="4"
Att3="3"
Att2="2"
Expand Down Expand Up @@ -3066,7 +3062,7 @@ Console.WriteLine(root)

This example produces the following output:

```
```xml
<Root Att1="content1" Att3="content3" />
```

Expand Down Expand Up @@ -3153,7 +3149,7 @@ Console.WriteLine(root)

This example produces the following output:

```
```xml
<Root Att1="content1" Att2="new content" Att3="content3" />
```

Expand Down Expand Up @@ -3240,7 +3236,7 @@ Console.WriteLine(att.ToString())

This example produces the following output:

```
```txt
Att2="content2"
```

Expand Down Expand Up @@ -3331,7 +3327,7 @@ Console.WriteLine(root.@Att)

This example produces the following output:

```
```txt
content
new text
```
Expand Down Expand Up @@ -3463,7 +3459,7 @@ Console.WriteLine("v4:{0}", IIf(v4.HasValue, v4, "attribute does not exist"))

This example produces the following output:

```
```txt
c1:attribute 1 content
c2:2
c3:attribute does not exist
Expand Down
Loading