Converting MS Access to XML

Egads!
I'm attempting to port an Access 97 db to MySql, and I figured I'd make the thing a utility, so I'm trying to be as generic as possible. Therefore, I'm working with the odious '[Microsoft][ODBC Microsoft Access Driver]' to get the metadata of the db structure so that I can dynamically create an xml dom and use that to recreate the db in mySql. The problem: when I attempt to get a listing of the column names for a given table, the driver is giving me the following error:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Optional feature not implemented.
Below is the offending snippet:
private Vector getColumns(String tableName, DatabaseMetaData dbmd)
throws Exception{
Vector columns = new Vector();
Hashtable columnData;
try{
String catalog = this.con.getCatalog();
System.out.println("getting columns for table " + tableName);
ResultSet rs = dbmd.getColumns(catalog,"%",tableName,"%");
I've tried using "" instead of specifying the catalog and this makes no difference. Anyone out there know if there is any way to get around this? I'm using jdk 1.3's standard jdbc-odbc bridge.
Thanks,
Rachel

Actually, I found the answer to this one already...Thanks to Sesh Venugopal's article on JavaWorld: http://www.javaworld.com/javaworld/javatips/jw-javatip82.html Apparently, the table name has to be all-caps and the patterns as generic as possible:
ResultSet rset = dbMeta.getColumns(null, null,
table.toUpperCase(), "%");
So, if anyone else has a similar problem, that may be the answer.
Rachel

Similar Messages

  • Convert JSP to valid XML

    Does anyone know a good (preferrably free) tool to convert a JSP file to valid XML format?
    I've tried Tidy, but this tool can convert HTML to XML or XHTML but not JSP to XML. It will check first
    if my JSP file is valid HTML, which it is not (because there are a lot of JSP tags included, which will
    result in valid HTML, but which are not initially).

    I have not heard of a tool converting a JSP file to a valid XSL file. I remember ourselves manually converting a Cold Fusion site to an xsl format with reference to a xml files.. men, very tedious even with an XML Spy on the help and a tool that automatically creates a labels.xml to store all labels and images and access them via the <xsl:value-of> tag.
    if you can't find a tool that converts a jsp file to an xsl/xml file maybe you can remove all those scriplets and covert a pure html file out of it. or better yet, when a JSP file has been processed, it returns a pure HTML file, right? so you can get that pure HTML source code and convert that to xsl/xml using the tool you have then insert the scriplets and other Jsp tags after the convertion.
    I think that would be a lot easier in absence of a tool. rather than going through the saving of all your labels in an xml file and go through all that <xsl:value-of> tags to access your labels.
    by the way, can i know where i can find that tool that converts an HTML file to an xsl/xml file.
    Cris

  • In a JSP how can access an XML where the XML is present in JAR file in the

    All,
    The Requirement is as below,
    I have a JSP LaunchMe.jsp, and I have a jar utils.jar. both are present in my deployable war file.
    And I have an XML Details.XML present in the utils.jar file.
    Here I want to access Details.xml in the LaunchMe.jsp.
    Can any one please let me know how can I do this.
    Thanks,
    Subramanyam V

    Yes. You have to understand that to read a FILE (one that is seen as a file by your OS), you probably use a FileInputStream, which is a special case of InputStream. When the 'file' is not a FILE anymore, but an entry in a jar (the OS does not see it, only utilities like WinZip or jar see it), you cannot use a FileInputStream, but some other InputStream. Which one? The one returned by getResourceAsStream(), whatever this is (you don't really care). And all the rest will nicely fall into place.

  • XSLT for converting the determination server xml into the debugger xml

    I've seen this before but i can't find the post. I'm looking for an xsl or xslt document to convert a determination server xml payload request into something that can be imported into the debugger for analysis. It would be cool if the xml was constrained by the same xsd or dtd. Does anyone have a 10.3 xsl or xslt they could share? Or a past xsl?

    A while back I wrote some XSLT to convert SOAP request messages to the XDS format. I created a simple C# GUI to select the input SOAP and output XDS files. It was modelled on 10.1 schema though and I haven't adapted it yet for 10.2+. I will at some point though.
    I've found quickly being able to convert to the XDS format and debugging in the OPM rather than trawling through 1000's of lines of decision report a huge time saver.
    Evert

  • Converting flat file to XML using JMS

    Hi,
    I want to convert flat file to xml. My sender adapter is JMS,
    Can anyone tell me that how to do that conversion ? Conversion is very simple.
    Can we use File content conversion in JMS Sender ? any link or blog ? or any other idea to achieve this ?
    Regards
    Kulwinder

    Hi,
    The pdf has been removed from that link i suppose.
    Anyways, go through the below help, everything that is there in "HowToConveModuleJMS.pdf" has been mentioned in this...
    http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm
    Hope it would surely help you.
    You can go through the below link, for better understanding..
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a05b2347-01e7-2910-ceac-c45577e574e0
    Regards,
    Swetha.
    Edited by: Swetha Reddy on Feb 26, 2009 5:30 AM

  • Adapter Module to convert text message to XML

    Hello Experts,
    I am writing a custom adapter module to convert the text  content to XML message at the sender adapter end.
    I have followed the steps mentioned in the "HowToCreateModulesforJ2EEAdapterEngine" guide available on SDN.
    I have created the java logic in the process mesthod of the bean to conver the text message to XML paylod (don't know if it is correct). I do not have much idea about the Adpater API methods.
    Can anybody help me with the logic to convert the text msg to xml paylod using adapter frame work APIs or is there any way I can debug and test my logic in NWDS.
    Any help will be greatly appreciated.
    - Rajan

    Hi ,
    To convert Text message to XML why yiu want to go for Adapter Module?? Using file content conversion it self you can do it right?????
    There is no standard logic to convert text file to XML, the logic purely depends on your text message format.
    Regards,
    Raj

  • How to convert text file into xml file format with and check that with DTD

    I have an text file with | seperator . I have to convert this to an xml file and check with DTD present with me..
    plz help me out

    can i get some code that how to compare the xml with dtd or just give the DTD name with an XML

  • How to convert Oracle database to XML standard?

    I have a project to convert oracle database to XML standard.And get it to show in webpage.Please tell me for do it.Tell about the way to do it.Tell me some kit to do it.

    Hi,
    otn says like this
    "You can use the XML SQL Utility to generate a DTD based on the schema of the underlying table being queried. You can use the generated DTD as input to the XML Class Generator for Java, which will generate a set of classes based on the DTD elements. You can then write Java code that use these classes to generate the infrastructure behind a web-based form. Based on this infrastructure, the web form will capture user data and create an XML document compatible with the database schema."
    use 'mlsql utility'
    regards
    raghavan

  • WD(ABAP) - How to convert PDF object to XML

    I know there is a way available to converting PDF object to XML in JAVA. However how to achieve this goal in ABAP?
    In Web Dynpro ABAP, I can bind a context attribute to the pdfSource property of interactive form element. There also should be method to able to convert the binary content of this attribute to XML format, right? Does anyone know it?
    Your help would be greatly appreciated.

    Hi all,
    As an extension to Fred's question, is it possible to later use the generated XML data and present it in a PDF template?  It used to be possible using the FDF format, but Adobe seem to have discontinued that. 
    My basic requirement is to send the form data to a third party in XML format and for them to be able to view it in human-readable format, preferably using a PDF as a template. 
    Is this possible?
    Thanks,
    Jonathan

  • Help converting or reading SOAP XML-attachment instead of payload

    Hi,
    I have to setup a webservice that excepts an xml-file as an attachment and read that xml-file as if it where the main payload of the message.
    The messages we receive holds all the data I need in the attachment instead of the data being in the SOAP-body itself. This isnt something I can change since this is a solution provided by amadeus e-travel and I have no chance of changing how they send data to us.
    I have searched and searched the forums but havent been able to find a solution(that I understand) to how I can access the xml-file either in a mapping-routine or by simply swapping the payload with the attachment all together.
    As of now I have a webservice that is functional and receives the call from the source(amadeus e-travel) without a problem. I can also see the attachment in SXMB_MONI where it looks like a perfect xml-structure. But I have no idea on how to access the attachment so that I can use the data inside it in an abap-proxy in our ECC-system.
    As far as I have read on the forums I cannot use the payloadswapbean in the SOAP senderadapter so that option is out. I have seen mention of a java-class for reading attachements in mapping-routines but sadly I'm not much of a Java-programmer and dont have access to one either at the moment. I would need a detailed explanation in order for a java-program to be a viable solution for me.
    Is there some trick I have missed here or blog that shows how to read xml-attachments in a soap-message?
    Is there any standard Java-code I can use to read the whole xml-structure from the attachment in a mapping-routine?
    Any help would be very much appreciated!
    Thanks in advance ,
    Halvor

    Option-1:
    This might be a crude way, but you can acheive by a 2 step process...
    Step1 (Scenario-1) - Receive XML-Msg + Attachment using SOAP Sender adapter. As we have payloadwaapbean module limitation in sender adapter. Let it be a passthru to receiver SOAP adapter. (Don't do any processing in integration engine, like msg mapping or thything). In Rx SOAP adapter,use payloadswapbean to swap XML msg with Payload and resent it to 2nd integration scenario...
    Step2(Scenario-2) - As you have the Attachment as main-payload, you can continue ur normal msg processing on it.
    Option2:
    SOAP messages can also be processed using AXIS-SOAP Adapter.. you can add XI module in it Check it if it might help you...
    http://help.sap.com/saphelp_nw04/helpdata/EN/45/a4a36de28552f7e10000000a1553f7/content.htm
    Regards,
    Siva Maranani

  • Converting webi reports into Xml

    Hi all ,
    Can we convert the BO Edge 3.1 Webi reports into XML Format?
    Pls suggest me a solution and if we can convert, pls describe the procedure to be followed inorder to convert the reports into xml files?
    Thanks in advance,
    Thanks & regards,
    Amrita.B

    Hello,
    While this is not possible (directly) for the entire report, you could do one of the following:
    1. If you're on SP2 (or higher), you could publish Webi Report Content as a web service. There is more information in the pdf at http://help.sap.com/businessobject/product_guides/boexir31SP2/en/xi31_sp2_webi_rich_en.pdf (pg 304) .
    2.  Use QAAWS to publish queries used in the report as web services.
    Best,
    Srinivas

  • Reference Library for Converting Between LabVIEW and XML Data (GXML)

    Please provide feedback, comments and questions on the Reference Library for Converting Between LabVIEW and XML Data (GXML) in this thread.
    The latest version of the NI GXML Library is availble in VIPM on the NI LabVIEW  Tools Network repository.

    Francesco, Thank you for the feedback.  With this component it was my intention to make a more "terse" version of the LabVIEW Flatten to XML VI that was also supported on RT and that gave the user more flexbility regarding the structure of the parsing type definition. I think you are right that the XML parser is not compliant to section 2.11 of the XML spec.  The parser does specifically looking for a #D#A and this appears to be an oversight on my part.  Please confirm for me, the specifcation is saying that the XML parser should be able to recognize three possibilities as an "end of line" character: #D#A, #D, or #A.  Am I reading this right?There are more efficient (and in some cases much more efficient) ways of sharing data between LabVIEW and LabVIEW: some examples are flattened binary strings and the datalog binary format.  XML is slower than these optons but the upside is that it is human readable.  Furthermore XML is inherently hierarchical which is convenient for complex data structures like clusters of arrays of clusters, etc.  If you don't care about human readability then you are correct XML doesn't make as much sense.I will return to the GXML source code and try to fix this in the near future but I would hope that instead of creating yet another custom VI from scratch that you could reuse what I have provided for you.  I included enough documentation in the source code so that users could make some modificiations themselves. The target application for this reference library was LabVIEW to LabVIEW communication.  As such I documented the schema on the dev zone document from a LabVIEW perspective.  It includes all the supported datatypes and all the supported data structures (cluters, arrays, multidimensional arrays, clusters of multidimensional arrays, etc.)  I do see some value in making a more conventional XML spec but the time investment required didn't really line up with my intended use case. Were there any other downsides to GXML that I have missed?  Best Regards, Jeff TippsSystems Engineer - Sound and VibrationMessage Edited by Jeff T. on 04-21-2010 10:09 AM

  • Convert gzip files into XML format

    We have a requirement where we receive gzip files. These files are zipped file containing base64 binary format csv files. We would have to convert these files into XML format. Please let me know any of the following.
    1. Is there any Xpath query or XSL function (somthing similar like doTranslateFromNative() ) to convert from gzip files to XML format.
    2. If we need to unzip the zipfile outside fusion, then java code piece to unzip the gzip file. I guess after that we can use the usual doTranslateFromNative() function to translate to XML format, since after unzipping the gzip file, they are base64 binary formats.
    Thanks in advance,
    Toms

    There is an option to do pre-processing and post processing of Files when using File adapter. You need to create a valve which will first do pre processing and send the output to FileAdapter.
    You can get more information here:
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#CACDHGGG
    under section: 4.2.14 Pre-Processing and Post-Processing of Files
    Essentially you will use Java to unzip the file first and then the unzipped content will be passed to the adapter.

  • How to convert a string into xml file

    Hi,
    i have a string . the string contain fully formated xml data. i mean my string like below
    <?xml version="1.0"?>
    <PARTS>
       <TITLE>Computer Parts</TITLE>
       <PART>
          <ITEM>Motherboard</ITEM>
          <MANUFACTURER>ASUS</MANUFACTURER>
          <MODEL>P3B-F</MODEL>
          <COST> 123.00</COST>
       </PART>
       <PART>
    ......................i want to convert it into an xml file
    can u help me?
    thank u

    Thank you Paul Clapham,
    and sorry ..
    i have some other doubt.. regarding xml
    i want to post an XML file from one server(Server_1) to other server.(Server_2)
    To generate an xml file i used DOM in Server_1.
    using xml.transform , StringWriter i converted it into String.
    I post the string to another server and there i will parse it.
    for that i write the code like below in servlet in server_1
    <form name=fn action=http://localhost:8080/server_2/parseXMl.do method=post>
    <input type=hidden name=xmlFile value="+Xmlstring+">
    <input type=submit >is this process is correct?
    Some of the turorial told that use web-services/XML-RPC
    but i new to both..
    I want to complete it using my knowledge only/
    Is it possible to do it?
    Or any other alternative?
    can help me?

  • How to convert .stl file into .xml file. Subtitles to IMPORT INTO FCPro

    I have a subtitles file which was created in dvd studio pro. I exported that file and made a .stl file (which can be opened with TextEdit).
    I need to import that file into FCP to then make a quicktime file w/subs to be exported.
    I'm trying to use TitleExchange which tells you you CAN convert .stl files into .xml (FCPro type of file) but when I try to import the .stl subtitle file into TitleExchange to be converted to .xml I get the following error:
    Can't make "" into type boolean. (-1700)
    Can someone help?
    Thanks!!!
    Paula

    Can anyone help me?
    I absolutely need to import the subtitles into Final Cut and re-writing all of them manually would take forever.
    Please let me know if there is any program I need to use.
    Thanks for all tips
    Paula

Maybe you are looking for

  • BT Really slow access

    Hi, For the last weeks, my internet access is extremely slow. I've been trying to figure this issue and did a few tests - but these report everything's ok. I find it quite strange, since it's a fact that there's a latency for each request and sometim

  • Free Lion update, but already updated

    Hi, A few days ago, i updated my new Mac Book pro to Mac OS 10.7 Lion, and paid with my credit on my apple-id. Today, i've got a mail from my apple reseller, that i may update free to lion, but i didn't know that i may free update my macbook. Is it p

  • My droid is possessed.

    My droid has developed a problem.  It started out whenever I would call  someone from my contacts, about 10% of the time it would randomly call another person.  Then when I was texting, it would randomly insert characters.  Now it is basically non-us

  • Creating an enrollment system

    I don't even know if this is possible in numbers (but don't have the $500 for filemaker), but what I'm trying to do is create an automated enrollment system for some classes I teach. I need 3 sheets: 1) List of all classes 2) Registration Form (acces

  • Firefox 27.0.1 keeps crashing after a complete uninstall and clean install and disabling all plug-in's .

    FF started hanging up recently so I did a complete clean uninstall including profile. then a complete clean install. I've disabled all plugins and extensions still to no avail. I just open FF and wait a few seconds with out even going to a page and I