|
Home > Online Product Documentation > Table of Contents > Working with Namespaces Working with NamespacesWhen the XML document declares one or more namespaces, those namespaces are displayed in the namespace pane, as shown here:
In addition to the namespace URI, Stylus Studio displays the namespace prefix declared in the XML document, if any, and a prefix that is used when creating XPath query expressions. If one namespace prefix clashes with another in the XML document, Stylus Studio renames the second prefix by adding a number to the end of the original prefix name to make it unique - for example, if two namespaces have the prefix bks, the second is renamed bks1. Similarly, if no namespace prefix has been declared, Stylus Studio creates a default namespace prefix, ns1. Namespace declarations in the XML document are not changed. Namespace prefixes defined for the query Changes saved to the XML document are reflected in the namespace pane when you click on the namespace pane or query pane. Viewing/Changing Namespace PrefixesYou must use the value in the Query for Prefix field when writing XPath query expressions; you can specify your own prefix if want to use one other than the one provided by Stylus Studio. To change a namespace prefix:
1. Click the
Show Namespaces button (
The namespace pane shows any namespaces that have been defined for the current XML document, as well their associated namespace prefixes, if any.
2. Optionally, change the value in the
Prefix for Query field.
|
Business Solutions & Outsourcing
Business Solutions & Outsourcing companies know the best solutions. That's why they choose Stylus Studio to enhance their business productivity. See which companies are already using Stylus Studio 2006 to take care of their own business!
The XML Primer: Editing and Validating XML in Stylus Studio
The XML primer demonstrates editing and validating XML in Stylus Studio demonstrates XML editing tools and utilities to simplify working with XML documents. Learn how to automate XML editing operations and troubleshoot XML documents today!
XML File Explorer
The XML File Explorer provides a productive, consistent, and easy-to-use interface for working with any data sources (relational data, EDI, binary, XML, CSV, and more) used in enterprise data integration projects.
DataDirect XML Converters
DataDirect XML Converters are high-performance Java components which provide bi-directional, programmatic access to virtually any data source as XML.


