Dive into Oracle ADF

Send me a mail
 Dive into Oracle ADF   Click to see the XML version of this web page.   (Updated: 2/3/2008; 9:19:24 PM.)
Tips and tricks from Steve Muench on Oracle ADF Framework and JDeveloper IDE

Search blog with Google:
 

Search BC4J JavaDoc:
 

March 2006
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Feb   Apr

Get Firefox!

Tuesday, March 07, 2006

A week or so ago, I blogged about wanting to implement a SQL Developer (f.k.a. Raptor) extension to render XMLType columns as XML. Kris Rice beat me to it, and even went the extra distance to provide a one-click install through the SQL Developer "Check for Updates..." feature. Nice work!

Try installing the extension and trying a query like this when logged on as SCOTT...

SELECT XMLElement("Departments",
         XMLAgg(
           XMLElement(NAME "Department",
             XMLAttributes(deptno as "id"),
             XMLForest (initCap(dname)  AS "DepartmentName"),
             (SELECT
                XMLAgg(
                  XMLElement("Employee",
                    XMLAttributes(empno As "id"),
                    XMLForest(initCap(ename) as "Name",
                              sal            as "Salary",
                              initCap(job)   as "Job")
                  )
                )
              FROM emp e where e.deptno = d.deptno
             )
            )
          )
        ) as result
 FROM dept d
WHERE deptno = 10

1:08:45 AM    



© Copyright 2008 Steve Muench.