Dump ResultSet as XML?

Hi,
I'm writing a generic module that should take any sql-query as input, and return the result as a string/XML.
The code could be something like this:
std::string get_xml(std::string sql) {
Statement *stmt;
try {
stmt = conn->createStatement();
ResultSet *rs = stmt->executeQuery(sql);
Is there a simple way of dumping this whole resultset (or each row of it) as an xml string?
Otherwise, I could start doing something like this:
std::vector<MetaData> md = rs->getColumnListMetaData();
for (int i = 0; i < md.size(); i++)
std::string cname = md.getString(MetaData::ATTR_NAME);
int datatype =md[i].getInt(MetaData::ATTR_DATA_TYPE);
switch (datatype) {
// Read the correct type from rs and build XML string...
But I don't want to end up with a ugly naive switch statement with a lot of different types...
Any suggestions?
Regards,
Sverre

I'd think that as long as the database version is 9.2 or later (all of the current supported versions) you could use an XML SQL function or XDB to generate the result as XML (SYS_DBURIGEN perhaps).
Alternatively you could use the XDK APIs (like XSQL) to do this part.

Similar Messages

  • Converting ResultSet to XML by OracleXMLQuery

    Hello,
    I'm newbie in XML and I have following problem:
    I'm using OracleXMLQuery to convert ResultSet from oracle db to XML document. I'm using getXMLDOM()(from oracle package) to convert this OracleXMLQuery into DOM representation. I can extract node names but all values of the nodes are null's (if I convert the document to string and put it on the screen, the values are connect). Here's my code:
    QracleXMLQuery qry;
    ResultSet rset = (ResultSet)stmt.getObject(1);
    qry = new OracleXMLQuery(conn,rset);
          qry.setRaiseNoRowsException(true);
          qry.setRaiseException(true);
          qry.keepObjectOpen(true);
          qry.useNullAttributeIndicator(true);
    Document d=(Document)qry.getXMLDOM();
            //---to this point all seems to be correct
            // -OracleXMLQuery object stores correct xml document and
            // qry.getXMLDOM() return good Document object
      NodeList nl=d.getElementsByTagName("some_tag_name");
      for(int i=0;i<nl.getLength();i++){
           Node temp=nl.item(i);
           System.out.println(temp.getNodeValue()); //null's
           System.out.println(temp.getNodeName()); //correct name of the string
           }Maybe i'm missing something, as I wrote earlier I'm newbie in XML - I would be very grateful for any help. Thanks in advance!

    Thanks for your reply - it really helped. I have another problem,maybe some of you may help me: I have two DOM documents and I want to join then like this
    Documant a:
    <?xml version = '1.0'?>
    <ROWSET>
         <ROW num="1">
            <attr1>sometext1</attr1>
            <attr2>sometext2</attr2>
            <attr3>sometext3</attr3>
         </ROW>
         <ROW num="2">    
         </ROW>
         <ROW num="3">
         </ROW>
    </ROWSET>Doc b
    <?xml version = '1.0'?>
    <attrib>
      <ROW num="1">
         <atr1>sometext1</atr1>
         <text>othertext1</text>
      </ROW>  
      <ROW num="2">
         <atr2>sometext2</atr2>
         <text>othertext1</text>
      </ROW>
      <ROW num="3">
         <atr3>sometext3</atr3>
         <text>othertext1</text>
       </ROW>
    </attrib>Now I want to insert the whole <attrib>...</attrib> section from document b as a node to document a in for example <ROW num="1">...</ROW> section. I've tried to create Node element form document b (<attrib></attrib>) and use insertBefore() method on Node <ROW num="1"></ROW> but I have a nullpointer exception - well it probably wasn't good idea.I hope my description is clear, I vould be happy for any advice. Thanks in advance

  • Query resultset to xml using java and XML schema

    Hi,
    I query data using JDBC and I want to store it to an XML file which has a well defined XML schema. I searched a lot in the forum but did not find an answer. Please guide me to create this program.
    I have managed to use JDBC to get result set but I do not know how to export is to XML using XSD and Java.
    Please help.
    Regards,
    Ravi

    I have managed to use JDBC to get result set but I do
    not know how to export is to XML using XSD and Java.Export using XSD? Schemas are for validation.
    Iterate through the result set, and build up the XML stream by creating an entry for each row.
    Another way to do it is to load the ResultSet into a Java object and serialize that to XML using something like XStream.
    %

  • Converting a ResultSet to XML (mysql) - very slow - need some criticism

    Preface:
    I have some data being inserting into a mySQL table every 5 minutes. Currently, there are about 275 rows. Each row has 26 (TEXT) columns, the data in those columns is no longer than 10-15 characters.
    I am using the following code to turn this data into XML which is then, through a servlet, output on a webserver. With 275 rows, this is taking around 3-4 minutes to generate the XML file. I am worried that in a week from now when the data is over 2,000 rows it will exponentially decrease in speed. Can someone give me a better route so this will run faster?
             String xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n";
           String SQLCommand = "select * from "+getDataId()+";";
           try{
                Statement stmt;     
                ResultSet rs;
               String url = "jdbc:mysql://"+getIBoxIp()+":"+getDbPort()+"/"+getDbName();          
               Connection con = DriverManager.getConnection(url,getDbUsername(), getDbPassword());                     
                    stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                    rs = stmt.executeQuery(SQLCommand);
                    while(rs.next()){
                      xml += "\n<row>";
                      ResultSetMetaData md = rs.getMetaData();
                      for(int i = 1; i < md.getColumnCount() + 1; i++){
                           xml += "\n\t<" + md.getColumnName(i) + ">" + rs.getString(i) + "</" + md.getColumnName(i) + ">";
                      xml += "\n</row>\n";
                    System.out.println("@@mysql> XMLSQLCommand > " + SQLCommand);          
               con.close();     
               return xml;
           }catch(Exception ex)
                System.out.println("@@mysql> SQLCommand Failed > " + SQLCommand + "\n@@mysql> Exception > " + ex.getMessage() + "");
                return xml;
           }Again, with 275 rows, I'm getting about 250 KB of data in the resulting XML file with a 3-5 minute parsing/generation time.
    Thanks in advance!!!
    Edited by: bergy on Sep 21, 2007 8:46 AM added code tags

    No, it's a good question. The page I linked to does say
    "Instead of XMLWriter, this driver uses David Megginson�s other public domain writer program, DataWriter..."
    So yeah, trying to track down Megginson's code might not be such a good idea. But the sentence quoted does suggest what should be used instead: XMLWriter. Which implies that XMLWriter was mentioned somewhere earlier in the book.
    So, following the "Prev" links to previous pages, eventually I found XMLWriter discussed a couple of pages earlier, where it says
    "More specifically, I�m going to use David Megginson�s public domain com.megginson.sax.XMLWriter class."
    I don't really find this very satisfactory as advice for beginners, so I somewhat regret doing that. It's a long time since I looked at that page myself. But it does have a link pointing to http://www.megginson.com/downloads/, where it is possible to download the Java version of XMLWriter. I'm not sure if the OP is comfortable with using downloaded software, but that download is the simplest possible Java download so it might be a good place to start.
    You could recommend using a DOM strategy, and JDOM might be a good choice, but if you can just generate the XML straight from your input, it's a better strategy to do that rather than building a DOM tree in memory and then serializing it, in my opinion.

  • Trying to do a XML dump for soap using AXIS

    Hi there,
    I'm trying to get a dump of the XML I am generating for a SOAP transaction. I've done a bit of a seach, and it seems that I need to put the following in my JRX-RPC security file
    <xwss:SecurityConfiguration>
    <xwss:SecurityConfiguration dumpMessages="true">
    The only problem being..... My jrxrpc jar doesn't appear to have a security file.
    I thought therefore it was probably just inheriting the information from my Java setup. So I wanted to change Java\jdk1.5.0_06\jre\lib\security, but there is nothing in there that looks remotely like the xml above.
    Can anyone give me a pointer exactly where I should be putting these things?
    Thanks very much
    Dianne

    To use the TCPMonitor:
    Say you are running your axis service on localhost port 8080
    Launch TCPMonitor, i.e.:
    java -classpath c:\axis-1_4\lib\axis.jar org.apache.axis.utils.tcpmon 1234 127.0.0.1 8080
    Now edit your XXXServiceLocator class so that the address points to port 1234 instead of 8080
    Now TCPMonitor will log all request/response pairs and forward your requests on for you to the correct port.

  • ResultSet XML Conversion Error

    Hi,
    BPEL, SOA 11g, DB2 Stored procedure,
    In a BPEL service I am getting this error while invoking a DB2 Stored procedure with Strong XSD. I am using assign to copy the input parameter to the input parameters of Stored procedure.
    not able to figure out why this error message is coming.
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'JDE_DBA' failed due to: ResultSet XML Conversion Error. An error occurred while converting from a ResultSet to XML. Unable to convert a ResultSet to XML. Cause: java.lang.NullPointerException ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(AstValue.java:157) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) a
    ---------------- BPEL Code --------
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Fri Dec 10 10:24:23 PST 2010
    Author: chaitanyad
    Purpose: Synchronous BPEL Process
    -->
    <process name="UPCMatchOrder"
    targetNamespace="http://xmlns.oracle.com/CD_JDE_Application_jws/JDE_UPCMatchOrder/UPCMatchOrder"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:client="http://xmlns.oracle.com/CD_JDE_Application_jws/JDE_UPCMatchOrder/UPCMatchOrder"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/CD_JDE_Application/JDE_UPCMatchOrder/JDE_DBA"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns2="http://xmlns.oracle.com/pcbpel/adapter/db/QAMODA73/X56714P/">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="upcmatchorder_client" partnerLinkType="client:UPCMatchOrder" myRole="UPCMatchOrderProvider"/>
    <partnerLink name="JDE_DBA" partnerRole="JDE_DBA_role"
    partnerLinkType="ns1:JDE_DBA_plt"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:UPCMatchOrderRequestMessage"/>
    <!-- Reference to the message that will be returned to the requester-->
    <variable name="outputVariable" messageType="client:UPCMatchOrderResponseMessage"/>
    <variable name="Invoke_1_InputVariable" messageType="ns1:args_in_msg"/>
    <variable name="Invoke_1_OutputVariable" messageType="ns1:args_out_msg"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in UPCMatchOrder.wsdl) -->
    <receive name="receiveInput" partnerLink="upcmatchorder_client" portType="client:UPCMatchOrder" operation="process" variable="inputVariable" createInstance="yes"/>
    <!-- Generate reply to synchronous request -->
    <assign name="Assign_3">
    <copy>
    <from variable="inputVariable" part="InputMessage"/>
    <to variable="Invoke_1_InputVariable" part="InputParameters"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" inputVariable="Invoke_1_InputVariable"
    outputVariable="Invoke_1_OutputVariable" partnerLink="JDE_DBA"
    portType="ns1:JDE_DBA_ptt" operation="JDE_DBA"/>
    <assign name="Assign_2">
    <copy>
    <from variable="Invoke_1_OutputVariable" part="OutputParameters"/>
    <to variable="outputVariable" part="OutputMessage"/>
    </copy>
    </assign>
    <reply name="replyOutput" partnerLink="upcmatchorder_client" portType="client:UPCMatchOrder" operation="process" variable="outputVariable"/>
    </sequence>
    </process>
    Regards,
    -CD

    Hi Sanjay,
    The JDBC sender adapter returns the rows selected from the database in the follwoing format.
    <resultset>
    <row>
    <column-name1>column-value</ column-name1>
    <column-name2>column-value</ column-name2>
    <column-name3>column-value</ column-name3>
    </row>
    <row>
    <column-name1>column-value</ column-name1>
    <column-name2>column-value</ column-name2>
    <column-name3>column-value</ column-name3>
    </row>
    </resultset>
    This error occurs , when the source datatype you have created for the JDBC adapter does not match with this format. I would suggest that you check the source format along with the occurence of your field.
    Regards,
    Bhavesh

  • Convert ResultSet - Xml with Xml Schema in java

    Hi
    I am using Web Services created in java and will be used from .Net client. Since its a cross platform, so I need to convert the Java ResultSet to XML stream (with schema) so that it could be accesed by .NET client. So I want to know how to convet a Java ResultSet into the desired xml stream (with schema).I know .NET provides this facility through some methods of DATASET.
    Will anybody tell me of any utility, tools or the methods so that I can accomplish this task.
    Thank in advance
    nitin

    I would think that the easiest way to do this would be to use web-services. Get the JWSDP. I don't think there is a direct way to go from ResultSet to XML. You'd have to write or find an external tool, though Oracle can create XML straight from the database.

  • How do I get values from a resultset using JDOM?

    I am very new to this and I dont have the slightest idea how to retrive values from a result and create a XML tree using JDOM
    Can someone please help me?
    I have the JDOM Parser installed on my machine.
    This is my code so far:
    import org.jdom.input.*;
    import org.jdom.*;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Display extends HttpServlet {
    public void doPost(HttpServletRequest rq, HttpServletResponse rs) throws IOException, ServletException
    rs.setContentType("text/html");
    PrintWriter out = rs.getWriter();
    try {
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         Connection listcars_con = DriverManager.getConnection("jdbc:odbc:Cars");
         Statement listcars_statement = listcars_con.createStatement();
         ResultSet listcars_rs = listcars_statement.executeQuery("Select CarNr FROM cars");
    //Load the appropriate driver, establish a connection and create a statement which is used to execute the query that returns all the
    //columns from the cars table
    Document doc = new Document(new Element("rootElement"));
              listcars_statement.close();
              listcars_con.close();
    //close the connections
    catch (ClassNotFoundException cnfe)
    System.err.println(cnfe);
    } catch (SQLException sqlex) {
    System.err.println(sqlex);
    } catch (Exception er) {
    er.printStackTrace();
    } //closing bracket for doPost method
    } //closing bracket for class definition

    ResultSet object has nothing to do with XML... so the only way to it
    is just read each row/column in your resultset and then create
    XML record based on structure of your resultset - annoying job...
    Also you can try to use tool developed by Oracle which based
    on SQL select statement parses resultset into XML...
    Paul

  • Stored Proc to create XML (using nested cursors)?

    From previous posts and from the
    documentation for XSQL I have
    discovered the joys of the
    CURSOR operator to create
    nested tables: i.e:
    SELECT dname,
    CURSOR (SELECT ename, sale....) as employees
    FROM dept
    However, I can not find any other
    documentation on how to program (PL/SQL)
    this functionality.
    I would like to use XSQL as
    it is exactly what I need, but
    I can not because my client does
    not want to use Java and they
    require IIS, but do not want to
    use JRUN, etc... (I tried this
    first).
    Since I only need to do an XML
    dump to a variable for processing
    by other parts of the program, life
    is fairly easy. I have already done
    this using Microsoft Data Shapes in
    VB (client does not want VC++ either...)
    However this was slow.
    In order to speed things up I want to
    create a stored procedure in Oracle to
    dump out the XML hierarchy to a variable given
    an SQLQuery input. If I use
    nested CURSORS this should be very easy.
    I would like to create a recursive PL/SQL
    function to handle this, but I have the
    following questions:
    1) I want the function to have an
    input of an open cursor,
    My plan is to detect the column
    type, when it is a nested cursor
    I would recurse with the open cursor
    to handle the nested cursor.
    2) I can not find a reference on to
    programatically handle "untyped collections
    based on an SQL statement" in anything
    other than the XSQL documentation.
    I am assuming that I can detect the
    column type of nested cursor somehow
    and then recurse on this to handle
    dump the recordset to an XML tagset.
    But I wuold like to find some documentation
    or examples on the calls, type statements,
    etc....

    I think the CURSOR() thing is an invention of the XSQL Servlet; not available elsewhere.
    You can accomplish nesting via user defined types and object views, using the "cast(multiset())" syntax, which is not documented particularly well either. This does require some setup, and so is not particularly dynamic.

  • File Adapter: Flat-file to XML

    New to the Oracle ESB.
    I am using the file adapter to read in a fixed-length flat file, have mapped it to an xsd and now I just want to dump the resulting xml into a directory. I don't see an obvious way to do this without converting it back to a flat file (by pointing the file writer back to a similar flat file xsd). Missing something obvious?
    Thank you!

    File Adapters content conversion does not supprot such a nested strucutre currently.
    The only format supported is the one shown in ths link,
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Either write a module that will do this conversion or Change the datatye for the source to the format shown in help.sap.
    Regards
    Bhavesh

  • XML request in Flex WebService using ActionScript

    Hi,
    I'm having a problem with dumping the request XML. When I send XML request to a web service with soapUI, it gives me normal results, but when I try to do the same thing in Flash using Flex, the web sevice responds with a SOAP fault. This is basically what I'm doing:
    var xml = XML('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://some.web-sr.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header/><SOAP-ENV:Body><ns1:SomeOperation><ns1:data></ns1:data></ns1:SomeOpera tion></SOAP-ENV:Body></SOAP-ENV:Envelope>');
    wsOperation = getWsOperation('SomeOperation');
    wsOperation.resultFormat = 'e4x';
    wsOperation.request = xml;
    wsOperation.send();
    Result: <faultstring>The path is not of a legal form. ---&gt; The path is not of a legal form.</faultstring>
    How can I dump the request xml which was actually sent to the web service by Flex? Or what am I doing wrong here?
    Thanks in andvance,
    MC

    At last, after three days of reading the WHOLE INTERNET and posting this I have managed to dump the request data
    var assetToken = wsOperation.send();
    trace(assetToken.message);
    Hope this helps anybody else.
    Regards,
    MC

  • XML Delivered Packages in 9i

    Hi All,
    I am a debutant in handling XML. I want to know which are all the delivered package available to manipulate the same. ( i.e, resultset to XML and viceversa).
    I have a requirement to convert an XML contained in a CLOB into resultset format. (i.e Node name as column name and node value as column data).
    Awaiting you valuable suggestions and remarks.
    Thanks,
    Subbu S

    XML DB support was introduced in Oracle Database 9i Release 2. You can take a look at the 9.2 documentation online to learn more.
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96620/toc.htm
    Regards,
    Geoff

  • Oracle/XML Question from MS SQL Server 2000 Developer

    With Microsoft SQL Server 2000 and Transact-SQL I can query a database and my results will be returned as an XML document. I need not do any further programmatic processing to transform my resultset into XML.
    I really know nothing about Oracle. That said, is this functionality available with Oracle/PL-SQL? And, if you could specify an URL where I might read up a bit on this, I'd really appreciate the point in the right direction.
    Thanks,
    --Isaac
    [email protected]

    Here is a link to a page that has some good information and examples and includes a lot of other links:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:4980337843276
    You can also search the Oracle on-line documentation and these forums for additional information. Here is a link to our FAQ home page, which includes a link to instructions on how to search the documentation and forums:
    Re: How to attach a java bean in forms6i
    There is also an XML DB forum. If you click on options near the upper right portion of your window, you can subscribe to that forum.

  • XML mapping into Sybase

    Hello All
    Is there any good way to mapping any XML files into sybase database ? basiclly, I need to parse the XML file and create the related tables to store the elements ....
    Thanks in advance!

    Thanks for the reply!!!
    Found this info:
    Sybase Adaptive Server introduces the ResultSetXml Java class as a base for processing XML documents in both directions.
    it seems a simply way to do it compare to the Hibernate tool , but tried to use it have the following error, don't know anyone familar or not? Thanks for the help!!!!!!!!!!!!!!
    =============================
    java code
    =============================
    import java.io.*;
    import jcs.util.*;
    import jcs.xml.resultset.*;
    public class XmlResultSetTest{
        public static void main (String[] args) {
           try{
              String xml = FileUtil.file2String("C:/xml1.xml");
              jcs.xml.resultset.ResultSetXml rsx = new jcs.xml.resultset.ResultSetXml(xml);
              String sqlScript = rsx.toSqlScript("xmltest_table", "col_","no");
              FileUtil.string2File("C:/xmltest.sql",sqlScript);
             //   ExecSql.statement(sqlScript,"antibes:4000?user=sa");
           } catch (Exception e) {
              System.out.println("Exception:");
              e.printStackTrace();
    }=================
    XML file: xml1.xml
    =====================
    <?xml version="1.0" encoding="utf-8" ?>
    - <!-- A SAMPLE set of slides
    -->
    - <slideshow title="Sample Slide Show" date="Date of publication" author="Yours Truly">
    - <!-- TITLE SLIDE
    -->
    - <slide type="all">
    <title>Wake up to WonderWidgets!</title>
    </slide>
    - <!-- OVERVIEW
    -->
    - <slide type="all">
    <title>Overview</title>
    - <item>
    Why
    <em>WonderWidgets</em>
    are great
    </item>
    <item />
    - <item>
    Who
    <em>buys</em>
    WonderWidgets
    </item>
    </slide>
    </slideshow>
    ======================
    Error :
    ======================
    java.lang.Exception: Unexpected (slideshow)
         at jcs.xml.DomTree.checker(DomTree.java:287)
         at jcs.xml.DomTree.topNode(DomTree.java:308)
         at jcs.xml.resultset.XR.toSqlScript(XR.java:162)
         at jcs.xml.resultset.ResultSetXml.toSqlScript(ResultSetXml.java:130)
         at xmltest.XmlResultSetTest.main(XmlResultSetTest.java:12)

  • Result Set - XML conversion - Problem in FormattedDataSet

    Hi,
    I'm trying to convert the JDBC resultset into a XML file.
    I read somewhere that FormattedDataSet interface has many methods that are very useful in converting the resultset to XML.
    I downloaded the following files as mentioned in the website:
    1. fdsapi.jar
    2. jakarta-oro-2.0.8.jar
    3. JAMon.jar
    Also as mentioned in the website (http://www.fdsapi.com/), I placed these jar files in my classpath. My classpath looks like:
    D:\Programs>set classpath
    CLASSPATH=D:\XMLConv\Installations\FormattedDataSet\fdsapi.jar;
    D:\XMLConv\Installations\FormattedDataSet\jakarta-oro-2.0.8.jar;
    D:\XMLConv\Installations\FormattedDataSet\JAMon.jar
    But when I executed my program through Command line, I'm getting this error:
    a1.java:6: cannot find symbol
    symbol : class FormattedDataSet
    location: class a1
    FormattedDataSet rs = FormattedDataSet.createInstance();
    ^
    a1.java:6: cannot find symbol
    symbol : variable FormattedDataSet
    location: class a1
    FormattedDataSet rs = FormattedDataSet.createInstance();
    ^
    2 errors
    I tried running in Eclipse editor(IDE) where I included the above said jar files as External JAR files. But, even there, I'm getting the same error.
    Could somebody please let me know how to solve this error.
    Thanks

    Checking the fdsapi.jar file reveals that the FormattedDataSet class is part of the JAR. Have you included the import statement for the package in your source? For example:
    import com.fdsapi.*;

Maybe you are looking for

  • Batch management issue.

    hello all, i have batch management active in mm,automatic batch is created during GR. now i want to implement fifo goods issue,but it needs material master view to be extended to classificatio tab under which i will assign the class.we have almost 20

  • Cannot add multiple file screens on a specific path

    I have a situation where the limitation of adding a single file screen to a specified path just doesn't work. Using Windows Server 2008 R2 64Bit We don't allow users to store things like images, video and audio on any server and we want to be notifie

  • BI Publisher report in OBIEE Dashboards

    Is there a way to generate the view the BI Publisher report automatically, currently it is asking the user to click the View Report button , "Click View Report to generate report"! Appreciate your suggestions. Regards Bees

  • Automatic reversal of docs

    Hi Experts, we put through some journals(Bad debt) using document type AC but it was not being automatically reversed as it was fine earlier. help me to check this. Thanks, vani

  • SAP GRC RAR Rules Generation Job Error - SP13 application

    Hello, we applied SP 13 on GRC and RAR Rule Generation job is always in "error" status; below I list an example of job log: INFO: - Scheduling Job =>237---- Apr 4, 2011 1:36:12 PM com.virsa.cc.xsys.bg.BgJob run INFO: --- Starting Job ID:237 (RULE_GEN