XUpdate

XUpdate steht für XML Update Language und ist eine XML-basierte Sprache zur Datenmanipulation. Der aktuelle Working Draft ist aus dem Jahr 2000 und damit recht alt. Es scheint, als ob die Entwicklung eingestellt ist. Eventuell wird die Manipulationskomponente in neuere Versionen von XQuery einfließen. Dennoch wird XUpdate von einigen nativen XML-Datenbanken unterstützt. Hervorgebracht wurde der XUpdate Working Draft[1] im Rahmen des XML:DB-Projektes,[2] das schon seit längerem bei SourceForge gehostet wird.

Der Namespace von XUpdate ist der URI http://www.xmldb.org/xupdate. Die Domain ist mit dem Umzug zu Sourceforge jedoch nicht mehr gleichzeitig die Heimat des Projektes.

Aufbau

XUpdate besteht aus den folgenden Hauptelementen:

  • xupdate:modifications
  • xupdate:insert-before
  • xupdate:append
  • xupdate:update
  • xupdate:remove
  • xupdate:rename

Zur Selektion der zu manipulierenden Daten wird XPath verwendet.

Beispiel

<?xml version="1.0"?>
<xupdate:modifications version="1.0"
                       xmlns:xupdate="http://www.xmldb.org/xupdate">
  <xupdate:insert-after select="/addresses/address[1]" >
    <xupdate:element name="address">
      <xupdate:attribute name="id">2</xupdate:attribute>
      <fullname>Lars Martin</fullname>
      <born day='2' month='12' year='1974'/>
      <town>Leipzig</town>
      <country>Germany</country>
    </xupdate:element>
  </xupdate:insert-after>
</xupdate:modifications>

Einzelnachweise

  1. XML:DB Initiative: XUpdate - XML Update Language. Abgerufen am 20. Mai 2015.
  2. XML:DB-Projekt bei Sourceforge

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.