@@ -177,8 +177,7 @@ End If
177177
178178 This example produces the following output:
179179
180- ```
181-
180+ ```txt
182181Creating a deep copy created a new attribute from the original.
183182```
184183
@@ -311,8 +310,7 @@ Console.WriteLine(root)
311310
312311 This example produces the following output:
313312
314- ```
315-
313+ ```xml
316314<Root Att1="Some text" Att2="12.345" Att3="2006-10-06T12:30:00" Att4="1" Att5="2" Att6="3" />
317315```
318316
459457
460458 This example produces the following output:
461459
462- ```
460+ ```txt
463461{http://www.w3.org/2000/xmlns/}aw is a namespace declaration
464462{http://www.adventure-works.com}Att is not a namespace declaration
465463```
@@ -568,12 +566,11 @@ Dim NewRoot As XElement = _
568566For Each att As XAttribute In NewRoot.Attributes()
569567 Console.WriteLine("{0}={1}", att.Name, att.Value)
570568Next
571-
572569```
573570
574571 This example produces the following output:
575572
576- ```
573+ ```txt
577574{http://www.w3.org/2000/xmlns/}aw=http://www.adventure-works.com
578575{http://www.adventure-works.com}Att=content
579576Att2=different content
@@ -675,7 +672,7 @@ Loop While (Not (att Is Nothing))
675672
676673 This example produces the following output:
677674
678- ```
675+ ```txt
679676Att1="1"
680677Att2="2"
681678Att3="3"
@@ -755,8 +752,7 @@ Console.WriteLine(att.NodeType.ToString)
755752
756753 This example produces the following output:
757754
758- ```
759-
755+ ```txt
760756Attribute
761757```
762758
@@ -841,7 +837,7 @@ Console.WriteLine("(bool)BoolValue={0}", bv)
841837
842838 This example produces the following output:
843839
844- ```
840+ ```txt
845841(bool)BoolValue=True
846842```
847843
@@ -960,7 +956,7 @@ Console.WriteLine("OrderDate={0:d}", orderDate)
960956
961957 This example produces the following output:
962958
963- ```
959+ ```txt
964960<Root Att="2006-10-06T12:30:00" />
965961dt=10/6/2006 12:30:00 PM
966962-----
@@ -1058,7 +1054,7 @@ Console.WriteLine("dt={0}", dt)
10581054
10591055 This example produces the following output:
10601056
1061- ```
1057+ ```txt
10621058<Root Att="2006-10-06T12:30:00-07:00" />
10631059dt=10/6/2006 12:30:00 PM -07:00
10641060```
@@ -1140,7 +1136,7 @@ Console.WriteLine("value={0}", value)
11401136
11411137 This example produces the following output:
11421138
1143- ```
1139+ ```txt
11441140value=79228162514264337593543950335
11451141```
11461142
@@ -1221,7 +1217,7 @@ Console.WriteLine("value={0}", value)
12211217
12221218 This example produces the following output:
12231219
1224- ```
1220+ ```txt
12251221value=1.79769313486231E+308
12261222```
12271223
@@ -1302,7 +1298,7 @@ Console.WriteLine("value={0}", value)
13021298
13031299 This example produces the following output:
13041300
1305- ```
1301+ ```txt
13061302value=3c1cc55b-baff-4b7a-9d17-077af3aa5730
13071303```
13081304
@@ -1383,7 +1379,7 @@ Console.WriteLine("value={0}", value)
13831379
13841380 This example produces the following output:
13851381
1386- ```
1382+ ```txt
13871383value=2147483647
13881384```
13891385
@@ -1464,7 +1460,7 @@ Console.WriteLine("value={0}", value)
14641460
14651461 This example produces the following output:
14661462
1467- ```
1463+ ```txt
14681464value=9223372036854775807
14691465```
14701466
@@ -1556,7 +1552,7 @@ Console.WriteLine("Nullable boolean: BoolValue2={0}", bool2)
15561552
15571553 This example produces the following output:
15581554
1559- ```
1555+ ```txt
15601556Nullable boolean: BoolValue1=True
15611557Nullable boolean: BoolValue2=False
15621558```
@@ -1647,7 +1643,7 @@ Console.WriteLine("Nullable DateTime: value={0}", IIf(value.HasValue, value.ToSt
16471643
16481644 This example produces the following output:
16491645
1650- ```
1646+ ```txt
16511647Nullable DateTime: value=10/6/2006 12:30:00 PM
16521648```
16531649
@@ -1735,7 +1731,7 @@ Console.WriteLine("Nullable DateTimeOffset: value={0}", IIf(value.HasValue, valu
17351731
17361732 This example produces the following output:
17371733
1738- ```
1734+ ```txt
17391735Nullable DateTimeOffset: value=10/6/2006 12:30:00 PM -07:00
17401736```
17411737
@@ -1814,7 +1810,7 @@ Console.WriteLine("Nullable decimal: value={0}", IIf(value.HasValue, value.ToStr
18141810
18151811 This example produces the following output:
18161812
1817- ```
1813+ ```txt
18181814Nullable decimal: value=79228162514264337593543950335
18191815```
18201816
@@ -1895,7 +1891,7 @@ Console.WriteLine("Nullable double: value={0}", IIf(value.HasValue, value.ToStri
18951891
18961892 This example produces the following output:
18971893
1898- ```
1894+ ```txt
18991895Nullable double: value=1.79769313486231E+308
19001896```
19011897
@@ -1976,7 +1972,7 @@ Console.WriteLine("Nullable Guid: value={0}", IIf(value.HasValue, value.ToString
19761972
19771973 This example produces the following output:
19781974
1979- ```
1975+ ```txt
19801976Nullable Guid: value=3c1cc55b-baff-4b7a-9d17-077af3aa5730
19811977```
19821978
@@ -2057,7 +2053,7 @@ Console.WriteLine("Nullable int: value={0}", IIf(value.HasValue, value.ToString(
20572053
20582054 This example produces the following output:
20592055
2060- ```
2056+ ```txt
20612057Nullable int: value=2147483647
20622058```
20632059
@@ -2137,7 +2133,7 @@ Console.WriteLine("Nullable long: value={0}", IIf(value.HasValue, value.ToString
21372133
21382134 This example produces the following output:
21392135
2140- ```
2136+ ```txt
21412137Nullable long: value=9223372036854775807
21422138```
21432139
@@ -2218,7 +2214,7 @@ Console.WriteLine("Nullable Single: value={0}", IIf(value.HasValue, value.ToStri
22182214
22192215 This example produces the following output:
22202216
2221- ```
2217+ ```txt
22222218Nullable Single: value=3.402823E+38
22232219```
22242220
@@ -2306,7 +2302,7 @@ Console.WriteLine("Nullable TimeSpan: value={0}", IIf(value.HasValue, value.ToSt
23062302
23072303 This example produces the following output:
23082304
2309- ```
2305+ ```txt
23102306Nullable TimeSpan: value=01:05:30
23112307```
23122308
@@ -2387,7 +2383,7 @@ Console.WriteLine("Nullable uint: value={0}", IIf(value.HasValue, value.ToString
23872383
23882384 This example produces the following output:
23892385
2390- ```
2386+ ```txt
23912387Nullable uint: value=4294967295
23922388```
23932389
@@ -2468,7 +2464,7 @@ Console.WriteLine("Nullable ulong: value={0}", IIf(value.HasValue, value.ToStrin
24682464
24692465 This example produces the following output:
24702466
2471- ```
2467+ ```txt
24722468Nullable ulong: value=9223372036854775807
24732469```
24742470
@@ -2548,7 +2544,7 @@ Console.WriteLine("value={0}", value)
25482544
25492545 This example produces the following output:
25502546
2551- ```
2547+ ```txt
25522548value=3.402823E+38
25532549```
25542550
@@ -2632,7 +2628,7 @@ Console.WriteLine("(string)att={0}", str)
26322628
26332629 This example produces the following output:
26342630
2635- ```
2631+ ```txt
26362632(string)att=attribute content
26372633```
26382634
@@ -2718,7 +2714,7 @@ Console.WriteLine("value={0}", value)
27182714
27192715 This example produces the following output:
27202716
2721- ```
2717+ ```txt
27222718value=01:05:30
27232719```
27242720
@@ -2799,7 +2795,7 @@ Console.WriteLine("value={0}", value)
27992795
28002796 This example produces the following output:
28012797
2802- ```
2798+ ```txt
28032799value=4294967295
28042800```
28052801
@@ -2880,7 +2876,7 @@ Console.WriteLine("value={0}", value)
28802876
28812877 This example produces the following output:
28822878
2883- ```
2879+ ```txt
28842880value=1844674407370955161
28852881```
28862882
@@ -2979,7 +2975,7 @@ Loop While (Not (att Is Nothing))
29792975
29802976 This example produces the following output:
29812977
2982- ```
2978+ ```txt
29832979Att4="4"
29842980Att3="3"
29852981Att2="2"
@@ -3066,7 +3062,7 @@ Console.WriteLine(root)
30663062
30673063 This example produces the following output:
30683064
3069- ```
3065+ ```xml
30703066<Root Att1="content1" Att3="content3" />
30713067```
30723068
@@ -3153,7 +3149,7 @@ Console.WriteLine(root)
31533149
31543150 This example produces the following output:
31553151
3156- ```
3152+ ```xml
31573153<Root Att1="content1" Att2="new content" Att3="content3" />
31583154```
31593155
@@ -3240,7 +3236,7 @@ Console.WriteLine(att.ToString())
32403236
32413237 This example produces the following output:
32423238
3243- ```
3239+ ```txt
32443240Att2="content2"
32453241```
32463242
@@ -3331,7 +3327,7 @@ Console.WriteLine(root.@Att)
33313327
33323328 This example produces the following output:
33333329
3334- ```
3330+ ```txt
33353331content
33363332new text
33373333```
@@ -3463,7 +3459,7 @@ Console.WriteLine("v4:{0}", IIf(v4.HasValue, v4, "attribute does not exist"))
34633459
34643460 This example produces the following output:
34653461
3466- ```
3462+ ```txt
34673463c1:attribute 1 content
34683464c2:2
34693465c3:attribute does not exist
0 commit comments