|
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
|
Convert HTML to XML
Convert HTML-to-XML with a Document Wizard that quickly converts any HTML to standard XML with the click of a button! To get started, just click File, Document Wizards on the Stylus Studio menu.
Technology Companies That Use Stylus Studio
Technology companies can't always handle every technology that they come across. That's why when it comes to XML, they look to Stylus Studio to guide them. Check out which top technology companies are looking to the future with Stylus Studio.
Oil, Gas & Electric Companies That Use Stylus Studio
Oil, gas & electric companies know a good resource when they see it. That's why they use Stylus Studio as their #1 XML resource. Come see which of these top oil, gas & electric companies are conserving their time and labor with Stylus Studio.
Java IDE
Edit, compile and debug and generate Java code with Stylus Studio's Java Integrated Development Environment (IDE). Supports popular Java XML processing components including Apache Xalan, Apache Axis, Apache Xerces, Saxon and more.