Supress of rownum tag in dbms_xmlquery
Hi,
I have created the following scrip which uses dbms_xmlquery utility.
queryctx := dbms_xmlquery.newcontext
('select field1,
cursor(field2,
field3
from temp_table2 t2
where t2.field1 = t1.field1) as Header
from temp_table1 t1
where field1 = :p_field);
dbms_xmlquery.setbindvalue(queryctx,'p_field','12435');
result:=dbms_xmlquery.getxml(queryctx);
Which creates this output file:
<ROWSET>
<ROW num="1">
<Field1>226600</Field1>
<Header>
<Header_ROW num="1">
<Field2>87658</Field2>
<Field3>23456</Field3>
</Header_ROW>
</Header>
</ROW>
</ROWSET>
I need to know how to suppress printing of row tag so that the output file
look like this:
<ROWSET>
<Field1>226600</Field1>
<Header>
<Field2>87658</Field2>
<Field3>23456</Field3>
</Header>
</ROWSET
I see. But I have a cursor in my query and that's where it doesn't work. This is my query:
queryctx := dbms_xmlquery.newcontext
('select field1,
cursor(field2,
field3
from temp_table2 t2
where t2.field1 = t1.field1) as Header
from temp_table1 t1
where field1 = :p_field);
dbms_xmlquery.setbindvalue(queryctx,'p_field','12435');
result:=dbms_xmlquery.getxml(queryctx);
I get this result:
<ROWSET>
<Field1>226600</Field1>
<Header>
<Header_ROW num="1">
<Field2>87658</Field2>
<Field3>23456</Field3>
</Header_ROW>
</Header>
</ROWSET>
And I need to get rid of <Header_ROW num="1"> and </Header_ROW> tags. I don't need those tags for any records at all.
Similar Messages
-
Parse XML file, read a tag with whitespaces value.
Hi all,
I've got a problem with reading a spaced value record from xml file using sys.xmltype.
My xml file contains the following:
<?xml version = '1.0'?>;
<ROWSET>
<ROW num="1">
<FIRSTNAME>Nik</FIRSTNAME>
<LASTNAME> </LASTNAME>
<AGE>30</AGE>
</ROW>
</ROWSET>
As you see last name contains four spaces!
Now when I'm trying to read value from LASTNAME record I'm getting a NULL value, but I want it to return me those 4 spaces as they are.
Here is a short code description of what I'm doing:
declare
xml sys.xmltype;
str1 varchar2(100);
str2 varchar2(100);
begin
xml := sys.xmltype.createxml(fileContentClob); -- I copy the file content into the fileContentClob variable.
If xml.existsnode('//ROW['1']/LASTNAME') > 0 Then -- This condition evaluates as true
str1 := xml.extract('//ROW['1']/LASTNAME/text()'); -- str1 gets NULL value :(, I want spaces as they are in the file.
str2 := xml.extract('//ROW[' || 1 || ']/LASTNAME').getstringval; -- str2 gets <LASTNAME/> null tag :(.
End If;
end;
Seems like when it createxml from the fileContentClob it ignores the spaces and find LASTNAME as a null field.
Do you have any suggestions on how can I fix that, so I can read whitespaces as they are in the file?
I generate the file also using a xml toolpackage from oracle:
declare
strSqlStmt Varchar2(300);
varCtxHdl dbms_xmlquery.ctxhandle;
varClob Clob;
begin
strSqlStmt := 'SELECT FIRSTNAME,LASTNAME,AGE FROM USERS WHERE ROWNUM =1';
varCtxHdl := dbms_xmlquery.newcontext(strSqlStmt);
varClob := dbms_xmlquery.getxml(varCtxHdl);
dbms_xmlquery.closecontext(varCtxHdl);
End;Even if the STORE AS CLOB clause is used to store the data and preserve whitespace for the XML, the actual extraction of data seems to be removing whitespace...
SQL> ed
Wrote file afiedt.buf
1* create table t (xml xmltype) xmltype xml store as clob
SQL> /
Table created.
SQL> ed
Wrote file afiedt.buf
1 insert into t (xml)
2 values (q'[<?xml version = '1.0'?>
3 <ROWSET>
4 <ROW num="1">
5 <FIRSTNAME>Nik</FIRSTNAME>
6 <LASTNAME> </LASTNAME>
7 <AGE>30</AGE>
8 </ROW>
9* </ROWSET>]')
SQL> /
1 row created.
SQL> select * from t;
XML
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<FIRSTNAME>Nik</FIRSTNAME>
<LASTNAME> </LASTNAME>
<AGE>30</AGE>
</ROW>
</ROWSET>
SQL> set null NULL
SQL> select x.rnum, x.firstname, x.lastname, x.age
2 from t
3 ,xmltable('/ROWSET/ROW'
4 PASSING t.xml
5 COLUMNS rnum NUMBER PATH '/ROW/@num'
6 ,firstname VARCHAR2(10) PATH '/ROW/FIRSTNAME'
7 ,lastname VARCHAR2(10) PATH '/ROW/LASTNAME'
8 ,age NUMBER PATH '/ROW/AGE'
9 ) x
10 /
RNUM FIRSTNAME LASTNAME AGE
1 Nik NULL 30
SQL> -
Hi,
I have to generate an xml file out of a table in oracle.
Thats my test function
DECLARE
queryCtx dbms_xmlquery.ctxType;
result CLOB;
BEGIN
-- set up the query context
queryCtx := dbms_xmlquery.newContext('Select
empno "EMP_NO"
, ename "NAME"
, deptno "DEPT_NO" from test_emp'
-- set row tag name and row set tag name
dbms_xmlquery.setRowTag(
queryCtx
, 'EMP'
dbms_xmlquery.setRowSetTag(
queryCtx
, 'EMPSET'
-- run query and print out result
result := dbms_xmlquery.getXml(queryCtx);
printClobOut(result);
-- free resources
dbms_xmlquery.closeContext(queryCtx);
END;
the result is an xml like that:
<?xml version = '1.0'?>
<EMPSET>
<EMP num="1">
<EMP_NO>7369</EMP_NO>
<NAME>Smith</NAME>
<DEPT_NO>20</DEPT_NO>
</EMP>
</EMPSET>
but now i have to set own tags around a row in the table... for example:
<?xml version = '1.0'?>
<EMPSET>
<EMP num="1">
<ownTag>
<EMP_NO>7369</EMP_NO>
<NAME>Smith</NAME>
<DEPT_NO>20</DEPT_NO>
</ownTag>
</EMP>
</EMPSET>
I searched now around two hours and nothing found..
can anybody help metry xdb-forum here at OTN...
-
"Missing IN or OUT parameter at index:: 1" - dbms_xmlquery vs dbms_xmlgen
It looks like DBMS_XMLQuery doesn't like bind variables among selected columns.
While DBMS_XMLGEN handles them without any problems.
A simple example:
-- xml query - fails
declare
ctx dbms_xmlquery.ctxHandle;
begin
ctx := dbms_xmlquery.newContext(
'select a.*, :r_max the_end from scott.emp a where rownum <= :r_max');
dbms_xmlquery.setBindValue(ctx, 'r_max', 10);
dbms_output.put_line(dbms_xmlquery.getxml(ctx));
dbms_xmlquery.closeContext(ctx);
end;
The error is <ERROR>oracle.xml.sql.OracleXMLSQLException: Missing IN or OUT parameter at index:: 1</ERROR>
-- xml gen - works
declare
ctx dbms_xmlgen.ctxHandle;
begin
ctx := dbms_xmlgen.newContext(
'select a.*, :r_max the_end from scott.emp a where rownum <= :r_max');
dbms_xmlgen.setBindValue(ctx, 'r_max', 10);
dbms_output.put_line(dbms_xmlgen.getxml(ctx));
dbms_xmlgen.closeContext(ctx);
end;
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - ProdLooks like you need two binds to accomplish your task:
SQL> declare
2 ctx dbms_xmlquery.ctxhandle;
3 begin
4 ctx := dbms_xmlquery.newcontext('select emp.*, :r_max1 the_end from emp where rownum <= :r_max2');
5 dbms_xmlquery.setbindvalue (ctx, 'r_max1', 4);
6 dbms_xmlquery.setbindvalue (ctx, 'r_max2', 4);
7 dbms_output.put_line (dbms_xmlquery.getxml (ctx));
8 dbms_xmlquery.clearbindvalues (ctx);
9 dbms_xmlquery.closecontext (ctx);
10 end;
11 /
PL/SQL procedure successfully completed.
SQL> set serverout on
SQL> /
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<EMPNO>7369</EMPNO>
<ENAME>SMITH</ENAME>
<JOB>CLERK</JOB>
<MGR>7902</MGR>
<HIREDATE>12/17/1980 0:0:0</HIREDATE>
<SAL>800</SAL>
<DEPTNO>20</DEPTNO>
<THE_END>4</THE_END>
</ROW>
<ROW num="2">
<EMPNO>7499</EMPNO>
<ENAME>ALLEN</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>2/20/1981 0:0:0</HIREDATE>
<SAL>1600</SAL>
<COMM>300</COMM>
<DEPTNO>30</DEPTNO>
<THE_END>4</THE_END>
</ROW>
<ROW num="3">
<EMPNO>7521</EMPNO>
<ENAME>WARD</ENAME>
<JOB>SALESMAN</JOB>
<MGR>7698</MGR>
<HIREDATE>2/22/1981 0:0:0</HIREDATE>
<SAL>1250</SAL>
<COMM>500</COMM>
<DEPTNO>30</DEPTNO>
<THE_END>4</THE_END>
</ROW>
<ROW num="4">
<EMPNO>7566</EMPNO>
<ENAME>JONES</ENAME>
<JOB>MANAGER</JOB>
<MGR>7839</MGR>
<HIREDATE>4/2/1981
0:0:0</HIREDATE>
<SAL>2975</SAL>
<DEPTNO>20</DEPTNO>
<THE_END>4</THE_END>
</ROW>
</ROWSET>
PL/SQL procedure successfully completed. -
Custom Application Privs for XML file generation in 11i(11.5.7)
We have created Custom Application Module in the Oracle Apps R11i.
I am running the below query in my custom application module user using SQL*Plus, it gives the error:
SQL Statment:
DECLARE
queryCtx DBMS_XMLQuery.ctxType;
result CLOB;
BEGIN
-- set the query context.
queryCtx := DBMS_XMLQuery.newContext('select * from per_all_people_f where
rownum <=10');
DBMS_XMLQuery.setRowTag(queryCtx,'EMP'); -- sets the row tag name
DBMS_XMLQuery.setRowSetTag(queryCtx,'EMPSET'); -- sets rowset tag name
result := DBMS_XMLQuery.getXML(queryCtx); -- get the result
DBMS_XMLQuery.closeContext(queryCtx); -- close the query handle;
END;
Error:
Error on line 0
DECLARE
queryCtx DBMS_XMLQuery.ctxType;
result CLOB;
BEGIN
-- set t
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.NullPointerException
ORA-06512: at "SYS.DBMS_XMLQUERY", line 206
ORA-06512: at "SYS.DBMS_XMLQUERY", line 214
ORA-06512: at "SYS.DBMS_XMLQUERY", line 204
ORA-06512: at line 11
The same query is running fine with apps user. What are the objects privileges required for the custom module user?.I have found resolution for this.
1. Created the Public Synonym for the following Apps user Java Class objects:
/109a284b_OracleXMLStaticQuery
/12249373_OracleXMLStaticQuery
/c33162ba_OracleXMLStaticQuery
2. Execute privilege for Apps.DBMS_XMLQUERY to custom application user.
Thanks.
-Venkat -
Nested Queries in SQL Utility/Prod versions
Can you tell which XML product versions are in production....
we are implementing a custom XML solution for a B2B client, and are using
the 8i and the tools from oracle with quite a bit of custom code...
I have a couple of questions.
1. as suggested , i was able to get the oraclexmlsql.jar from the servlet zip and loading
it solved the problem of the jdbc string being printed int he cursor
syntax . it works from the xmlgen utility withing pl/sql. but when using OracleXML in a java prog the
results still printout the jdbc string..
any ideas...
2. Is there anyway to supress the rownum attribute tag in the subquery (cursor) results...that is the setRowIdAttrName .... w/o using xslt
3. We are implementing a solution using these tools.... we wanted to know which were the production versions.
thanks.
jayant| 1. as suggested , i was able to get the oraclexmlsql.jar
| from the servlet zip and loading it solved the problem of
| the jdbc string being printed int he cursor syntax . it
| works from the xmlgen utility withing pl/sql. but when
| using OracleXML in a java prog the results still printout
| the jdbc string.. any ideas...
Could only be a CLASSPATH problem difference in your two
tests.
| 2. Is there anyway to supress the rownum attribute tag in
| the subquery (cursor) results...that is the
| setRowIdAttrName .... w/o using xslt
Not at this time. Rownum supression on the subquery should
probably follow your settings on the main query. I'll
suggest to the devs.
| 3. We are implementing a solution using these tools.... we
| wanted to know which were the production versions.
XDK Components for XML and XSLT are production.
XML SQL Utility and XSQL Servlet are still Technical
Previews and as such are not yet production.
null -
SQL Parser supporting nested queries
Hi,
I require a SQL parser that supprt nested queries. JavaCC doesnt support nested queries so that one is out. If anyone knows of any open sourse parser, please enlighten me. I have already looked enough on Google but not of much use.
thanks,
abulkd| 1. as suggested , i was able to get the oraclexmlsql.jar
| from the servlet zip and loading it solved the problem of
| the jdbc string being printed int he cursor syntax . it
| works from the xmlgen utility withing pl/sql. but when
| using OracleXML in a java prog the results still printout
| the jdbc string.. any ideas...
Could only be a CLASSPATH problem difference in your two
tests.
| 2. Is there anyway to supress the rownum attribute tag in
| the subquery (cursor) results...that is the
| setRowIdAttrName .... w/o using xslt
Not at this time. Rownum supression on the subquery should
probably follow your settings on the main query. I'll
suggest to the devs.
| 3. We are implementing a solution using these tools.... we
| wanted to know which were the production versions.
XDK Components for XML and XSLT are production.
XML SQL Utility and XSQL Servlet are still Technical
Previews and as such are not yet production.
null -
I am trying to validate a XML file before load it into Oracle database(using OracleXMLsave()), if it is not valid, don't load into the database. By using Sun's xml package, I just changed the system property,
-Dorg.xml.sax.parser=com.sun.xml.parser.ValidatingParser
I tried to use SAXParser.setValidateMode(true), it just gave me one message (not warning or error): "Element 'XXXX' used but not declared" and still parsed the XML file. I hope it can stop due to not valid. I don't know how it can be done in Oracle parser. Any suggestion are very very welcome!| 1. as suggested , i was able to get the oraclexmlsql.jar
| from the servlet zip and loading it solved the problem of
| the jdbc string being printed int he cursor syntax . it
| works from the xmlgen utility withing pl/sql. but when
| using OracleXML in a java prog the results still printout
| the jdbc string.. any ideas...
Could only be a CLASSPATH problem difference in your two
tests.
| 2. Is there anyway to supress the rownum attribute tag in
| the subquery (cursor) results...that is the
| setRowIdAttrName .... w/o using xslt
Not at this time. Rownum supression on the subquery should
probably follow your settings on the main query. I'll
suggest to the devs.
| 3. We are implementing a solution using these tools.... we
| wanted to know which were the production versions.
XDK Components for XML and XSLT are production.
XML SQL Utility and XSQL Servlet are still Technical
Previews and as such are not yet production.
null -
I get only one record returned. The following code is taken from my block
-- set up the query context...!
queryCtx := DBMS_XMLQuery.newContext(l_stmt_sel || 'pris.' || l_table || '@rel ' );
-- DBMS_XMLQuery.setRowTag(queryCtx,'???'); -- sets the row tag name
DBMS_XMLQuery.setRowSetTag(queryCtx,l_table ); -- sets rowset tag name
--DBMS_XMLQuery.setMaxRows(queryCtx,2);
-- get the result..!
result := DBMS_XMLQuery.getXML(queryCtx);
-- Now you can use the result to put it in tables/send as messages..
printClobOut(result);
DBMS_XMLQuery.closeContext(queryCtx); -- you must close the query handle.
the table has two rows in it.
Result set when setmaxrows = 1
DBMS_XMLQuery.setMaxRows(queryCtx,1);
| <?xml version = '1.0'?>
| <X_HOUSING_V>
| <ROW num="1">
| <HOU_BOOKNO>1564922</HOU_BOOKNO>
| <HOU_ENTNO>2</HOU_ENTNO>
| <HOU_ENT_DATE>11/8/2007 17:17:0</HOU_ENT_DATE>
| <HOU_ENT_TIME>1717</HOU_ENT_TIME>
| <HOU_ENT_OPER>S01072</HOU_ENT_OPER>
| <HOU_FAC>C</HOU_FAC>
| <HOU_TIER>01A</HOU_TIER>
| <HOU_BED>020</HOU_BED>
| <HOU_AUTH_OFF>S01072</HOU_AUTH_OFF>
| <HOU_BEGIN_DATE>11/8/2007 17:17:0</HOU_BEGIN_DATE>
| <HOU_BEGIN_TIME>1717</HOU_BEGIN_TIME>
| <HOU_REASON>BI</HOU_REASON>
| <HOU_TIER_COMMENT>1564922 DNGRM TX 12-18</HOU_TIER_COMMENT>
| </ROW>
| </X_HOUSING_V>
when max rows is removed i get the following error.
--DBMS_XMLQuery.setMaxRows(queryCtx,1);
BEGIN
| <?xml version = '1.0'?>
| <ERROR>oracle.xml.sql.OracleXMLSQLException:
java.lang.ArrayIndexOutOfBoundsException</ERROR>
PL/SQL procedure successfully completed.
when max rows is set to 2 i get the following error.
DBMS_XMLQuery.setMaxRows(queryCtx,2);
| <?xml version = '1.0'?>
| <ERROR>oracle.xml.sql.OracleXMLSQLException:
java.lang.ArrayIndexOutOfBoundsException</ERROR>
PL/SQL procedure successfully completed.thank you for your reply sir !
i am running the query in Keeptool 9. and am getting this output in the DBMS Output window.
and secondly even if the output window is unable to show it, at least the table should save the contents right. But the contents of table are also not well formed xml as it contains invalid characters.
all at loss :-s -
Exception Handling Error DBMS_XMLSave
I am running this script and I get the following error:
declare
ERROR at line 1:
ORA-29540: class oracle/xml/sql/save/OracleXMLStaticSave does not exist
ORA-06512: at "SYS.DBMS_XMLSAVE", line 91
ORA-06512: at "SYS.DBMS_XMLSAVE", line 92
ORA-06512: at line 15
Oracle 8.1.7.3 Windows Nt SP 6
(see script below)
thanks
declare
queryCtx DBMS_XMLQuery.ctxType;
insCtx DBMS_XMLSave.ctxType;
result CLOB;
rows number;
errnum number;
errormsg varchar2(200);
begin
-- set the query context.
queryCtx := DBMS_XMLQuery.newContext('select * from t1');
insCtx := DBMS_XMLSave.newContext('t2');
DBMS_XMLQuery.setRowTag(queryCtx,'EMP'); sets the row tag name
DBMS_XMLQuery.setRowSetTag(queryCtx,'EMPSET'); sets rowset tag name
result := DBMS_XMLQuery.getXML(queryCtx); -- get the result
DBMS_XMLSave.propagateOriginalException(insctx,true);
begin
DBMS_XMLSave.clearUpdateColumnList(insctx);
DBMS_XMLSave.setKeyColumn(insctx,'ANUMBER');
rows := DBMS_XMLSave.deleteXML(insCtx,result);
exception
when others then
DBMS_XMLSave.getExceptionContent(insCtx,errnum,errormsg);
dbms_output.put_line(' Exception caught '||to_char(errnum)||errormsg);
end;
printClobOut(result); -- print the result..!
DBMS_XMLQuery.closeContext(queryCtx); -- close the query handle;
DBMS_XMLSave.closeContext(insCtx);
end;As this is a user-to-user forum, none of us is in a position to know what plans might be in the works.
You might want to file a Feature Request with Adobe. They take these seriously.
Good luck,
Hunt -
Dont want to use group by with sum function..
Hi all
I am using sum function but i dont want to use group by since my query give me following output which i dont want I want.
0------------22---------(null) Furniture
0----------- 3700------ (null) अनपेड बिल्स देणे
15800-----14202-----(null) Petty Cash
(null)------ (null)------ 9109 Furniture
(null)------ (null)------ 1789 Petty Cash
(null)-------(null)------ 0 Checking In-Transfer
I want like
0------------22---------9109 Furniture
0----------- 3700------ 0 अनपेड बिल्स देणे
15800-----14202-----1789 Petty Cash
what should be the problem how I can handle the query my query is
select null as totalcr, null as totaldr, (sum(acct.amtsourcecr)-sum(acct.amtsourcedr)) as opening , ev.name as accountname
from fact_acct acct right OUTER join c_elementvalue ev on acct.account_id= ev.c_elementvalue_id
where acct.dateacct < '01/04/2010'
and ev.cr_account_base=2
group by ev.name
UNION
select sum(acct.amtsourcecr) as totalcr, sum(acct.amtsourcedr) as totaldr, null as opening
*,ev.name as accountname*
from fact_acct acct right OUTER join c_elementvalue ev on acct.account_id= ev.c_elementvalue_id
where acct.datetrx BETWEEN '01/04/2010' and '01/04/2010'
group by ev.name
if I remove group by it shows me error .....not a single group by function ...
please help me out ,,,
thanking youThis is one way you can do it without a group by:
SQL> with t as
2 (
3 select 0 amt1, 22 amt2, null amt3, 'Furniture' tag from dual union all
4 select 15800,14202,null, 'Petty Cash' from dual union all
5 select null, null, 9109, 'Furniture' from dual union all
6 select null, null, 1789, 'Petty Cash' from dual
7 )
8 select tag, amt1, amt2, amt3
9 from
10 (
11 select sum(amt1) over (partition by tag) amt1
12 ,sum(amt2) over (partition by tag) amt2
13 ,sum(amt3) over (partition by tag) amt3
14 ,first_value(t.tag) over (partition by t.tag order by rownum) tag
15 ,row_number() over (partition by t.tag order by rownum) rn
16 from t
17 )
18 where rn = 1
19 /
TAG AMT1 AMT2 AMT3
Furniture 0 22 9109
Petty Cash 15800 14202 1789 -
What are the other tools that come with the JDK.From where can I find information about them.Java Tutorials do not contain details about them.
Thanks VarunaGoogle
Also, each command-line command has a usage statement built in... just run each command with the -help (and/or -?) switch, and it'll tell you something about what the tool is, and how to use it... again, use google to search for more in-depth info.
For example:
C:\Users\Administrator>javadoc -?
javadoc: error - invalid flag: -?
usage: javadoc [options] [packagenames] [sourcefiles] [@files]
-overview <file> Read overview documentation from HTML file
-public Show only public classes and members
-protected Show protected/public classes and members (default)
-package Show package/protected/public classes and members
-private Show all classes and members
-help Display command line options and exit
-doclet <class> Generate output via alternate doclet
-docletpath <path> Specify where to find doclet class files
-sourcepath <pathlist> Specify where to find source files
-classpath <pathlist> Specify where to find user class files
-exclude <pkglist> Specify a list of packages to exclude
-subpackages <subpkglist> Specify subpackages to recursively load
-breakiterator Compute 1st sentence with BreakIterator
-bootclasspath <pathlist> Override location of class files loaded
by the bootstrap class loader
-source <release> Provide source compatibility with specified release
-extdirs <dirlist> Override location of installed extensions
-verbose Output messages about what Javadoc is doing
-locale <name> Locale to be used, e.g. en_US or en_US_WIN
-encoding <name> Source file encoding name
-quiet Do not display status messages
-J<flag> Pass <flag> directly to the runtime system
Provided by Standard doclet:
-d <directory> Destination directory for output files
-use Create class and package usage pages
-version Include @version paragraphs
-author Include @author paragraphs
-docfilessubdirs Recursively copy doc-file subdirectories
-splitindex Split index into one file per letter
-windowtitle <text> Browser window title for the documenation
-doctitle <html-code> Include title for the overview page
-header <html-code> Include header text for each page
-footer <html-code> Include footer text for each page
-top <html-code> Include top text for each page
-bottom <html-code> Include bottom text for each page
-link <url> Create links to javadoc output at <url>
-linkoffline <url> <url2> Link to docs at <url> using package list at <url2>
-excludedocfilessubdir <name1>:.. Exclude any doc-files subdirectories with given name.
-group <name> <p1>:<p2>.. Group specified packages together in overview page
-nocomment Supress description and tags, generate only declarations.
-nodeprecated Do not include @deprecated information
-noqualifier <name1>:<name2>:... Exclude the list of qualifiers from the output.
-nosince Do not include @since information
-notimestamp Do not include hidden time stamp
-nodeprecatedlist Do not generate deprecated list
-notree Do not generate class hierarchy
-noindex Do not generate index
-nohelp Do not generate help link
-nonavbar Do not generate navigation bar
-serialwarn Generate warning about @serial tag
-tag <name>:<locations>:<header> Specify single argument custom tags
-taglet The fully qualified name of Taglet to register
-tagletpath The path to Taglets
-charset <charset> Charset for cross-platform viewing of generated documentation.
-helpfile <file> Include file that help link links to
-linksource Generate source in HTML
-sourcetab <tab length> Specify the number of spaces each tab takes up in the source
-keywords Include HTML meta tags with package, class and member info
-stylesheetfile <path> File to change style of the generated documentation
-docencoding <name> Output encoding name
1 errorEdited by: corlettk on 21/09/2008 15:21 - Oops -
XML installation on 8.1.7
Hi, I've posted this in the XML DB forum but I think that might have been the wrong place. So here goes again, might be a silly question but I need some way of confirming this so I can pass the info on to our DBA's.
Is there a quick way I check to see if XML has been setup on my database? I've been working on Oracle version 9.2 with some SQL/XML code. As soon as I've tried to copy it to our 8.1.7 database its not recognising any of the xml tags like DBMS_XMLQuery.getXML. I know there's some differences between database versions as to which tags it supports but I'm sure this one is supported in 8.1.7 so I'm starting to think that something hasn't been set up on the database. If this is the case what is it I need to instruct the DBA's to install?
thanks,
IanYou might want to check out the following metalink notes:
Note 177411.1 How to identify the version of the XDK installed inside the database.
Note 156477.1 JVM installation on 8.1.7 -
Hi,
I use:
PROCEDURE aq3 IS
queryCtx DBMS_XMLQuery.ctxType;
result CLOB;
begin
-- set the query context.
queryCtx := DBMS_XMLQuery.newContext('select * from G4DEV.banque');
DBMS_XMLQuery.setRowTag(queryCtx,'BANQUE'); -- sets the row tag name
DBMS_XMLQuery.setRowSetTag(queryCtx,'BANQUES'); -- sets rowset tag name
DBMS_XMLQuery.setTagCase(queryCtx,1) ;
DBMS_XMLQuery.setXSLT(queryCtx,'d:\oracle\ora81\Apache\Apache\htdocs\banque.xsl');
result := DBMS_XMLQuery.getXML(queryCtx); -- get the result
webClobOut(result); -- print the result..!
DBMS_XMLQuery.closeContext(queryCtx); -- close the query handle;
end;
I have this error:
java.security.AccessControlException: the Permission (java.io.FilePermission d:\oracle\ora81\Apache\Apache\htdocs\banque.xsl read) has not been granted by dbms_java.grant_permission to SchemaProtectionDomain(BENOIT|PolicyTableProxy(BENOIT))
Help Me, Please !
Thanks.
nullHi,
I use:
PROCEDURE aq3 IS
queryCtx DBMS_XMLQuery.ctxType;
result CLOB;
begin
-- set the query context.
queryCtx := DBMS_XMLQuery.newContext('select * from G4DEV.banque');
DBMS_XMLQuery.setRowTag(queryCtx,'BANQUE'); -- sets the row tag name
DBMS_XMLQuery.setRowSetTag(queryCtx,'BANQUES'); -- sets rowset tag name
DBMS_XMLQuery.setTagCase(queryCtx,1) ;
DBMS_XMLQuery.setXSLT(queryCtx,'d:\oracle\ora81\Apache\Apache\htdocs\banque.xsl');
result := DBMS_XMLQuery.getXML(queryCtx); -- get the result
webClobOut(result); -- print the result..!
DBMS_XMLQuery.closeContext(queryCtx); -- close the query handle;
end;
I have this error:
java.security.AccessControlException: the Permission (java.io.FilePermission d:\oracle\ora81\Apache\Apache\htdocs\banque.xsl read) has not been granted by dbms_java.grant_permission to SchemaProtectionDomain(BENOIT|PolicyTableProxy(BENOIT))
Help Me, Please !
Thanks.
null -
HI Everyone,
i have two questions for you.
1) i have a traget field of type integer and its a non mandatory field, can i send empty fields for this elements. iam getting a response from target webservice saying that it is not valid value.
2) How can i supress the tags if they are empty.
Regards,
Sita Rama RajuHi ,
Just check this link
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
no. 5
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
page 14
Regards
Sachin
Message was edited by:
Sachin Dhingra
Maybe you are looking for
-
TS3048 Scrolling problems with PDF documents
Whenever I open a PDF document in my mac, I am unable to use the mouse to scroll, print or close the documents. I do not have any such problems while working with any other documents i.e. MS OFFICE etc. Why is this problem and what could be the sol
-
How to resize the text field through the expression?
It is necessary that another layer was at 150 pixels to the right of the right side of the text field.
-
Trouble downloading attachments in gmail/Firefox-IE
Since this morning, I cannot download attachments in gmail using Firefox or IE (I did not try out Chrome). Since I have this problem in multiple browsers, the issue seems to stem from my computer, but still I'd appreciate any suggestions...
-
How do i cut out a circle?
i want to remove the background and shadow from a picture of a football, how do i do it so i am just left with the ball??
-
I have a problem with my iMac's SuperDrive. I have a DVD recorder for my TV, and I recorded a movie to a DVD-R. When I insert the DVD into the iMac, the drive spins for a long time, then mounts an empty CDR onto the desktop. I have no idea what's goi