如何使用新值更新odrl(如xml)文件?

时间:2017-12-13 16:59:56

标签: php xml

我在odrl中有这个文件(比如xml特定于许可证)

    <?xml version="1.0" encoding="UTF-8"?>
<o-ex:rights
    xmlns:o-ex="licences/ODRL-EX-11"
    xmlns:o-dd="licences/ODRL-DD-11"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ie-ex="licences/ieee1599-EX"
 >
      <!-- agreementS -->
<o-ex:agreement>
  <o-ex:permission o-ex:id="permission_audio">
    <o-dd:play>

      <o-ex:constraint o-ex:id="constraint_quality">
        <ie-ex:qualityOfResource value="medium"/>
      </o-ex:constraint>        
          <o-dd:datetime>
              <o-dd:start>2017-08-16</o-dd:start>
                <o-dd:end>2017-10-20</o-dd:end>
          </o-dd:datetime>
      </o-ex:constraint>
  </o-dd:play>

</o-ex:permission>
</o-ex:agreement>

如何使用新值更新文件? 例如:

<o-dd:start>2018-04-15</o-dd:start>

0 个答案:

没有答案