IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

XQuery doubt: why it doesn't work "text()" in this

  • 1.  XQuery doubt: why it doesn't work "text()" in this

    Posted 03/12/07 12:32 PM

    Hi,
    I have create this XQuery and I need to return only the information inside the tag. This is my XQuery:

    declare namespace rp210Elements=“urn:SMPTE:Dictionary”
    declare namespace DMS1=“urn:SMPTE:Groups:DMS1”

    input()/DVD/Media/DMS1:ClipFramework[last()]/@rp210Elements:GenerationUID

    I get the result:
    <xq:Result xmlns:xq=“http://namespaces.softwareag.com/tamino/XQuery/result”>
    <xq:attribute
    rp210Elements:GenerationUID=“21.60.00.00.00.00.00.00.00.00.00.00.00.00.00.00”
    xmlns:rp210Elements=“urn:SMPTE:Dictionary”/>
    </xq:Result>

    But I only want to get the contain of the tag (“21.60.00.00.00.00.00.00.00.00.00.00.00.00.00.00”). I have try with the command text() but it doesn’t work. I think is something related with the kind of tag where is that param (“@rp210Elements:GenerationUID”). Is there any possibility to get only the contain of the tag?
    I will be very grateful if someone could help me.

    Regards,
    Diego


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: XQuery doubt: why it doesn't work "text()" in this

    Posted 03/12/07 05:46 PM

    I have got to solve this with the command data() and it works.
    Thanks,
    Diego


    #Tamino
    #webMethods
    #API-Management