[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-user
Subject:    RE: XQuery
From:       "Radu Preotiuc-Pietro" <radup () bea ! com>
Date:       2008-05-02 0:13:12
Message-ID: BF6B6CA032BA0A429BD924F96765147DBF3317 () repbex02 ! amer ! bea ! com
[Download RAW message or body]

Did you go to http://sourceforge.net/projects/saxon/, then clicked on
Download->Browse All Files? All versions are there.
 
Radu


________________________________

	From: Gustavo Aquino [mailto:aquino.gustavo@gmail.com] 
	Sent: Thursday, May 01, 2008 5:02 PM
	To: user@xmlbeans.apache.org
	Subject: Re: XQuery
	
	
	Radu, 

	Where i can download saxon 8.8 ? i find only saxonb 9, 8.1.1 and
8.6.1.

	Kind Regards.

	Gustavo
	
	
	On Thu, May 1, 2008 at 8:19 PM, Radu Preotiuc-Pietro
<radup@bea.com> wrote:
	

		Gustavo,
		 
		XMLBeans 2.3.0 is designed to work with Saxon 8.8 (Saxon
8.6.1 also works, but not as well, as I remember). Support for Saxon 9.0
has only recently been added to the SVN repository.
		 
		The fact that Saxon APIs change so much from one
revision of Saxon to the next makes it too difficult at present to
reliably support more than one version of Saxon per version of XMLBeans.
		 
		Radu


________________________________

			
			From: Gustavo Aquino
[mailto:aquino.gustavo@gmail.com] 
			
			Sent: Thursday, May 01, 2008 12:54 PM 

			To: user@xmlbeans.apache.org
			Subject: Re: XQuery
			

			Hi Radu, 

			Yes im using xmlbeans 2.3.0, but not saxon 8.8
combo, im using saxon 9.0.0.4 combo.

			yes, i confirm scoreDoc =
ScoreDocument.Factory.parse(new File("score.xml")) 
			
			

			i tried with saxon 8.6.1 and now works fine.
xmlbeans doest support saxon9 ?


			Regards

			On Thu, Apr 24, 2008 at 9:52 PM, Radu
Preotiuc-Pietro <radup@bea.com> wrote:
			

				Ah ok, sorry for not looking closer at
your original example.
				 
				However, I have just tried your exact
code (and input document) and it works for me... Are you using the
XMLBeans 2.3.0/Saxon 8.8 combo? Can you confirm that scoreDoc =
XmlObject.Factory.parse(new File("score.xml")) ?
				 
				Radu


________________________________

				
				From: Gustavo Aquino
[mailto:aquino.gustavo@gmail.com] 
				
				Sent: Sunday, April 20, 2008 1:41 PM 

				To: user@xmlbeans.apache.org
				
				Subject: Re: XQuery
				
				
				Hi Radu, 

				The xquery with doc element, is used
only in XMLSpy test, you can see in block "CODE" i change the doc... per
$this.

				the same query using saxon run all right
but in xmlbeans this didn't work.

				Gustavo


				On Thu, Apr 17, 2008 at 5:29 PM, Radu
Preotiuc-Pietro <radup@bea.com> wrote:
				

				Query looks good. But when I see the
"doc("score.xml")" call with a relative path in it, I'm thinking that is
something that can cause problems. Also, please note that the free
version of Saxon that XMLBeans uses doesn't support typed XQuery so you
need to try XMLSpy without the Schema for a meaningful comparison.
				 
				Radu


________________________________

				From: Gustavo Aquino
[mailto:aquino.gustavo@gmail.com] 
				Sent: Wednesday, April 16, 2008 2:17 PM
				To: user@xmlbeans.apache.org
				Subject: XQuery
				
				
				Hi,
				 
				I'm trying to use XQuery in XMLBeans.
				 
				Well using samples in XMLBeans package,
all work fine, but when i write my XQuery it is not work.
				 
				I wrote my XQuery and validate in XML
Spy and all work fines, but when i put my xquery in XMLBeans this not
return nothing.
				 
				 
	
------------------------------------------------------------------------
----------------------------------------------------------------------
XQUERY -----
				declare

				namespace
n1='http://xxxxx.com.br/score/probability';
				for $x in
doc("score.xml")/n1:scores/score
				  let $s := $x/name 
				  where $s = 'Score1' 
				return $x
	
------------------------------------------------------------------------
----------------------------------------------------------------------
XML -----
				<?xml version="1.0" encoding="UTF-8"?>
				

				<n1:scores
xsi:schemaLocation="http://xxxxx.com.br/score/probability
score_probability.xsd" xmlns:n1="http://xxxxx.com.br/score/probability"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
				<score>
				<class>0</class>
				<rating>String</rating>
				<probability>String</probability>
				<initial_score>0</initial_score>
				<end_score>0</end_score>
				<name>Score1</name>
				</score>
				<score>
				<class>0</class>
				<rating>String</rating>
				<probability>String</probability>
				<initial_score>0</initial_score>
				<end_score>0</end_score>
				<name>Score2</name>
				</score>
				<score>
				<class>0</class>
				<rating>String</rating>
				<probability>String</probability>
				<initial_score>0</initial_score>
				<end_score>0</end_score>
				<name>Score3</name>
				</score>
				</n1:scores>
	
------------------------------------------------------------------------
----------------------------------------------------------------------
RETURN  XML Spry-----
				 <score
xmlns:n1=http://xxxxx.com.br/score/probability
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><class>0</class><r
ating>String</rating><probability>String</probability><initial_score>0</
initial_score><end_score>0</end_score><name>Score1</name></score>
				 
	
------------------------------------------------------------------------
----------------------------------------------------------------------
CODE -----
				 
				  

				String newQuery=

				"declare namespace
n1='http://xxxxx.com.br/score/probability'; "+
				"for $x in $this/n1:scores/score "+
				"let $s := $x/name "+
				"where $s = 'Score1' "+
				"return $x"; 

				

				XmlCursor scoreCursor = 

				scoreDoc.newCursor();
				scoreCursor.toNextToken();
				XmlCursor resultCursor =
scoreCursor.execQuery(newQuery);
				System.out.println("The query results :
");
	
System.out.println(resultCursor.getObject().toString() + "\n");
	
------------------------------------------------------------------------
----------------------------------------------------------------------
RETURN  PROGRAM-----
				  

				The query results : 

				

				<xml-fragment/>

				 

				 

				Thanks for any help.

				Gustavo

				 


				Notice: This email message, together
with any attachments, may contain information of BEA Systems, Inc., its
subsidiaries and affiliated entities, that may be confidential,
proprietary, copyrighted and/or legally privileged, and is intended
solely for the use of the individual or entity named in this message. If
you are not the intended recipient, and have received this message in
error, please immediately return this by email and then delete it.



				Notice: This email message, together
with any attachments, may contain information of BEA Systems, Inc., its
subsidiaries and affiliated entities, that may be confidential,
proprietary, copyrighted and/or legally privileged, and is intended
solely for the use of the individual or entity named in this message. If
you are not the intended recipient, and have received this message in
error, please immediately return this by email and then delete it.



		Notice: This email message, together with any
attachments, may contain information of BEA Systems, Inc., its
subsidiaries and affiliated entities, that may be confidential,
proprietary, copyrighted and/or legally privileged, and is intended
solely for the use of the individual or entity named in this message. If
you are not the intended recipient, and have received this message in
error, please immediately return this by email and then delete it.



Notice:  This email message, together with any attachments, may contain information  \
of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be \
confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended \
solely for the use of the individual or entity named in this message. If you are not \
the intended recipient, and have received this message in error, please immediately \
return this by email and then delete it.


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=828121100-02052008><FONT face=Arial 
color=#0000ff size=2>Did you go to <A 
href="http://sourceforge.net/projects/saxon/">http://sourceforge.net/projects/saxon/</A>, \
 then clicked on Download-&gt;Browse All Files? All versions are 
there.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=828121100-02052008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=828121100-02052008><FONT face=Arial 
color=#0000ff size=2>Radu</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; \
MARGIN-RIGHT: 0px">  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> Gustavo Aquino 
  [mailto:aquino.gustavo@gmail.com] <BR><B>Sent:</B> Thursday, May 01, 2008 5:02 
  PM<BR><B>To:</B> user@xmlbeans.apache.org<BR><B>Subject:</B> Re: 
  XQuery<BR></FONT><BR></DIV>
  <DIV></DIV>Radu,
  <DIV><BR></DIV>
  <DIV>Where i can download saxon 8.8 ? i find only saxonb 9, 8.1.1 and <A 
  href="http://8.6.1.">8.6.1.</A></DIV>
  <DIV><BR></DIV>
  <DIV>Kind Regards.</DIV>
  <DIV><BR></DIV>
  <DIV>Gustavo<BR><BR>
  <DIV class=gmail_quote>On Thu, May 1, 2008 at 8:19 PM, Radu Preotiuc-Pietro 
  &lt;<A href="mailto:radup@bea.com">radup@bea.com</A>&gt; wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
    <DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2>Gustavo,</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>XMLBeans 
    2.3.0 is designed to work with Saxon 8.8 (Saxon 8.6.1 also works, but not as 
    well, as I remember). Support for Saxon 9.0 has only recently been added to 
    the SVN repository.</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>The fact 
    that Saxon APIs change so much from one revision of Saxon to the next makes 
    it too difficult at present to reliably support more than one version of 
    Saxon per version of XMLBeans.</FONT></SPAN></DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2></FONT></SPAN>&nbsp;</DIV>
    <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
    size=2>Radu</FONT></SPAN></DIV><BR>
    <BLOCKQUOTE dir=ltr 
    style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; \
MARGIN-RIGHT: 0px">  <DIV lang=en-us dir=ltr align=left>
      <HR>
      <FONT face=Tahoma size=2>
      <DIV class=Ih2E3d><B>From:</B> Gustavo Aquino [mailto:<A 
      href="mailto:aquino.gustavo@gmail.com" 
      target=_blank>aquino.gustavo@gmail.com</A>] <BR></DIV><B>Sent:</B> 
      Thursday, May 01, 2008 12:54 PM
      <DIV>
      <DIV></DIV>
      <DIV class=Wj3C7c><BR><B>To:</B> <A href="mailto:user@xmlbeans.apache.org" 
      target=_blank>user@xmlbeans.apache.org</A><BR><B>Subject:</B> Re: 
      XQuery<BR></DIV></DIV></FONT><BR></DIV>
      <DIV>
      <DIV></DIV>
      <DIV class=Wj3C7c>
      <DIV></DIV>Hi Radu, 
      <DIV><BR></DIV>
      <DIV>Yes im using xmlbeans 2.3.0, but not saxon 8.8 combo, im using saxon 
      <A href="http://9.0.0.4" target=_blank>9.0.0.4</A> combo.</DIV>
      <DIV><BR></DIV>
      <DIV>yes, i confirm&nbsp;<SPAN 
      style="COLOR: rgb(0,0,255); FONT-FAMILY: Arial">scoreDoc = 
      ScoreDocument.Factory.parse(new 
      File("score.xml"))&nbsp;</SPAN><BR><BR></DIV>
      <DIV><BR></DIV>
      <DIV>i tried with saxon 8.6.1 and now works fine. 
      xmlbeans&nbsp;doest&nbsp;support&nbsp;saxon9 ?</DIV>
      <DIV><BR></DIV>
      <DIV><BR></DIV>
      <DIV>Regards</DIV>
      <DIV><BR>
      <DIV class=gmail_quote>On Thu, Apr 24, 2008 at 9:52 PM, Radu 
      Preotiuc-Pietro &lt;<A href="mailto:radup@bea.com" 
      target=_blank>radup@bea.com</A>&gt; wrote:<BR>
      <BLOCKQUOTE class=gmail_quote 
      style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px \
solid">  <DIV>
        <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Ah 
        ok, sorry for not looking closer at your original 
        example.</FONT></SPAN></DIV>
        <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
        size=2></FONT></SPAN>&nbsp;</DIV>
        <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
        size=2>However, I have just tried your exact code (and input document) 
        and it works for me... Are you using the XMLBeans 2.3.0/Saxon 8.8 combo? 
        Can you confirm that scoreDoc = XmlObject.Factory.parse(new 
        File("score.xml")) ?</FONT></SPAN></DIV>
        <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
        size=2></FONT></SPAN>&nbsp;</DIV>
        <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
        size=2>Radu</FONT></SPAN></DIV><BR>
        <BLOCKQUOTE dir=ltr 
        style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; \
MARGIN-RIGHT: 0px">  <DIV lang=en-us dir=ltr align=left>
          <HR>
          <FONT face=Tahoma size=2>
          <DIV><B>From:</B> Gustavo Aquino [mailto:<A 
          href="mailto:aquino.gustavo@gmail.com" 
          target=_blank>aquino.gustavo@gmail.com</A>] <BR></DIV><B>Sent:</B> 
          Sunday, April 20, 2008 1:41 PM 
          <DIV><BR><B>To:</B> <A href="mailto:user@xmlbeans.apache.org" 
          target=_blank>user@xmlbeans.apache.org</A><BR></DIV><B>Subject:</B> 
          Re: XQuery<BR></FONT><BR></DIV>
          <DIV>
          <DIV></DIV>
          <DIV>
          <DIV></DIV>Hi Radu, 
          <DIV><BR></DIV>
          <DIV>The xquery with doc element, is used only in XMLSpy test, you can 
          see in block "CODE" i change the doc... per $this.</DIV>
          <DIV><BR></DIV>
          <DIV>the same query using saxon run all right but in xmlbeans 
          this&nbsp;didn't&nbsp;work.</DIV>
          <DIV><BR></DIV>
          <DIV>Gustavo</DIV>
          <DIV><BR><BR>
          <DIV class=gmail_quote>On Thu, Apr 17, 2008 at 5:29 PM, Radu 
          Preotiuc-Pietro &lt;<A href="mailto:radup@bea.com" 
          target=_blank>radup@bea.com</A>&gt; wrote:<BR>
          <BLOCKQUOTE class=gmail_quote 
          style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px \
solid">  <DIV>
            <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
            size=2>Query looks good. But when I see the "doc("score.xml")" call 
            with a relative path in it, I'm thinking that is something that can 
            cause problems. Also, please note that the free version of Saxon 
            that XMLBeans uses doesn't support typed XQuery so you need to try 
            XMLSpy without the Schema for a meaningful 
            comparison.</FONT></SPAN></DIV>
            <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
            size=2></FONT></SPAN>&nbsp;</DIV>
            <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
            size=2>Radu</FONT></SPAN></DIV><BR>
            <BLOCKQUOTE dir=ltr 
            style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px \
solid; MARGIN-RIGHT: 0px">  <DIV lang=en-us dir=ltr align=left>
              <HR>
              <FONT face=Tahoma size=2><B>From:</B> Gustavo Aquino [mailto:<A 
              href="mailto:aquino.gustavo@gmail.com" 
              target=_blank>aquino.gustavo@gmail.com</A>] <BR><B>Sent:</B> 
              Wednesday, April 16, 2008 2:17 PM<BR><B>To:</B> <A 
              href="mailto:user@xmlbeans.apache.org" 
              target=_blank>user@xmlbeans.apache.org</A><BR><B>Subject:</B> 
              XQuery<BR></FONT><BR></DIV>
              <DIV>
              <DIV></DIV>
              <DIV>
              <DIV></DIV>
              <DIV>Hi,</DIV>
              <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
              <DIV>I'm trying to use XQuery in XMLBeans.</DIV>
              <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
              <DIV>Well using samples in XMLBeans package, all work fine, but 
              when i write my XQuery it is not work.</DIV>
              <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
              <DIV>I wrote my XQuery and validate in XML Spy and all work fines, 
              but when i put my xquery in XMLBeans this&nbsp;not return 
              nothing.</DIV>
              <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
              <DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
              <DIV>---------------------------------------------------------------------------------------------------------------------------------------------- \
  XQUERY -----</DIV>
              <DIV><FONT color=#0000ff>
              <P>declare</P></FONT><FONT color=#0000ff>namespace</FONT> n1=<FONT 
              color=#cc6600>'<A href="http://xxxxx.com.br/score/probability" 
              target=_blank>http://xxxxx.com.br/score/probability</A>'</FONT>;<BR><FONT \
                
              color=#0000ff>for</FONT> <FONT color=#a000a0>$x</FONT> <FONT 
              color=#0000ff>in</FONT> <FONT color=#666600>doc</FONT>(<FONT 
              color=#cc6600>"score.xml"</FONT>)/n1:scores/score<BR><FONT 
              color=#0000ff>&nbsp; let</FONT> <FONT color=#a000a0>$s</FONT> := 
              <FONT color=#a000a0>$x</FONT>/<FONT color=#666600>name</FONT> 
              <BR><FONT color=#0000ff>&nbsp; where</FONT> <FONT 
              color=#a000a0>$s</FONT> = <FONT color=#cc6600>'Score1'</FONT> 
              <BR><FONT color=#0000ff>return</FONT> <FONT 
              color=#a000a0>$x</FONT></DIV>
              <DIV>---------------------------------------------------------------------------------------------------------------------------------------------- \
  XML -----</DIV>
              <DIV><FONT color=#008080>
              <P>&lt;?xml version="1.0" 
              encoding="UTF-8"?&gt;<BR></P></FONT><FONT 
              color=#0000ff>&lt;</FONT><FONT color=#800000>n1:scores</FONT><FONT 
              color=#ff0000> xsi:schemaLocation</FONT><FONT 
              color=#0000ff>="</FONT>http://<FONT color=#cc6600>xxxxx</FONT>.<A 
              href="http://com.br/score/probability" 
              target=_blank>com.br/score/probability</A> 
              score_probability.xsd<FONT color=#0000ff>"</FONT><FONT 
              color=#ff0000> xmlns:n1</FONT><FONT 
              color=#0000ff>="</FONT>http://<FONT color=#cc6600>xxxxx</FONT>.<A 
              href="http://com.br/score/probability" 
              target=_blank>com.br/score/probability</A><FONT 
              color=#0000ff>"</FONT><FONT color=#ff0000> xmlns:xsi</FONT><FONT 
              color=#0000ff>="</FONT><A 
              href="http://www.w3.org/2001/XMLSchema-instance" 
              target=_blank>http://www.w3.org/2001/XMLSchema-instance</A><FONT 
              color=#0000ff>"&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>score</FONT><FONT color=#0000ff>&gt;<BR></FONT><FONT 
              color=#0000ff>&lt;</FONT><FONT color=#800000>class</FONT><FONT 
              color=#0000ff>&gt;</FONT>0<FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>class</FONT><FONT color=#0000ff>&gt;<BR></FONT><FONT 
              color=#0000ff>&lt;</FONT><FONT color=#800000>rating</FONT><FONT 
              color=#0000ff>&gt;</FONT>String<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>rating</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>probability</FONT><FONT 
              color=#0000ff>&gt;</FONT>String<FONT 
              color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>probability</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>initial_score</FONT><FONT 
              color=#0000ff>&gt;</FONT>0<FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>initial_score</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>end_score</FONT><FONT 
              color=#0000ff>&gt;</FONT>0<FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>end_score</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>name</FONT><FONT 
              color=#0000ff>&gt;</FONT>Score1<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>name</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>score</FONT><FONT color=#0000ff>&gt;<BR></FONT><FONT 
              color=#0000ff>&lt;</FONT><FONT color=#800000>score</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>class</FONT><FONT color=#0000ff>&gt;</FONT>0<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>class</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>rating</FONT><FONT 
              color=#0000ff>&gt;</FONT>String<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>rating</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>probability</FONT><FONT 
              color=#0000ff>&gt;</FONT>String<FONT 
              color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>probability</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>initial_score</FONT><FONT 
              color=#0000ff>&gt;</FONT>0<FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>initial_score</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>end_score</FONT><FONT 
              color=#0000ff>&gt;</FONT>0<FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>end_score</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>name</FONT><FONT 
              color=#0000ff>&gt;</FONT>Score2<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>name</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>score</FONT><FONT color=#0000ff>&gt;<BR></FONT><FONT 
              color=#0000ff>&lt;</FONT><FONT color=#800000>score</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>class</FONT><FONT color=#0000ff>&gt;</FONT>0<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>class</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>rating</FONT><FONT 
              color=#0000ff>&gt;</FONT>String<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>rating</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>probability</FONT><FONT 
              color=#0000ff>&gt;</FONT>String<FONT 
              color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>probability</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>initial_score</FONT><FONT 
              color=#0000ff>&gt;</FONT>0<FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>initial_score</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>end_score</FONT><FONT 
              color=#0000ff>&gt;</FONT>0<FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>end_score</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>name</FONT><FONT 
              color=#0000ff>&gt;</FONT>Score3<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>name</FONT><FONT 
              color=#0000ff>&gt;<BR></FONT><FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>score</FONT><FONT 
              color=#0000ff>&gt;<BR>&lt;/</FONT><FONT 
              color=#800000>n1:scores</FONT><FONT 
color=#0000ff>&gt;</FONT></DIV>
              <DIV>---------------------------------------------------------------------------------------------------------------------------------------------- \
  RETURN&nbsp; XML Spry-----</DIV>
              <DIV>&nbsp;<FONT color=#0000ff>&lt;</FONT><FONT 
              color=#800000>score</FONT><FONT color=#ff0000> 
              xmlns:n1</FONT><FONT color=#0000ff>=</FONT><A 
              href="http://xxxxx.com.br/score/probability" 
              target=_blank>http://xxxxx.com.br/score/probability</A><FONT 
              color=#0000ff></FONT><FONT color=#ff0000> xmlns:xsi</FONT><FONT 
              color=#0000ff>="</FONT><A 
              href="http://www.w3.org/2001/XMLSchema-instance" 
              target=_blank>http://www.w3.org/2001/XMLSchema-instance</A><FONT 
              color=#0000ff>"&gt;&lt;</FONT><FONT 
              color=#800000>class</FONT><FONT color=#0000ff>&gt;</FONT>0<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>class</FONT><FONT 
              color=#0000ff>&gt;&lt;</FONT><FONT 
              color=#800000>rating</FONT><FONT 
              color=#0000ff>&gt;</FONT>String<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>rating</FONT><FONT 
              color=#0000ff>&gt;&lt;</FONT><FONT 
              color=#800000>probability</FONT><FONT 
              color=#0000ff>&gt;</FONT>String<FONT 
              color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>probability</FONT><FONT 
              color=#0000ff>&gt;&lt;</FONT><FONT 
              color=#800000>initial_score</FONT><FONT 
              color=#0000ff>&gt;</FONT>0<FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>initial_score</FONT><FONT 
              color=#0000ff>&gt;&lt;</FONT><FONT 
              color=#800000>end_score</FONT><FONT 
              color=#0000ff>&gt;</FONT>0<FONT color=#0000ff>&lt;/</FONT><FONT 
              color=#800000>end_score</FONT><FONT 
              color=#0000ff>&gt;&lt;</FONT><FONT color=#800000>name</FONT><FONT 
              color=#0000ff>&gt;</FONT>Score1<FONT 
              color=#0000ff>&lt;/</FONT><FONT color=#800000>name</FONT><FONT 
              color=#0000ff>&gt;&lt;/</FONT><FONT 
              color=#800000>score</FONT><FONT color=#0000ff>&gt;</FONT></DIV>
              <DIV>&nbsp;</DIV>
              <DIV>---------------------------------------------------------------------------------------------------------------------------------------------- \
  CODE -----</DIV>
              <DIV>&nbsp;</DIV>
              <DIV>&nbsp;<FONT size=2> 
              <P align=left>String newQuery=</P></FONT><FONT color=#2a00ff 
              size=2>"declare namespace n1='<A 
              href="http://xxxxx.com.br/score/probability" 
              target=_blank>http://xxxxx.com.br/score/probability</A>'; 
              "</FONT><FONT size=2>+<BR></FONT><FONT color=#2a00ff size=2>"for 
              $x in $this/n1:scores/score "</FONT><FONT size=2>+<BR></FONT><FONT 
              color=#2a00ff size=2>"let $s := $x/name "</FONT><FONT 
              size=2>+<BR></FONT><FONT color=#2a00ff size=2>"where $s = 'Score1' 
              "</FONT><FONT size=2>+<BR></FONT><FONT color=#2a00ff 
              size=2>"return $x"</FONT><FONT size=2>; 
              <P align=left></P>
              <P align=left>XmlCursor scoreCursor = </P></FONT><FONT 
              color=#0000c0 size=2>scoreDoc</FONT><FONT 
              size=2>.newCursor();<BR>scoreCursor.toNextToken();<BR>XmlCursor 
              resultCursor = 
              scoreCursor.execQuery(newQuery);<BR>System.</FONT><I><FONT 
              color=#0000c0 size=2>out</FONT></I><FONT 
              size=2>.println(</FONT><FONT color=#2a00ff size=2>"The query 
              results : "</FONT><FONT size=2>);<BR>System.</FONT><I><FONT 
              color=#0000c0 size=2>out</FONT></I><FONT 
              size=2>.println(resultCursor.getObject().toString() + </FONT><FONT 
              color=#2a00ff size=2>"\n"</FONT><FONT size=2>);</FONT></DIV>
              <DIV>---------------------------------------------------------------------------------------------------------------------------------------------- \
  RETURN&nbsp; PROGRAM-----</DIV>
              <DIV>&nbsp;<FONT size=2> 
              <P align=left>The query results : </P>
              <P align=left></P>
              <P>&lt;xml-fragment/&gt;</P>
              <P>&nbsp;</P>
              <P>&nbsp;</P>
              <P>Thanks for any help.</P>
              <P>Gustavo</P>
              <P>&nbsp;</P></FONT></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR>Notice: 
            This email message, together with any attachments, may contain 
            information of BEA Systems, Inc., its subsidiaries and affiliated 
            entities, that may be confidential, proprietary, copyrighted and/or 
            legally privileged, and is intended solely for the use of the 
            individual or entity named in this message. If you are not the 
            intended recipient, and have received this message in error, please 
            immediately return this by email and then delete 
          it.</BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV>
        <DIV>
        <DIV></DIV>
        <DIV><BR>Notice: This email message, together with any attachments, may 
        contain information of BEA Systems, Inc., its subsidiaries and 
        affiliated entities, that may be confidential, proprietary, copyrighted 
        and/or legally privileged, and is intended solely for the use of the 
        individual or entity named in this message. If you are not the intended 
        recipient, and have received this message in error, please immediately 
        return this by email and then delete 
      it.</DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV>
    <DIV>
    <DIV></DIV>
    <DIV class=Wj3C7c><BR>Notice: This email message, together with any 
    attachments, may contain information of BEA Systems, Inc., its subsidiaries 
    and affiliated entities, that may be confidential, proprietary, copyrighted 
    and/or legally privileged, and is intended solely for the use of the 
    individual or entity named in this message. If you are not the intended 
    recipient, and have received this message in error, please immediately 
    return this by email and then delete 
  it.</DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>
<br>
Notice:  This email message, together with any attachments, may contain information  \
of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated entities,  that may be \
confidential,  proprietary,  copyrighted  and/or legally privileged, and is intended \
solely for the use of the individual or entity named in this message. If you are not \
the intended recipient, and have received this message in error, please immediately \
return this by email and then delete it.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic