我嘗試生成XSD類,但我與第二線生成XJC從XSD類
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:saqcc="urn:saq:cct:cct-3.5.xsd" xmlns:flx="urn:saq:mtl:grey:flux:04489:rep-1.0.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:saq:mtl:grey:flux:04489:rep-1.0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1">
有問題......
我得到這個錯誤:
[ERROR] Content is not allowed in prolog. so xjc seem to have problem with schema
這個xsd有一個導入,並且在這個導入中有另一個導入...所以我不知道什麼時候如果xjc能夠管理這個錯誤將會被刪除...
不僅隱形字符我有crlf(回車,換行) – redfox26
這也是不允許的。 '<?xml'必須是XML文件中的第一個字符,如下所示:http://www.w3.org/TR/2008/REC-xml-20081126/#sec-well-formed –
我有沒有任何之前<?xml crlf它的每一行結束(像任何其他文件...) – redfox26