Method: Item for DocumentNamespaces <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > 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)
Object | DocumentNamespaces <DataPlugin> Object with this method |
PropNameOrIndex | Variant Specifies the name or the index of the namespace. |
oDocumentNamespace | DocumentNamespace <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