当我用XElement解析以下字符串时,我得到一个NotSupportedException:
<ref>S. L. Vartanyan*, V. E. Garutt† & A. V. Sher‡parallel, "Holocene dwarf mammoths from Wrangel Island in the Siberian Arctic", Nature 362, 337 – 340 (25 March 1993) [http://www.nature.com/nature/journal/v362/n6418/abs/362337a0.html Nature.com]</ref>
有谁知道我为什么会收到这个错误?
答案 0 :(得分:1)
可能是
- 这不是xml实体,除非你是html,&
应该是&
?
基本上,这不是xml ......
这有效:
@"<ref>S. L. Vartanyan*, V. E. Garutt† & A. V. Sher‡parallel, ""Holocene dwarf mammoths from Wrangel Island in the Siberian Arctic"", Nature 362, 337not-nbsp;– 340 (25 March 1993) [http://www.nature.com/nature/journal/v362/n6418/abs/362337a0.html Nature.com]</ref>");