XQuery language help - CAST a element

Discussion in 'XML' started by paul.rusu@gmail.com, Dec 14, 2005.

  1. Guest

    Hi,


    My issue is:
    for $x in ($doc/a|b|c)
    return
    typeswitch ($y) ... case element(a): ................. $y/CertainChild
    - is not recognized. Now how is XQuery supposed to know what type is
    $y.. How do you do
    a cast?


    Paul
     
    , Dec 14, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Woolly Mittens
    Replies:
    8
    Views:
    641
    Woolly Mittens
    Sep 22, 2003
  2. Jeff Kish

    xquery help

    Jeff Kish, Oct 14, 2004, in forum: XML
    Replies:
    7
    Views:
    664
    Jeff Kish
    Oct 18, 2004
  3. Replies:
    0
    Views:
    451
  4. MSG

    to cast or not to cast malloc ?

    MSG, Feb 6, 2004, in forum: C Programming
    Replies:
    38
    Views:
    1,435
    Dan Pop
    Feb 10, 2004
  5. EvilRix
    Replies:
    8
    Views:
    910
    Martin Dickopp
    Feb 14, 2004
  6. HANM
    Replies:
    2
    Views:
    1,527
    Joseph Kesselman
    Jan 29, 2008
  7. Szabolcs Borsanyi
    Replies:
    6
    Views:
    884
    Ben Bacarisse
    May 23, 2008
  8. Pavel
    Replies:
    7
    Views:
    799
    Pavel
    Sep 19, 2010
Loading...