Return multiple XML nodes and Custom parent tag using FLWOR XQuery
问题 I need to get the following output using a FLWOR expression. <oldPlanes> <make>Cessna</make> <model>Centurian</model> <make>Piper</make> <model>Tripacer</model> </oldPlanes> using CREATE TABLE XMLO1 (xDoc XML NOT NULL) INSERT INTO XMLO1 VALUES (' <planes> <plane> <year>1977</year> <make>Cessna</make> <model>Skyhawk</model> <color>Light blue and white</color> </plane> <plane> <year>1975</year> <make>Piper</make> <model>Apache</model> <color>White</color> </plane> <plane> <year>1960</year>