|
Home > Online Product Documentation > Table of Contents > Creating a collection() Statement Creating a collection() Statement
This topic describes how to create a
collection() Function Syntax
The
You can always edit
What Happens When You Create a collection() Statement?
You create a
Once the database connection information is registered with the XQuery document, you can expand the database nodes in the schema pane to display individual table and view columns. Creating Multiple ConnectionsWhen you drop an object on the editing pane from the File Explorer window, Stylus Studio displays the connection information in the schema pane of the XQuery Editor. If you then drag and drop another object, Stylus Studio either
A new
How to Create a collection() StatementTo create a collection() function:
1. Open a new XQuery document if one is not already open. The
XQuery Source tab should be displayed.
2. Ensure that you have established a valid database connection as described in
Creating a Database Connection.
3. In the
File Explorer window, expand the database and tablespace to display the tables or views you want to access in your XQuery, as shown in this example:
Optionally, display table and view columns by selecting Read Structure from the table or view shortcut menu (right-click).
4. Drag the desired table or view and drop it on the editing pane of the
XQuery Source tab.
Optionally, drop the table or view on the schema pane of the
XQuery Source tab. If you do this, you must then drag the desired table or view from the schema pane to the editing pane to create the
Stylus Studio creates the
|
XML Code Folding
Stylus Studio's XML Editor features XML code folding, a powerful and intuitive way to maximize limited screen real-estate and help make sense of large XML files.
XML Differencing
Stylus Studio's integrated XML Differencing tool visually computes and analyzes any changes made to files or folders in a highly configurable, XML-aware fashion. Display text or tree views, with changes displayed in a merged view or side-by-side!
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.
XML Unicode Encoding
Stylus Studio supports over 300 different file encodings, including UTF-8, UTF-16, EUC-JP, SHIFT-JIS, and more, alowing you to work with any XML document. Robust text editors support standard editing features, and Sense:X intelligent auto-completion.