Fix Playground and related README.md
This commit is contained in:
parent
cdbe1f12d9
commit
4cba7345bb
|
@ -87,7 +87,7 @@ if let text = xml.ResultSet.Result.Hit[0].Name.text {
|
|||
}
|
||||
|
||||
// access XML Attribute
|
||||
if let index = xml["ResultSet", "Result", "Hit"].attributes["index"] {
|
||||
if let index = xml["ResultSet", "Result", "Hit", 0].attributes["index"] {
|
||||
print(index)
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ if let text = xml.ResultSet.Result.Hit[0].Name.text {
|
|||
}
|
||||
|
||||
// access XML Attribute
|
||||
if let index = xml["ResultSet", "Result", "Hit"].attributes["index"] {
|
||||
if let index = xml["ResultSet", "Result", "Hit", 0].attributes["index"] {
|
||||
print(index)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue