XUpdate

from Wikipedia, the free encyclopedia

XUpdate stands for XML Update Language and is an XML -based language for data manipulation. The current working draft is from the year 2000 and is therefore quite old. It seems like development has stopped. The manipulation component may be incorporated into newer versions of XQuery . Nevertheless, XUpdate is supported by some native XML databases . The XUpdate Working Draft was created as part of the XML: DB project, which has been hosted at SourceForge for a long time .

The namespace of XUpdate is the URI http://www.xmldb.org/xupdate. With the move to Sourceforge, the domain is no longer the home of the project.

construction

XUpdate consists of the following main elements:

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

XPath is used to select the data to be manipulated .

example

<?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>

Web links

Individual evidence

  1. XML: DB Initiative: XUpdate - XML ​​Update Language. Retrieved May 20, 2015 .
  2. XML: DB project at Sourceforge