XPath and XQuery

Hi all,
What's the difference between the XPath and XQuery, can XPath has better performance than XQuery?
Regards,
Jane

shree wrote:
1.Can you differentiate these XSLT, XPath and XQuery.XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents. XSLT stands for XSL Transformations.
XQuery is to XML what SQL is to database tables. XQuery was designed to query XML data.
XPath is used to navigate through elements and attributes in an XML document. XPath is a major element in W3C's XSLT standard - and XQuery and XPointer are both built on XPath expressions.
http://www.w3schools.com/xsl/default.asp
http://www.w3schools.com/xquery/default.asp
http://www.w3schools.com/xpath/default.asp
Cheers,
Vlad

Similar Messages

  • XSLT, XPath and XQuery

    Hi,
    1.Can you differentiate these XSLT, XPath and XQuery.
    2.How Do I Force a Rollback in a BPEL Flow.
    Thanks in advance

    shree wrote:
    1.Can you differentiate these XSLT, XPath and XQuery.XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents. XSLT stands for XSL Transformations.
    XQuery is to XML what SQL is to database tables. XQuery was designed to query XML data.
    XPath is used to navigate through elements and attributes in an XML document. XPath is a major element in W3C's XSLT standard - and XQuery and XPointer are both built on XPath expressions.
    http://www.w3schools.com/xsl/default.asp
    http://www.w3schools.com/xquery/default.asp
    http://www.w3schools.com/xpath/default.asp
    Cheers,
    Vlad

  • How to start learning XPATH and XQUERY

    Hello
    Please I am needing some guide to know if there is a guide that I could follow so that I can handle from the very beginning till the end an XML Document.
    Besides I need to know if with JDeveloper I can edit and update an XML document (data type XMLTYPE column) inside of a table.
    I'll appreciate your help.
    Paola.
    @}--->----->>----------

    You could have a start here http://www.w3schools.com/. also the old XMLDB manuals 9.2, 10.1 had primers on handling xml (appendix section), another source for you could be the w3c organization: http://www.w3.org/.
    AFAIK, JDeveloper doesn't have that functionality yet. AFAIK the latest toad version is able to do this...
    Message was edited by:
    Marco Gralike

  • Xpath and context objects

    hi expects,
        what is difference between xpath and context objects?

    Rohit,
    Check this thread for bhavesh reply for this:
    Context object
    ---Satish

  • XSLT and XQuery recommendation for BPEL and OSB

    Hi,
    1. Why is XQuery recommeded for OSB and XSLT for BPEL. Are there any specific performance optimization reason behind this.
    2. Apart from OSB and BPEL, both XSLT and XQuery has xml transformation options and creating HTML. What is the difference between these two.
    Thanks in advance!

    you can create the graphical view of Xquery in Eclipse but not for XSLT
    Xquery is much faster than XSLT in OSB.
    Through XSLT however you can achieve more complex transformation.
    OSB has its historic origins in BEA Aqalogic stable and so Xquery was widely used used even though XSLT is supported. It is a matter of choice(your standards in your organization,your developer skillsets,your re-usable libraries etc )
    In Jdeveloper you can develop xslt in graphical mode though and attain complex transformation

  • AquaLogic Service Bus and XQuery Mapper

    Hi all,
    I'm new about using AquaLogic Service Bus and XQuery Mapper. I'm using alsb250_wls920.
    To understand better the details I've developed two very simple EJBs stateless related to a generic CarRental scenario.
    The idea is the following:
    - EJB1 exposes a method for retrieving available cars from company A
    - EJB2 exposes a method for retrieving available cars from company B
    The method signature is the same:
    public CarVO[] getAvailableCars(Category category, Double price)
    the only difference is about the CarVO definition where one exposes more attributes than the second one (and also the package is different).
    The goal is designing a new proxy service called getAvailableCars that calls the two above services and returns a set including all available cars from both companies.
    The returned CarVO is the sum of all attributes from two above CarVOs plus a string company attribute.
    So in AquaLogic I've defined:
    - a JAR resource for importing my CarRental.jar
    - two BusinessService resources related to the two above getAvailableCars services (from company A & B), called getAVISAvailableCars & getHertzAvailableCars;
    - I've exported the two WSDLs from the two above BusinessService resources directly from AquaLogic console;
    - I've written manually the WSDL 'getAvailableCars' that I use in the next proxy service definition
    - a getAvailableCars_1 proxy service resource
    Before completing the proxy service definition, I've decided to use XQuery Mapper for defining my trasformations.
    But I got some errors when I try to import the WSDLs.
    For importing simply I've created a wsdl folder inside my project and copied into it the 3 WSDLs definitions.
    Because there are errors in 2 of these WSDLs (getHertzAvailableCars.wsdl, getAvisAvailableCars.wsdl) when I create a XQuery Transformation, I'm not able to select any source schema.
    But getHertzAvailableCars.wsdl, getAvisAvailableCars.wsdl have been generated directly from AquaLogic console and I don't understand why XQuery Mapper complains about them.
    If needed I can post also the CarRental.zip eclipse prj (that contains the above two EJBs) and CarRentalAqualogicPrj.jar AquaLogic prj (passphrase is aqualogic).
    I thank you in advance for any suggestion.
    Regards
    Patrizio

    Could you send me the WSDLS?
    My email address [email protected]

  • XPATH and the C parser

    Can I use an 'XPATH' expression to find a node using the C parser?
    eg find '/A/B/C'
    The Oracle Java parser supports this.
    Thanks for your help.
    Doug

    Yes, we have Xpath and XSLT support in the parser.

  • XPath and ERMS

    Hi gurus,
    We're creating our own Services for ERMS (CRM 6.0) and I was after a spot of advice.
    Can anyone give me some guidance as to where to find all the XPATH entries available? 
    In the ERMS Repository there are attributes defined with XPATH entries against them, but I'm sure there must be other XPATH entries available, and if we wanted to define our own attributes I was wondering where I could look to find this XPATH information?
    Thanks in advance,
    Andrew G.

    Hi !
    WSDL, XSD, Xpath and BPEL are all open standard.
    ABAP for instance, is not an open standard.
    look at the below URL's for more details
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cfab6fdd-0501-0010-bc82-f5c2414080ed
    BPEL in a Nutshell
    WS-BPEL 2.0 from OASIS - How it has progressed since BPEL 1.1
    BPEL Glossary for Developers
    Regards
    Abhishek

  • XPath and oracle parser

    Hi,
    I am using Oracle parser to parse my XML file, as i found that it is faster then IBM and sun parser, But i think it does not support XPath, so how can i use XPath and oracle parser, I can also use Sun parser , but dont know if it has XPath support,
    So please help me out

    I suppose it supports DOM or a saxHandler that can provides you a DOM
    tree. For Xpath, may I suggest you my solution : http://www.japisoft.com/jxpath
    Regards,
    A.brillant

  • Xpath and BPEL

    What is xpath and BPEL?

    Hi !
    WSDL, XSD, Xpath and BPEL are all open standard.
    ABAP for instance, is not an open standard.
    look at the below URL's for more details
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cfab6fdd-0501-0010-bc82-f5c2414080ed
    BPEL in a Nutshell
    WS-BPEL 2.0 from OASIS - How it has progressed since BPEL 1.1
    BPEL Glossary for Developers
    Regards
    Abhishek

  • Does the XMLP full or partially support the Xpath and XSLFO syntax?

    Does the XMLP full support the Xpath and FO syntax? or partially? Thanks

    Hi Robin
    OK, so hopefully you are not leading me into a trap here :o)
    There are two parts to this question:
    1. XPATH - we support as much of the XPATH spec as the Oracle XDK supports ie we rely on the XDK for our transformation engine so as long as they support what you are trying to do then we do. There are a few gaps and we have plugged those in the XMLP layer. So the short answer is yes.
    2. XSLFO - we allow you to use XSLFO in your template. The XMLP engine supports much of the standard but there are a few gaps. the next set of docs will layout exactly what we do support in the spec.
    Regards, Tim

  • How can i get oracle 10g and Xquery

    sir,
    How can i download Oracle 10g and Xquery.I need it urgently for my project work...
    thanks..
    somesh

    The following link provides a good starting point for your endeavour:
    http://www.oracle.com/technology/sample_code/products/forms/index.html

  • XPath and dom4j xs:date() conversion exception

    Hey all Java folks
    I'm having a hard time deadling with XPath and date datatype using dom4J and seeking for guidance :)
    Let say I have the following XML header:
    <site:Blog xmlns:site="http://xml.netbeans.org/schema/blog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://xml.netbeans.org/schema/blog blog.xsd">and this expression :
    site:Blog//site:Entry[@date=xs:date('2007-09-07')]In XMLSpy I do get correct results but in my java code all I get is this exception:
    org.dom4j.XPathException: Exception occurred evaluting XPath: /site:Blog//site:Entry[@date=xs:date("2007-09-07")] Exception: No Such Function xs:date
    at org.dom4j.xpath.DefaultXPath.handleJaxenException(DefaultXPath.java:374)
    at org.dom4j.xpath.DefaultXPath.selectNodes(DefaultXPath.java:134)
    at org.dom4j.tree.AbstractNode.selectNodes(AbstractNode.java:166)
    at com.mor.blogengine.util.xpath.SearchEngine.getEntriesforDate(SearchEngine.java:142)
    at com.mor.blogengine.util.xpath.SearchEngineTest.testGetEntriesforDate(SearchEngineTest.java:120)Does anyone has a clue of why it works perfectly outside of JAVA but not within my code ?
    Any enlightenment is welcome! :)
    Laurent

    String xPathExpr= "/documentFiles/documentFile[xs:date(documentDateXML) > xs:date(\"2005-05-21\")]";should of course be
    String xPathExpr= "/documentFiles/documentFile[xs:date(documentDate) > xs:date(\"2005-05-21\")]";

  • Xpath and Get XML Document Data

    Good Morning,
    I have just recently gotten involved in a project that requires communicating with some web services (axis2). We have existing scripts that handle this already, but they were built when we weren't on axis2 so now the XML output from the web service call is slightly different and i am no longer able to use the same xpath statement in the Get XML Document Data step.
    I am receiving either null values or a prefix namespace error. I am new to xpath and have been reading as best i can from http://www.w3schools.com/xpath/ to try and understand how to write my statements to pull out the data i want correctly.
    I have read that sometimes the editor has problems if the XML contains namespace declarations, etc.
    Below is an example XML output where I'd like to be able to read the value in the ax211:success. My xpath gets prefix namespace errors as it doesn't recognize ax211.
    Xpath: /descendant::ns:validateCertificationResponse/child::ns:return/child::ax211:success
    Perhaps my xpath statement is just incorrect and wouldn't retrieve what i expect it to....
    Any advice is appreciated.
    Thanks,
    Kevin

    Hi,
    well, it appears that text() is automatically appended to the XPath query for some reason in UCCX, this is why you actually see the text node within the ax211:success element. This //*[local-name()="success"] select the whole node, not its first child (which is actually the first element, which also happens to be a text).
    Anyway,
    // - anywhere
    * - any node
    And within this "everything" you actually search with the condition within the angular brackets.
    G.

  • Dynamic XPath in XQuery or XQSE

    Is there a way to execute dynamic xpath expression in XQuery or XQSE, to do something like:
    declare xqse function tns:checkName($addrBook as element(),$name as xs:String ) as xs:boolean {
    declare $var as xs:String := "Address/Person[@name='" + $name +"']";
    ( : test if expression in $var returns not empty result when applied to $addrBook : )
    return value( $resultOfEvaluation) ;
    Thank You
    Edited by [email protected] at 03/13/2008 7:19 PM
    Edited by [email protected] at 03/13/2008 7:19 PM
    Edited by [email protected] at 03/13/2008 7:20 PM

    You haven't described why you want to do this - I suspect it is might be unnecessary/over-kill. Anyway
    1) in the interest of efficiency, DSP compiles and optimizes xquery, and therefore the xquery cannot be modified at run-time.
    2) the Filter api will let you apply filters, which effectively generate a new query, compile it and execute it. But you can only apply selections to elements that are exposed in the result
    The thing is that final client should not use mediator api, and i do not want to have an intermediate client that would use mediator. I don't understand what you mean here - how is the client supposed to to submit a response to DSP and get a result if it does not call DSP directly or indirectly?
    If the client already has the result, and you want to find something within that result, by far the most efficient way (aside from only returning that result in the xquery submitted to DSP), is to navigate through the DataObject with the get() methods. Firing up an xquery engine is a very expensive way to go through a DataObject - to do this you will need to serialize the DataObject into xml, create an XmlObject from that string, and then evaluate the xquery.

