DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: Item for DocumentNamespaces <DataPlugin>

Method: Item for DocumentNamespaces <DataPlugin>

Returns a namespace of a document. Use namespaces to group XML elements in a document.

Set oDocumentNamespace = Object.Item(PropNameOrIndex)
ObjectDocumentNamespaces <DataPlugin>
Object with this method
PropNameOrIndexVariant
Specifies the name or the index of the namespace.
oDocumentNamespaceDocumentNamespace <DataPlugin>
Returned object
Note  You can always omit the Item method because it is the standard element of the collection.

The following example transfers all meta properties of a document's namespaces into the data set properties:

Dim oMyNamespaceProps, i, j
For i = 1 to Document.Namespaces.Count
  Set oMyNamespaceProps = Document.Namespaces(i).Properties
  For j = 1 to oMyNamespaceProps.Count
    Call Root.Properties.Add(oMyNamespaceProps(j).Name, oMyNamespaceProps(j).Value)
  Next
Next
In This Section
Was this information helpful?