【问题标题】:XML Schema file, explain?XML Schema 文件,解释一下?
【发布时间】:2010-08-25 18:17:38
【问题描述】:

这是我们在 SharePoint 中的一个 XML 文件的一部分:

  <BuildManifest nsprefix ="ns0" ns="http://tempuri.org/Eform_Schema.xsd" version="1.1">
      <IdentifyInputParameters>
        <BusinessObject ref="Request1" type="RequestProcessing_BL.Request" />
      </IdentifyInputParameters>

      <Metadata>
        <Source ref="ThisForm" reflectionPath=".FormURL" />
        <Destination xpath="//ns0:eForm" attribute="formURL">
        </Destination>
      </Metadata>

      <Populate>
        <Source ref ="Request1" reflectionPath=".RequestTypeGroupDisplayName" />
        <Destination xpath="//ns0:eForm/descendant::ns0:data[@name='FirstName']"></Destination>
      </Populate>

我的问题:

1- Eform_Schema.xsd 文件位于 SharePoint 的根目录中。命令 ns="http://tempuri.org/Eform_Schema.xsd" 如何到达它?

2- “nsprefix, ns, ref, type”是 XML 中的保留字吗?

3- xpath="//ns0:eForm/descendant::ns0:data[@name='FirstName'] 从数据库中获取名字。它是如何做到的?

谢谢,

艾哈迈德。

【问题讨论】:

    标签: xml xsd


    【解决方案1】:

    1- Eform_Schema.xsd 文件位于 SharePoint 的根目录中。命令 ns="http://tempuri.org/Eform_Schema.xsd" 如何到达它? It's up to SharePoint's parsing algorithm that does that.

    2- “nsprefix, ns, ref, type”是 XML 中的保留字吗? No. They are just normal attributes of your XML Node.

    3- xpath="//ns0:eForm/descendant::ns0:data[@name='FirstName'] 从数据库中获取名字。它是如何做到的?It uses xPath. this is a selector for XML documents.

    要了解有关 xpath 的更多信息:http://www.w3schools.com/xpath/

    【讨论】:

    • 感谢 sheeks06 的回答。艾哈迈德。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-08
    • 1970-01-01
    • 2013-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多