Re: Langages de "patch" pour XML

Stephane Bortzmeyer <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <[email protected]>
On Fri, Feb 10, 2006 at 09:49:36AM +0000,
 Tiscar Sebastien <[email protected]> wrote 
 a message of 88 lines which said:

> pourriez vous expliquer la notion de "langage de patch"?

Il s'agit d'exprimer des changements (patches) à un document XML. Un
exemple tiré de XML-patch (Internet-draft
draft-ietf-simple-xml-patch-ops-01.txt) vaut mieux qu'un long discours
:

   <add sel="doc"><foo id="ert4773">This is a new child</foo></add>
   <remove sel="doc/foo[@a='1']"/>

Sinon, l'introduction dudit Internet-draft décrit bien le but visé :

   Extensible Markup Language (XML) documents are widely used as
   containers for the exchange and storage of arbitrary data in today's
   systems.  Updates to this data require transporting of the entire XML
   document between hosts, unless there's a mechanism that allows
   exchanging only the updates of XML documents.  This document
   describes an XML patch framework utilizing XML Path language (XPath)
   selectors.  These selector values and updated new data content
   constitute the basis of patch operations described in this document.
   In addition to them, with basic <add>, <replace> and <remove>
   directives a set of patches can then be applied to update an existing
   XML document.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.