0
我想HTML存储与空标签XML格式自行关闭标签:MarkLogic生成XML
<body xmlns="http://www.w3.org/1999/xhtml">
<div class="WordSection1" xmlns="">
<p class="ChapterNumber">Chapter 6</p>
<h1 class="ChapterTitle">The Legislature and the <br/>Electoral System</h1>
<p class="ChapterSub-Title"> </p>
<div style=""></div>
</div>
</body>
在MarkLogic存储后,我得到空自闭标签
<body xmlns="http://www.w3.org/1999/xhtml">
<div class="WordSection1" xmlns="">
<p class="ChapterNumber">Chapter 6</p>
<h1 class="ChapterTitle">The Legislature and the <br />Electoral System</h1>
<p class="ChapterSub-Title"> </p>
<div style="" />
</div>
</body>
它生成无效的XHTML。我怎样才能得到原始的XML,无论是自我关闭的元素和空元素,因为它是原始文件?
它们在语义上是相同的,那么为什么这是一个问题呢? – Sobrique
感谢您的即时回复,你的意思是“语义相同”? –
就XML规范而言意味着相同的东西。 – Sobrique