With the following table:
CREATE TABLE [dbo].[GDB_ITEMS](
[ObjectID] [int] NOT NULL,
[UUID] [uniqueidentifier] NOT NULL,
[Type] [uniqueidentifier] NOT NULL,
[Name] [nvarchar](226) NULL,
[PhysicalName] [nvarchar](226) NULL,
[Path] [nvarchar](512) NULL,
[Url] [nvarchar](255) NULL,
[Properties] [int] NULL,
[Defaults] [varbinary](max) NULL,
[DatasetSubtype1] [int] NULL,
[DatasetSubtype2] [int] NULL,
[DatasetInfo1] [nvarchar](255) NULL,
[DatasetInfo2] [nvarchar](255) NULL,
[Definition] [xml] NULL,
[Documentation] [xml] NULL,
[ItemInfo] [xml] NULL,
[Shape] [geometry] NULL,
CONSTRAINT [R2_pk] PRIMARY KEY CLUSTERED
(
[ObjectID] ASC
)
The xml column documentation contains this element group 1:
<spdom>
<bounding>
<westbc>-84.007769</westbc>
<eastbc>-83.037582</eastbc>
<northbc>35.790660</northbc>
<southbc>35.418718</southbc>
</bounding>
</spdom>
and this element group 2:
<GeoBndBox esriExtentType="search">
<westBL Sync="TRUE">-84.024010</westBL>
<eastBL Sync="TRUE">-82.992641</eastBL>
<northBL Sync="TRUE">35.845552</northBL>
<southBL Sync="TRUE">35.417139</southBL>
<exTypeCode Sync="TRUE">1</exTypeCode>
</GeoBndBox>
What I'd like to do, programmatically, is replace the values in group1 with the values in group 2. E.g, westbc and westBL are the same definition, so I'd like to replace -84.007769 with -84.024010. Attempting to do this on several thousand records in gdb_items, each with different text values in that element group. Thanks!
documentsshould beDocumentation) What do you mean by "element group"? Do you mean thatDocumentationcontains a larger XML document, andspdomandGeoBndBoxare two elements in that document?