用于小部件的Wirecloud xml解析器

时间:2016-05-12 06:33:48

标签: xml widget fiware fiware-wirecloud

版本0.8.4和版本0.9.1之间的小部件解析器有什么变化吗?我们最近更新了,现在我们无法上传我们的.wgt文件了。将显示以下错误:Error uploading the following components: TestWidget.wgt: Error parsing config.xml descriptor file: No valid parser found

使用WireCloud v 0.8.4,完全相同的文件可以正常工作。 上传运算符时不会出现此问题,它们工作正常。

这是我们的config.xml,它使用0.8.4:

<?xml version="1.0" encoding="UTF-8"?>
<Template xmlns="http://wirecloud.conwet.fi.upm.es/ns/template#">
    <Catalog.ResourceDescription>
        <Vendor>Example Com</Vendor>
        <Name>widget.chart</Name>
        <Version>0.0.1</Version>
        <DisplayName>Chart</DisplayName>
        <Author>newbird</Author>
        <Mail>newbird@ecample.com</Mail>
        <Description>A chart</Description>
        <ImageURI>images/arrow.png</ImageURI>
        <iPhoneImageURI>images/arrow.png</iPhoneImageURI>
        <WikiURI>doc/index.html</WikiURI>
    </Catalog.ResourceDescription>
    <Platform.Wiring>
        <InputEndpoint name="data" type="text" label="Data"
                       action_label="data" description="Insert data here"
                       friendcode="text"/>
    </Platform.Wiring>
    <Platform.Link>
        <XHTML href="index.html" content-type="text/html" cacheable="false"
               use-platform-style="true"/>
    </Platform.Link>
    <Platform.Rendering width="3" height="8"/>
</Template>

1 个答案:

答案 0 :(得分:1)

是的,这个格式在WireCloud 0.7.0上已被弃用(虽然我们没有提供该版本的发行说明,抱歉),并在WireCloud 0.9.1中删除了

您可以通过执行以下命令(使用WireCloud 0.9.0或bellow)将窗口小部件描述从此格式转换为当前格式:

$ wirecloud-admin convert -d xml config.xml config.xml