Maybe you are looking for

  • I can't insert my data into the table - help please

    Hello everyone, I have a trouble about JSP. I'm using Java2 SDK,JSP 1.2,Mysql and TOMCAT. I want to do this. A user has to enter the nicno,into the html form(EnterNicInter.jsp),to verify if it is already exist or not. If it is exist in the db, an err

  • Looks like a Fresh ITunes install!

    Win Vista computer w/latest version of itunes installed.  When I double clicked the desktop icon yesterday it reinstalled and now doesn't know where my apps and movies are.  It found my music but lost my playlists. It looks like a "fresh" install.  S

  • Copy Standard T.code into Z T.code

    Hi, I want to Copy Standard T.code into Z T.code....with all includes and Function Group...... Plz tell me step-by-step.... Prince

  • Don't know the source tablespace to use in REMAP_TABLESPACE

    11.2.0.2/Solaris 10 We have an expdp dump of a development related schema. We had dropped the source DB. Now, we want to create a new schema in a new DB using this dump. We don't know the tablespaces used by the source schema as that DB doesn't exist

  • Devanagri font rendering error....

    Hi, I transferred some songs with Devanagari fonts in Mp3 tags to my iPhone (using iTunes on Mac OS X 10.5.4 )... on Mac OS X 10.5.4 , Devanagari fonts are rendered well; but perhaps rendering for Devanagari fonts is not correctly implemented in iPho