来自字符串的 XMLReader 后文本丢失

问题描述

我正在将 xml 字符串加载到数据集中,但缺少文本内容。

这是我正在处理的字符串:

  <abstract>
 <title>Zusammenfassung</title>
    <p>In der normativen Theorie ist die Debatte über Solidarität nur schwach ausgeprägt. In diesem Beitrag werden aufbauend auf unterschiedliche Reziprozitätserwartungen vier Welten sozialpolitischer Solidarität unterschieden. Die Sozialversicherungs-Solidarität in Deutschland ist aus normativer Perspektive weniger ambitioniert also eine substanziell-universelle Solidarität. Allerdings argumentiere ich,dass Institutionen substanziell-universeller Solidarität im Zeitalter der (europäischen) Entgrenzung und (europäischen) Austerität nicht überlebensfähig zu sein scheinen. Letztlich ist die begrenzte Solidarität der Sozialversicherung unter diesen Bedingungen zwar nicht normativ,gleichwohl aber aus empirischen Gründen Institutionen substanziell-universeller Solidarität überlegen. Der Preis hierfür besteht allerdings in einer weiter zunehmenden Prekarisierung,einer sich ausweitenden marktbasierten formal-universellen Solidarität,einem drohenden sozialpolitischen Chauvinismus sowie einer demokratietheoretischen Auszehrung.</p>
    <p><italic>Solidarity in the German Social-Insurance-State</italic></p>
    <p>In contemporary research,normative discussions of solidarity are rare. In this contribution four worlds of solidarity are differentiated,relying on different patterns of reciprocity. German social-insurance-solidarity is normatively less ambitious than substantial-universal-solidarity. However,institutions of substantial-universal-solidarity seem to be less sustainable in times of eroding frontiers (in Europe) and (European) austerity. Under these conditions,bounded solidarity of social insurance institutions is not from a normative perspective superior to substantial-universal-solidarity,but because of empirical observations. As a consequence,a further growing precariat,rising formal-universal-solidarity of markets,spreading welfare chauvinism and democratic atrophy is likely to prevail.</p>
    <p>JEL-Klassifizierung: I3</p></abstract>

这是我正在使用的代码。上面显示的字符串在字符串变量 "abstract" 中:

     reader = XmlReader.Create(New StringReader(abstract))
     dset = New DataSet
     dset.ReadXml(reader)

调用 ReadXml 后,数据集中有两个表:

表格:摘要,1 行,第一列:标题,第二列:abstract_Id

表格:p,4 行,第一列:斜体,第二列:abstract_Id

我期望的是表 p 中的列 p_Text 包含之间的字符串

     <p> ... and ... </p>

标记为斜体的除外。在我在同一个应用程序中使用的其他 readxml 操作中,此列出现并填充数据。但在这种情况下不是。 斜体标签内的文本出现在“p”表内的“斜体”列中。

我错过了什么?

编辑: 当我删除 ... 序列时,会出现 p_Text 列。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)