将XML转换为规范语言是否涉及将XML文档中的公共/重复XML名称空间移动到父XML节点的过程?
第4节中的W3 XML specification for the C14N11 transform及其子集对此进行了简要介绍,但很难消化。
我在阅读规范时是否正确传播了重复的名称空间?
例如:
<Message xmlns="urn:abc">
<head:CreatedDate xmlns:head="urn:iso:std:iso:20022:tech:xsd:head.001.001.01">2020-05-28T00:00:00</head:CreatedDate >
<head:Two xmlns:head="urn:iso:std:iso:20022:tech:xsd:head.001.001.01"></head:Two>
</Message>
将变成:
<Message xmlns="urn:abc" xmlns:head="urn:iso:std:iso:20022:tech:xsd:head.001.001.01">
<head:CreatedDate>2020-05-28T00:00:00</head:CreatedDate>
<head:Two></head:Two>
</Message>
XML格式是否正确?