WebRowSetImpl and & in xml output

When a string column value in a table has a '&' (ampersant) sign in it, WebRowSetImpl.writeXml(OutputStream) does not escape that character in the resulting xml. A table with value Eve & Adam results in <columnValue>Eve & Adam</columnValue> instead of <columnValue>Eve & Adam</columnValue>This makes WebRowSetImpl in rowset.jar pretty much useless. I tried to file a bug report but got a 'Server Error' when I tried to log in...

The previous message was probably not clear enough, since there have not been any replies. I'll try to be more verbose
- create a database table FOO in your favorite database, with one column named BAR
- insert a few records into FOO, each containing 'strange' signs, like the ampersant, e-umlaut, o-umlaut, c-cedille and lessThan and greaterThan signs (as found around xml and html tags)
- ResultSet rs = stmt.executeQuery("SELECT * FROM FOO");
- WebRowSet wrs = new com.sun.rowset.WebRowSetImpl();
- wrs.populate(rs);
- use wrs.writeXml(OutputStream) to write to a file
- look at and try to parse the resulting XML file
My problems with the generated XML file:
1) there is no encoding specified, so the e-umlaut and similar do not get passed, since it is not valid UTF8
2) the lessThan and greaterThan signs are not escaped
Both of these cause the parser to abort.
Since this is the reference implementation I am sure a lot of ppl have looked at it, and I must have been doing something wrong. Any ideas?

