Update action XML encoding

information model that the catalogue supports as described using the DescribeRecord operation. The handle attribute is an additional parameter not defined in the general model. It is used in the XML encoding to associate a mnemonic name with each action contained in a Transaction element for the purpose of error handling. If a CSW encounters an error processing a transaction request and the handle attribute is defined, the CSW can localize the source of the problem for the client by specifying the handle in the exception response as described in Subclause 10.3.7.

10.11.3.3 Update action

The following XML Schema fragment defines an update action: xsd:complexType name=UpdateType id=UpdateType xsd:sequence xsd:choice xsd:any processContents=strict namespace=other xsd:sequence xsd:element ref=csw:RecordProperty maxOccurs=unbounded xsd:element ref=csw:Constraint xsd:sequence xsd:choice xsd:sequence xsd:attribute name=typeName type=xsd:anyURI use=optional xsd:attribute name=handle type=xsd:ID use=optional xsd:complexType xsd:complexType name=RecordPropertyType xsd:sequence xsd:element name=Name type=xsd:string xsd:element name=Value type=xsd:anyType minOccurs=0 xsd:sequence xsd:complexType The Update element is used to specify values to be used to change existing information in the catalogue. If the Update element contains a child element declared in some other namespace i.e., not “http:www.opengis.netcatcsw”, then the corresponding record in the catalogue shall be replaced. The record type shall be defined in an application profile. If individual record property values are specified in the Update element, using the RecordProperty element, then those individual property values of the catalogue record shall be updated. The RecordProperty element contains a Name element and a Value element. The Name element is used to specify the name of the record property to be updated. The value of the Name element may be a path expression to identify complex properties. The Value element contains the value that will be used to update the record in the catalogue. The number of records affected by an Update action is determined by the contents of the Constraint element. The Constraint element is defined in Subclause 10.3.7 and is used to define the set of catalogue records that the update operation will affect. In Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved. 167 order to prevent all records in a catalogue from inadvertently being updated, the Constraint element shall be specified. The optional typeName attribute may be used to specify the collection name from which records will be updated. The handle attribute is described in subclause 10.11.3.2.

10.11.3.4 Delete action