我正在创建一个基于UBL xsd:TransportationStatus-2的示例XML文件。在Eclipse中验证此XML时,我收到错误,
文档中引用的语法约束(DTD或XML Schema)
我想通过使用StackOverflow来放置<!DOCTYPE foo>
,其中foo可以是任何东西(xml,xsd,project甚至foo)就可以解决错误。像:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo>
<ts:TransportationStatus xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:ts="urn:oasis:names:specification:ubl:schema:xsd:TransportationStatus-2">
<cbc:UBLVersionID schemeID="UBL">2.1</cbc:UBLVersionID>
<cbc:ID>666</cbc:ID>
<cbc:IssueDate>1947-08-15</cbc:IssueDate>
<cac:Consignment>
<cac:CarrierParty>
<cbc:ID>Ajax</cbc:ID>
</cac:CarrierParty>
</cac:Consignment>
</ts:TransportationStatus>