Similar Messages

  • Generating and Viewing XML Output without rdf

    Howdy,
    I have been dev Oracle Forms/Reports for over 10 years. We are now migrating all of our reports to BIP.
    To date when I have been developing these reports I have been using the old rdf files to "generate to a file" and thus get a nice, quick and dirty XML output file (what I am calling a “datafile”). Using this makes it substantially easier to then dev the format template. However going forward I/we would like to completely remove the Designer 2000 tool entirely when it comes to report development.
    How can we as developers can get our hands on the XML "datafiles" that are generated by the data templates in BIP? Are these stored anywhere on the server for the viewing? Is there another tool I can pop my Data template and SQL into and generate XML ‘with’ the correct groupings, ect.?
    Thanks in advance for any assistance/guidance you can provide.
    ScottC

    Or, from the browser see Note:394631.1
    1.Using System Administrator responsibility
    Nav:Profile->System
    query Viewer: Text, set this to Browser and save
    2. Using your Receivables responsibility
    Run the the XML report that is failing, note the request_id
    when it finishes, even with errors do this,
    View->Requests
    query this request_id
    click on Diagnostic button->View XML
    save the file to your PC by doing File->Save As
    3. Upload this XML data file.

  • RoboHelp 7 and XML output

    Can RoboHelp 7 output topics as XML (.xml files) ?
    We are researching upgrading to RoboHelp 7 from our RoboHelp
    HTML 2002 versions. We skipped the X-series upgrades, but I recall
    reading that the X-series supported XML in some way. I downloaded
    the RH7 trial version and could not find anything in the Help about
    XML. Then it seems that suddenly an XML Output icon appeared in the
    Single Source Layouts pane. It was not there previously. I then
    could generate xhtml (.htm) files.
    We called sales who didn't seem to know and said we'd need a
    valid license to ask tech support.
    Can someone enlighten me about the history of the X-series
    and XML output, and what is actually possible for XML from RH7? And
    what you need to do to get the XML Output to appear in the Single
    Source Layoutspane? XML Output is not covered anywhere I found in
    help or knowledge base, but it seems so huge a deal that it makes
    me think I must be missing something.
    Thanks for your help.

    Hi Peter
    Thanks for your help. In the Single Source Layouts pane, I
    clicked create Layout, and selected XML Output, and it now appears
    in the Single Source Layouts screen. Still have some questions.
    1\ Do you know any of the history of what kind of XML support
    was offered in the X-series, and if version 7 offers less, more, or
    the same support?
    2\ Any idea why there is NOTHING mentioned in the RoboHelp
    Help if you search using XML or XML output? Even more curious is
    when I click the Help button from the XML Output Options box, I do
    find a topic called XML Output Options. I wonder why their main
    Search tool doesn't find this...
    We were hoping to migrate to XML using XMetaL, but Mgt is
    balking due to the time and costs involved in conversion and
    translation issues. Which is why we may need to upgrade RH2002 to
    RH7, so our legacy docs remain pretty much intact. But at the same
    time, we want to know what the current RH XML capabilites are, and
    are wondering what their plans are for the future, like, will they
    offer real XML out to the current major tech writing standard,
    DITA. We hope to start authoring new docs only then using XMetal so
    we don't take the conversion/translation memory hit.
    So yes, our XML questions are deliberate.

  • XML output to a file

    Hi,
    I am using XSU to querry a table and generate XML output.
    When I execute a file (say for example test.sql), is there a way I can save this XML output to a file (say 'something.xml') ??
    Can any one help ?
    Thanks.
    vikram

    Hi,
    Thanks for your reply.
    But I am sorry I didn't get you. I can't use the second option because I am not using XSQL.
    Coming to the first option, I didn't understand where to type
    java OracleXML ... > SomeFile.xml
    Can you explain pls ?
    Once again this is what I have got....
    Say, I have a file test.sql which contains the following code
    select xmlgen.getXML('select * from scott.emp1',1) from dual;
    commit;
    set serveroutput on
    Now, when I execute the file in SQL prompt I get the following output.
    <ROWSET>
    <ROW num="1">
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>1980-12-17 00:00:00.0</HIREDATE>
    <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
    </ROW>
    <ROW num="2">
    <EMPNO>7499</EMPNO>
    <ENAME>ALLEN</ENAME>
    <JOB>SALESMAN</JOB>
    <MGR>7698</MGR>
    <HIREDATE>1981-02-20 00:00:00.0</HIREDATE>
    <SAL>1600</SAL>
    <COMM>300</COMM>
    <DEPTNO>30</DEPTNO>
    </ROW>
    </ROWSET>
    I want this result to go to a file (.xml) instead of displaying the output in the SQL prompt.
    How do I do this ? Pls explain. Thanks.
    vikram
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Two ways:
    (1) Just redirect the output to a file like:
    java OracleXML ... > SomeFile.xml
    (2) Use the XSQL Command Line utility
    and build an XSQL Page that describes
    the query you want to do. Then you can
    do:
    $ xsql yourfile.xsql SomeFile.xml<HR></BLOCKQUOTE>
    null

  • Concurrent porgram warning out and showing XML data rather than PDF.

    Hi All,
    I have a XML report which should produce output in PDF.
    But when i submit for certain parameters the program is ending in Warning
    and in xml output it gives following error
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    An invalid character was found in text content. Error processing resource 'http://.............
    Luminaire colour: SW302F Gris 900 Sabl
    The actual value Luminaire colour: SW302F Gris 900 SablÂÂÂÂÂ
    Because of these junk chracters this issue is raising. But THE THING I AM NOT UNDERSTANDING IS. The same value in other report is getting printed without any warning.
    Please through any ideas.

    Hi,
    In the report where I have no issues with the junk characters the Encoding format is
    <?xml version="1.0" encoding="iso-8859-1" ?>
    In the report where I am getting this issue have following format.
    <?xml version="1.0" encoding="UTF-8" ?>
    Please let me know , what should I do now or where should I change this to get that output with out warning or invalid character issue.
    I use Report builder 10g and XML publisher for the RTF templates.
    Thanks.
    Edited by: 834095 on Mar 28, 2011 8:51 AM

  • Easiest and/or best methods for generating XML output (not with a report)

    Hi, several of our EBS customers (11.5.10) are converting their PDF reports to use XML/BI publisher to produce output. The data stream comes from a report that generates the XML output, and then the XML template is applied. This works great ... no problems, etc. From what I have read, however, Oracle intends to treat the traditional Forms and Reports Developers as legacy tools (although still supporting them, of course).
    My question is if I wanted to ditch using Reports to generate XML output, what, in your opinion or in your current usage, is the easiest way of getting this data? In Reports, the data modeler is excellent in providing a method to write your queries, split them into different repeating groups, write formula and summary columns, link multiple queries, etc, etc. If one were to become Reports Developer free, what comparable tools are available to take its place? I would expect this tool to handle a mix of GUI and coding like the Reports data modeler. Please note that I'm not looking for an EBS-specific solution -- say for a custom application using regular Oracle 10g DB and iAS, with BI Publisher for reporting.
    Thanks for your feedback,
    Ryan

    What I'm looking for is to not use Oracle Reports to generate the XML data output since Oracle's statement of direction is pushing BI Publisher rather than Oracle Reports as the preferred tool for reporting. That said, the data modeler in Reports provides a very flexible tool to construct and link multiple queries and to manipulate the queries into several levels of a master/detail relationship. Further, the mix of GUI and coding makes setting up the data model a lot more efficient. What I'm looking for (and I don't know if anything exists) is something comparable that can be used to generate XML output from the DB -- the idea being that I wouldn't use legacy tools, like Reports, for this task. I hope that is clearer.
    Really, another way of answering my question is, aside from Reports and the APIs mentioned so far, what are my fellow developers using, if anything, to extract XML data in a way that handles the features i list above?

  • Generate XML output using DBMS_XMLGEN.getxmltype and not from rdf

    Hi,
    I have a requirement to display output from a particular table in XL format. Out of all the known possible options, I am planning to use the XML publisher to generate XL output.
    For the data source, instead of using the conventional way of creating XML data using rdf,I am planning to use DBMS_XMLGEN.getxmltype pl/sql procedure to generate the XML output. And from the output, call the template to generate the required Excel output.
    Now, I am using the following code to generate XML output but am not sure how to proceed from here. I need to first print the XML data in the FND Output file after which I was planning to call the 'XML Report Publisher' (XDOREPPB) program and use the current request id to get the excel output but I am not able to find the way to print the XML data in the output file as:
    fnd_file.put_line (fnd_file.output, l_xml_type); - is throwing an error as l_xml_type is an XML data output.
    PROCEDURE xml_main (
    errbuf OUT VARCHAR2
    ,retcode OUT VARCHAR2
    ,p_project_from IN VARCHAR2
    ,p_project_to IN VARCHAR2
    AS
    l_xml_type XMLTYPE;
    BEGIN
    SELECT DBMS_XMLGEN.getxmltype
    ('SELECT fnd_global.conc_request_id
    ,TO_CHAR (segment1)
    ,to_char(start_date,''MM/DD/RRRR'')
    ,to_char(xxmcc_project_details_pkg.current_profit_projection
    (project_id),''999,999,990.90'')
    ,to_char(xxmcc_project_details_pkg.cost_to_date (project_id),''999,999,990.90'')
    ,''1''
    FROM pa_projects_all
    WHERE segment1 BETWEEN NVL (p_project_from, segment1)
    AND NVL (p_project_to, segment1)')
    INTO l_xml_type
    FROM DUAL;
         fnd_file.put_line (fnd_file.output, l_xml_type);
    END xml_main;
    Can anyone point me as to how to publish XML output using a PL/SQL procedure (DBMS_XMLGEN.getxmltype)
    Thanks.

    Pl see if the example included in this presentation helps http://www.oracle.com/technology/products/applications/Events/OOW-2006/EBS/S281401_Sridhar_Bogelli.pdf
    Also, you do not need to explicitly call XDOREPPB in later versions of XML Publisher. If you set up everything correctly (as described in the presentation above and the link below) the Output Post Processor is called automatically after the XML file is generated successfully.
    Another excellent tutorial is at http://www.oracle.com/technology/obe/fusion_middleware/fusion/bi/xmlp_ebiz/index.html
    HTH
    Srini

  • When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb.But the output records is originally 4000 records. When copy to new excel it is showing 3.5 mb only. Does anyone knows the answer for this issue?

    When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb. The records contained in excel file is 4000 records. When taking the excel records and copy to new excel file the excel file size is 3.5 mb only.Why does the oracle software generates 20mb file?
    Does any one knows the answer please advice?

    Hello,
    This issue is because the Excel output from BI Publisher is MHTML (XML Publisher generates XHTML) not binary .xls.
    MHTML and XHTML are more verbose formats than binary .xls.
    It will be large because the current Excel output is just an HTML and not compressed like PDF. Please use the workaround (save it as .xls file).  This is a known limitation of RTF layout templates.
    BI Publisher Enterprise has a new feature True Excel Templates. The layouts generate binary Excel output.
    Excel Output File Size Generated By BI Publisher is Very Large (Doc ID 760437.1)
    Bogdan

  • XSL and FSG report with XML output

    I have 5 FSG Reports combined into one reportset. all these reports output type as XML. Once the reportset is submitted and all the FSG reports are completed , i want to call a XSL program which will combine all the 5 FSG XML outputs. Please advice me how to use the xsl program to combine all the FSG XML Outputs.

    Phew thats gonna be some XSL bearing in mind how complex the FSG XML is. How much data are we talking about here ? There might be a simpler solution as long as there is not a huge amount of data.
    REgards, Tim

  • Regarding  the rowset and row tags in the XML output

    Hi,
    We generated an XML file using dataset of type SQL query.The output is including additional tags
    <ROWSET> and <ROW> tags.How to disable them from appearing in the XML output.

    Hi,
    Iam not using the Datamodel of data template type.If we use the data template we can disable the rowtags by setting the property mentioned by you.But we get the data template name and the query name included in the output.My requirement is to disable the extratags.
    Can u please provide inputs on how to disable the datatemplate name and the query name tags in the output when we use datatemplate.Thank you.

  • Get XML Output and parameters

    I'm using Oracle BI Publisher 11.1.1.3.0 and I've created a Dataset with several parameters. (6 to be precise) I'm using the "Get XML Output" button to generate my sample data...
    Without the parameters all is good... but when I add parameters... the parameters line up from left to right three of my parameters "disappears" to the right and even more importantly the "Run" & "Return" buttons disappear and I cannot access them.
    I feel like I'm missing something simple... but I just can't find it. How can I get those parameters to line up some other way?
    (Let me specify once again that I am ONLY in the Dataset area, not the report area)
    Thanks in advance

    Look... this seems like a serious problem...
    I cannot generate the sample data when I add more than 3 parameters (Type Menu with a LOV) ....
    I cannot generate sample data, the parameters do not appear on the report...
    The Run button is off screen and there are no scroll bars...
    I am in the data model area only... NOT the report are and I have NO way of seeing the parameters that are off screen or even accessing the Run & Return button or the "Save sample data"
    What is going on?

  • [svn] 4521: Fix for - Override information missing for properties and methods in DITA XML output of ASDoc

    Revision: 4521
    Author: [email protected]
    Date: 2009-01-14 06:01:28 -0800 (Wed, 14 Jan 2009)
    Log Message:
    Fix for - Override information missing for properties and methods in DITA XML output of ASDoc
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-18681
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18681
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

    Hi ,
    I have an error like this below:
    [java] Exception in thread "main" java.lang.IllegalArgumentException: and
    [java] at com.sun.rave.jsfmeta.generators.Main.run(Main.java:521)
    [java] at com.sun.rave.jsfmeta.generators.Main.main(Main.java:279)
    BUILD FAILED
    if someone know solution plz post it here
    Thanks

  • RH9 and XML output - passing build tags

    Hi,
    I've just upgraded to RH9 and have found out that the XML output options are different from RH7 - the RH7 Export Handler "Export Topics to XHTML"  has  disappeared and the other options no longer allow you to retain conditional build tags in the XML output. Instead, the tag is removed (if tag is to be included in compile), leaving the content as is, or the tag and content is removed (if tag excluded).
    As some background, we used the RH7 Export Handler "Export Topics to XHTML" option to strip down the size of our localized content - included tags stay in the XML,exclude tags actually remove content. The XML is reimported into a translatable project where the retained tags (e.g., UserGuide or Help) are used to restrict content to Help or generated User Guide after translation.
    Has anyone any experience of this area of RH9? Woulld you know if this is a bug or by design, or if a workaround is possible? Are there other ways of cutting down projects for translation while having build tag control in your localized versions?
    This breaks my solution for cutting down UK/US help content big time - this has saved a lot on localization costs!
    Many thanks
    Andy Capstick
    [email protected]

    Hi, you can FOR XML PATH for a finer degree of control over your XML.  Use the @ symbol to create attributes.  Here's a simple example:
    DECLARE @t TABLE ( rowId INT IDENTITY PRIMARY KEY, [address] VARCHAR(50), city VARCHAR(30), floor INT, suite INT, doorType VARCHAR(20) )
    INSERT INTO @t VALUES
    ( '123 Fake St', 'Springfield', 10, 512, 'Metal' )
    SELECT
    [address] AS "Address",
    city AS City,
    [floor] AS "Location/@Floor",
    suite AS "Location/@Suite",
    doorType AS "Location/@DoorType"
    FROM @t
    FOR XML PATH ('Company'), ROOT ('Companies'), ELEMENTS;

  • How to read and process oData service's ATOM XML output?

    Hi,
    I have a RFC created in system A which will call oData services of system B. I am calling this in a report using class methods,  cl_http_client. I will get the response in a ATOM XML format. Is there a standard way to read and process such ATOM XML in abap report without using further addons?
    Regards,
    Vinay

    You need to pass your filename String as a parameter to your functionality. It depends how you're currently set up though. We can't really see the top of your call so it's difficult to determine what you are calling and we don't really know from where you're calling either.
    If you're running standalone, then on launch of the application, you can feed in a file name as an argument that you can read in in String args[] in the main function and pass down to your XML splitter.
    If you're a method in a class that's part of a bigger pile, you can feed the file name as a String to the method from wherever you call from if it makes sense architecturally.
    You might also want to pass down a File object if that makes sense in your current code (i.e. if you're using your file for other purposes prior to the split, to avoid recreating closing/opening for no reason).
    Depends what you're trying to do. If I put together a piece like this, I would probably create an <yourcurrentrootpackage>.xml.splitter package.
    Also, on a side note, you're problem isn't really reading and writing XML in java, but seems more to be making your functionality generic so that any XML file can be split with your code.
    Regards
    JFM

  • How to create a xml output in report 2.5

    Hi
    Please Anyone using reports 2.5 and trying to
    implement XML outputsolutions ?? I have some
    oracle reports that need to produce XML output
    I know that 6i supports XML output. i dont know
    how to do in 2.5. If anyone has done anything similar
    to this, I'd be interested in hearing different solutions?
    Thanks,
    Parthi

    [ajayubbott],
    I am not sure if you should create another folder to house all your servlets when using Java Web Server 2.0.
    The servlet invoker of Java Web Server 2.0 looks at the <server_root directory>/servlets/ directory as the root servlet directory by default and any servlets that is housed under this directory is monitored by the custom class loader provided by Java Web Server 2.0.
    This custom class loader will automatically reload any serlvet class files that are modified i.e. a newer version of the servlet that is newly compiled e.g. change in functionality. What this means is that you don't have restart the web server to reload any new version of the existing servlets on the web server.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

Maybe you are looking for

  • Sequence Settings for 5D Converted Footage

    Hello, Can someone please tell me what the sequence settings should be for 5D footage that has been converted to Pro Res? I've changed the frame rate to 29.97. I looked at the easy setup, but it looks like that is 24p Pro Res, so that is not matching

  • Vectorscope in Color 1.0.2

    Something is wrong with the Vscope on the new version of Color. I've been using a DSC labs chart (which requires 2x Vscope gain) and before the update clicking 50% on the Vscope put the colors where they should be. Now they're less saturated on the s

  • An issue with Oracle CLOB

    Hello, I am trying to read Oracle CLOB using JSP. I have the following objects Reader instream = null; char[] buffer = new char[100]; Clob clob=null;I read CLOB like so clob= res.getClob(2); instream=clob.getCharacterStream(); buffer[1]=instream.read

  • Kotoeri Produces Mojibake

    We recently purchased a 27" Intel Core 2 Duo iMac running Snow Leopard for my wife's English-Japanese translation service. Unfortunately, after diligently indicating Japanese as one of the designated languages, we discovered that Kotoeri is virtually

  • My iPad 2 WILL NOT complete / finish sync after update of 7.1

    I have tried syncing my iPad 2 several times and even left it overnght to complete the sync, but it gets hung up at "Waiting for changes to be applied" which is the last phase of the sync.  I have restarted my Mac Book and my iPad 2 TWICE and tried r