XML Database (MOSC)

MOSC Banner

SQL to generate xml output errors

edited Jan 14, 2010 3:38AM in XML Database (MOSC) 2 commentsAnswered
Hi! The following nested xsql produces the xml output based on data from two tables. The first table has one row and the second table has 11 rows of data. For some reason, the xml parser generates and produces the tags correctly for limited number of rows only from the second table. i.e. if I exclude one or two rows of data from the second table, it works fine. Appreciate any help on this issue. Thanks.

SELECT xmlelement("EMPCheck"
,xmlagg(xmlelement("employee_rec"
,xmlforest( TO_CHAR ( emp.effective_date, 'YYYY' ) C_YR
, emp.emp_number C_EMP_NUM
, emp.emp_name C_EMP_NAME

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center