Ms word 标题元素没有';不能使用清单XML中的Action元素

Ms word 标题元素没有';不能使用清单XML中的Action元素,ms-word,office365,office-js,word-addins,Ms Word,Office365,Office Js,Word Addins,我正在为Microsoft Word创建外接程序 我在Action元素中得到Title元素的清单验证错误 例如: <Action xsi:type="ShowTaskpane"> <Title resid="Contoso.Taskpane.Title" /> --> //Adding this line throws error <TaskpaneId>ButtonId1</TaskpaneId>

我正在为Microsoft Word创建外接程序

我在
Action
元素中得到
Title
元素的清单验证错误

例如:

    <Action xsi:type="ShowTaskpane">
       <Title resid="Contoso.Taskpane.Title" />  --> //Adding this line throws error 
       <TaskpaneId>ButtonId1</TaskpaneId>
       <SourceLocation resid="Contoso.Taskpane.Url" />
   </Action>

-->//添加此行会引发错误
按钮1

有人能帮我吗?

验证器检查XML元素的显示顺序

请使用以下代码:

   <Action xsi:type="ShowTaskpane">
      <TaskpaneId>ButtonId1</TaskpaneId>
      <SourceLocation resid="Contoso.Taskpane.Url" />
       <Title resid="Contoso.Taskpane.Title" />  -->  
   </Action>

按钮1
-->  

验证程序检查XML元素的显示顺序

请使用以下代码:

   <Action xsi:type="ShowTaskpane">
      <TaskpaneId>ButtonId1</TaskpaneId>
      <SourceLocation resid="Contoso.Taskpane.Url" />
       <Title resid="Contoso.Taskpane.Title" />  -->  
   </Action>

按钮1
-->