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.

 View Only
  • 1.  XQuery Syntax Error

    Posted Wed October 26, 2005 08:33 PM

    Hello,
    I am trying to execute the following Xquery statement:

    String xq2=“for $b in input()/Mitarbeiter where $b/Adresse=”+“Frankfurt”+“return $b”;

    XQuery parsing error, Syntax Error at line 1, column 64: found Variable when expecting any of: “or”, “and”, “div”, “mod”, " *", “return”, “intersect”, “union”, “except”, “/”, “//”, “=”, “!=”, “<=”, “>=”, “eq”, “ne”, “gt”, “ge”, “lt”, “le”, "< ", “>”, “-”, “+”, “=>”, “|”, “(”, “[”, “sort”, “stable”)

    What is wrong with my statement? Has somebody experience with this case?

    Thanks in advance!
    chacha


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: XQuery Syntax Error

    Posted Thu October 27, 2005 04:26 AM

    White spaces between condition and results. Notice the ". You can also use '.

    
    String xq2 = "for $b in input()/Mitarbeiter where $b/Adresse=\"Frankfurt\" return $b"

    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: XQuery Syntax Error

    Posted Thu October 27, 2005 05:02 PM

    Hi Pfil,
    :smiley: It works!
    :frowning: But I don’t get along with the query expressions in other cases. Such as…

    String xq5=“for $a in input()/Mitarbeiter where $a/Vorname="Lucy" do {insert Frankfurt following $a/Adresse}”;

    Would you please recommend a tutorial about this topic?

    Regards,
    chacha


    #webMethods
    #API-Management
    #Tamino