我有以下 xml:
<key>Some Text</key>
<string>Some Content</string>
<key>Some Text</key>
<string>Some Content</string>
<key>Some Text</key>
<string>Some Content</string>
<key>Some Text</key>
<string>Some Content</string>
<key>Some Text</key>
<string>Some Content</string>
<key>Some Text</key>
<string>Some Content</string>
<key>Some Text</key>
<integer>1</integer>
<key>Some Text</key>
<true/>
<key>Some Text</key>
<true/>
<key>Some Text</key>
<integer>6</integer>
<key>Some Text</key>
<true/>
我如何配置 Ruby XMLSimple gem 以获取带有键/值的哈希?还是 XMLSimple 是错误的工具?
谢谢你的帮助!