【发布时间】:2015-02-19 16:25:00
【问题描述】:
我遇到以下问题:
我需要读取一些 xpdl 格式的进程,它是一个特定于进程的 xml。这些xpdl是由Bizagi生成的。
在 xpdl 的官方网站中,我捕获了 xml 架构,但是当我尝试使用我捕获的网站的 xml 架构验证由 bizagi 生成的 xpdl 时,它给出了一个错误。
我试图了解可能发生了什么,但我不明白。
你能帮我理解吗?
我正在发送错误:
["level"]=> int(2)
["code"]=> int(1871)
["column"]=> int(0)
["message"]=> string(596) "Element '{http://www.wfmc.org/2009/XPDL2.2}Activities': This element is not expected. Expected is one of ( {http://www.wfmc.org/2009/XPDL2.2}DataStoreReferences, {http://www.wfmc.org/2009/XPDL2.2}Transitions, {http://www.wfmc.org/2009/XPDL2.2}DataAssociations, {http://www.wfmc.org/2009/XPDL2.2}ExtendedAttributes, {http://www.wfmc.org/2009/XPDL2.2}Assignments, {http://www.wfmc.org/2009/XPDL2.2}PartnerLinks, {http://www.wfmc.org/2009/XPDL2.2}Object, {http://www.wfmc.org/2009/XPDL2.2}Participants, {http://www.wfmc.org/2002/XPDL1.0}DataFields, {http://www.wfmc.org/2009/XPDL2.2}Applications ). "
["file"]=> string(66) "file:///C:/Users/dieferson.medeiros/AppData/Local/Temp/php1DBF.tmp"
["line"]=> int(117)
遵循我使用 xml 架构验证 xpdl 的代码:
libxml_use_internal_errors (true);
$xml = new \DOMDocument();
$xml->load($file->getPathname());
var_dump($xml->schemaValidate(__DIR__.'/../../../../web/uploads/xsd/xpdl.xsd'));
var_dump(libxml_get_errors());
跟随 xpdl 的链接:
https://drive.google.com/file/d/0B1uwndG8_xlZSHBzZHZMTUZ0dkk/view?usp=sharing
跟随指向 xml 架构的链接:
https://drive.google.com/file/d/0B1uwndG8_xlZblpZUmY2NkxXaGc/view?usp=sharing
感谢您的关注。
【问题讨论】: