nedcomp hosting homepage

Producten en Diensten
Dedicated servers
Datacenter informatie
Partners, resellers
Helpdesk informatie
Technische docs, tools
Support homepage
ASP componenten
Praktische ASP, ASP.NET
Visual route server
Whois (domein gegevens)
Software documentatie
Whitepapers
Zoeken
Nedcomp / algemeen

Zoeken
 

Copyright © Nedcomp Hosting
Telefoon nr :   +31 184 670111
Fax nummer :   +31 184 631384
E-mailadres :   info@nedcomp.nl
 

Microsoft XML Core Services (MSXML) 4.0 - DOM Reference

namespaces Property

Returns the list of namespaces used in the document as XMLSchemaCache.

[Script]

Script Syntax

objXMLDOMSchemaCollection = objIXMLDOMDocument2.namespaces;

Example

// Load a document (and any schemas referenced via X-Schema).
xmldoc.load ("somedata.xml");
// Get the namespace of the root element.
var namespaceURI = xmldoc.documentElement.namespaceURI;
// Find the schema associated with the namespace.
var schema = xmldoc.namespaces.get(namespaceURI);
[Visual Basic]

Visual Basic Syntax

Set objXMLDOMSchemaCollection = objIXMLDOMDocument2.namespaces

Example

Dim xmlDoc As New Msxml2.DOMDocument40
Dim namespaceURI As String
Dim schema As XMLSchemaCache40
' Load a document (and any schemas referenced via X-Schema).
xmlDoc.Load ("books.xml")
' Get the namespace of the root element.
namespaceURI = xmlDoc.documentElement.namespaceURI
' Find the schema associated with the namespace.
Set schema = xmlDoc.namespaces.get(namespaceURI)
[C/C++]

C/C++ Syntax

HRESULT get_namespaces (IXMLDOMSchemaCollection ** namespaceCollection);

Parameters

namespaceCollection [out, retval]
Collection of all namespaces for the document.

Remarks

If there are no schemas, it returns an empty collection.

To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

Applies to: IXMLDOMSchemaCollection/XMLSchemaCache


Download de SDK