|
Home > Online Product Documentation > Table of Contents > Obtaining Namespace Information Obtaining Namespace InformationYou can call functions to obtain namespace information. This topic discusses In addition to a discussion of the functions you call, this section covers the following: Obtaining the Namespace URI
To obtain the URI for a namespace, call the
The
Call the
returns the string
For any other type of node, the XPath processor always returns an empty string. Obtaining the Local Name
To obtain the local portion of a node name, excluding the prefix, call the
The
Obtaining the Expanded Name
To obtain the expanded name of a node, call the
The
Typically, this is the name in the XML source. This need not be the case if there are namespace declarations in effect on the node that associate multiple prefixes with the same namespace. If the node-set argument is empty or the first node has no expanded name, the XPath processor returns an empty string. If you omit the argument, it defaults to a node set with the context node as its only member.
Except for element and attribute nodes, the string that the
Specifying Wildcards with Namespaces
Element and attribute names that include colons (
Examples of Namespaces in Queries
The following example finds all
The next query finds all
The following query finds all
The following query finds all
The next example returns the
|
MySQL XML Tools
The MySQL tools in Stylus Studio simplify XML related development tasks for working with MySQL and XML.
XML Schema Validation
Validate XML using XML Schema with MSXML, XERCES, XSV, SYSTEM.XML, & other XSD Validators. Stylus Studio's XML Schema-Aware XML Editing makes XML Schema Validation a snap!
Stylus Studio Lends a Helping Hand to the New Orleans Reconstruction Efforts
Read how Stylus Studio is helping with the on-going hurricane Katrina reconstruction efforts in New Orleans.
Using DTD in Java Applications
Learn how to validate XML documents using industry-standard DTD's from within your Java applications using Java DTD components including Apache Xerces and XSV.