0
的模式验证我有一个这样的XML实体,XHTML场
a:news-article xmlns:c="http://abc/core" xmlns:f="http://abc/fields" xmlns:a="http://abc/assets" xmlns:r="http://abc/refdata">
<c:id>xyz</c:id>
<c:type>asset</c:type>
<c:created-on>2016-03-17T08:26:27.764Z</c:created-on>
<c:released-on>1985-11-03T00:00:00Z</c:released-on>
<c:expires-on>2009-12-12T00:00:00Z</c:expires-on>
<f:short-headline>
<c:content><c:l10n xml:lang="en">
<p>
Carbide technology for South Korean project
</p>
</c:l10n></c:content>
<c:resources/>
</f:short-headline>
</a:news-article>
在这个XML,是一个XHTML领域。我需要使用模式验证来验证这样的XHTML字段。即如果我提供了空值,那么它应该抛出一个模式验证错误。