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
cheryl culwellSubject: XQUERY RESULTS NOT IN PROPER FORMAT (SEE BELOW
Author: cheryl culwell
Date: 05 Oct 2010 03:18 PM
This is my result:
975330530306017-059-2569533053030623305303067330530306633-025-0095942-003-3954433-061-0115433-025-0098133-061-011983306101167000033-06101169-000033-053-03077330250108733025010863306101174000042-499-3209633-053-0307433-053-0305033-053-0309733-105-0172433-061-0117533-053-0309933-105-016741704721099-0000330610136733-105-0181917-031-2498317-059-2569417-059-2570217-119-2218133105018503310501850331050184933-025-0026317-013-2198833-053-0313233-053-0313333-053-0313442-123-31950</a:FacID></a:Facility>
But I need it like this:
<FacID>975330530306017-059-256</FacID>
<FacID>9533053030623305303067330</FacID>
Can you help me understand what I am doing wrong?
thanks,

Posttop
William BasabeSubject: XQUERY RESULTS NOT IN PROPER FORMAT (SEE BELOW
Author: William Basabe
Date: 25 Mar 2011 02:44 PM
if you use a for statement you have to use a tag like this:

for $xml in /root/test
return
<id>$xml/number</id>

Hope you can use it.

 
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.