我在解析SEC Edgar files使用Ruby到引入nokogiri
Here is an example of this file问题解析SEC埃德加XML文件。
最终的结果是我想把<XML>
和</XML>
之间的东西变成我可以访问的格式。
这是迄今为止不工作我的代码:
scud = open("http://sec.gov/Archives/edgar/data/1475481/0001475481-09-000001.txt")
full = scud.read
full.match(/<XML>(.*)<\/XML>/)
“不起作用”不是很有帮助。什么不行?你想要发生什么,而发生了什么呢? – Phrogz 2011-05-01 03:19:23