XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Joe RobeSubject: finding nodes in source document
Author: Joe Robe
Date: 02 Apr 2007 08:26 PM
Hi,

I need to transform various HTML pages to XML documents. That works fine using the xquery editor. However it is very tedious to find the sources nodes ! (X)HTML documents are usually very complex XML trees, so currently I open the source document separately an use the query editor to find my node and than manually paste the source into the xquery doc.

Is there any way to do this directly from the xquery editor ? If not it would be an important feature to add ! (I guess this is not to difficult as the xpath/xquery UI already exists)

Joe Robe

Posttop
Alberto MassariSubject: finding nodes in source document
Author: Alberto Massari
Date: 05 Apr 2007 03:49 AM
Hi Joe,
if you need just to find out the path to reach a specific node, you can use the schema pane that is located at the right of the XQuery editor, and drag the node you need into the editor itself in order to generate the correct XPath (possibly using paths relative to the declared variables).
If you need instead to pick up a specific node by looking at its value, using the XPath window in the XML Editor is the correct way (you can also tailor the namespace prefix to be the same used in the XQuery that will host the XPath)

Hope this helps,
Alberto

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.