Fix Playground and related README.md

This commit is contained in:
daisuke-t-jp 2019-01-23 21:40:28 +09:00
parent cdbe1f12d9
commit 4cba7345bb
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ if let text = xml.ResultSet.Result.Hit[0].Name.text {
} }
// access XML Attribute // access XML Attribute
if let index = xml["ResultSet", "Result", "Hit"].attributes["index"] { if let index = xml["ResultSet", "Result", "Hit", 0].attributes["index"] {
print(index) print(index)
} }

View File

@ -57,7 +57,7 @@ if let text = xml.ResultSet.Result.Hit[0].Name.text {
} }
// access XML Attribute // access XML Attribute
if let index = xml["ResultSet", "Result", "Hit"].attributes["index"] { if let index = xml["ResultSet", "Result", "Hit", 0].attributes["index"] {
print(index) print(index)
} }