Generating xml from mysql database using JSP - mysql

I want to generate xml from database using JSP. I found a link which generate xml file from a form but i want to genarate it using mysql database.

The only way you can generate XML from a MySQL database is by writing a stored procedure. There an interesting article here that shows how it can be done.

Related

Verify XML field with MySQL and XSD file

I looked in the MySQL documentation but I didn't find an answer to my question :
I would like to know if MySQL could "check" if a field filled with XML is well formed.
Of course I would give to MySQL a XSD to verify the XML and I will use Spring MVC to manage the server's side of things.
I know it is not something I should do BUT I HAVE to do this in a school project.
rXp
No, MySQL does not provide build-in functions for that. You have to query the document out of the database and use your programming language of choice to validate the XML document against a XSD.

Connecting Access to Java DB

I have a Database which was created using Java DB, Would it be possible for me to manipulate this Database using access?Ive tried using the wizard but it asks me for a dsn and I cant seem to figure out where to get that from
Edit: I would like to modify the database from both MS-Access and javadb
The tables are (relatively) simple currently & it contains 2 relationships; one to zero/one and one to many
Should I convert it to csv and then after I'm finished convert it back to Java DB again?
There are several options. If you want to be able to modify the database from both Derby and MS-Access, then you will need to locate an ODBC driver for MS-Access that would enable it to read and modify a Derby database. Off hand, I do not know if such a driver exists.
If you wish to simply convert the database to an MS-Access format, then ...
... much will depend on the structure of the underlying tables and how much of the schema you need to preserve.
The simplest thing would be that you have a database consisting of a single table that resembles a flat-file database. In this case, you can write a simple JDBC tool to write your database out as a CSV file (for example) that MS-Access can read.
If you have multiple tables or data that can't be easily represented by a CSV file, then things become more complex. You haven't told us anything about your needs or the structure of your database, so it is unlikely that anyone can be more specific.

Processing a MySQL DB and XML Hybrid into a Solr Index

Problem:
A Table in MySQL
that has a few normal fields and
one text field that holds XML
I need to use Solr Data Import Handler to process this table into a Solr Index.
However, the XML field needs to be parsed into several other solr fields each
Question:
Is it possible to do this without having to write a custom Transformer? If yes how. Can I use XPathEntityProcessor with a my SQL DB as datasource?
If I write a custom transformer, how exactly do I configure it in dataConfig?
I am using older version of solr (1.4.1), so can I just drop a new jar with new class into my solr web-app?
The thing I am quite unsure about is how I need to configure the data-config.xml to do this. If anyone has any examples, please share! Thanks.
My suggestion is to write a program which selects the data from the database, parses the XML data field and then inserts the entire document into the SOLR index.
The solrj Java apis are really easy to use. The hardest part of this is parsing the XML, but it's a far easier challenge and easier to test.

XSD to MySQL Schema

I need to convert an XML to a MySQL DB Schema.
I have been able to generate the XSD from the XML. Now i want to use the XSD to generate the DB schema in MySQL or PostgreSQL. Can anyone tell me how can i do this or point to any tools which i can use for this?
There is a command-line tool called XSD2DB, that generates database from xsd-files, available at sourceforge.
For more info: please refer to this existing question How can I create database tables from XSD files?

generate html or excel or pdf document for mysql database

I have a database schema and i want to generate a document in any format(html or pdf or excel) of all the tables,stored procedures ,triggers for mysql .Please suggest a suitable tool which can provide all the documents
Following these steps should help:
connect to the database and retrieve data
use an appropriate module in your programming language of choice which is able to handle formats such as HTML/PDF/XLS(X)
organise the retrieved data in a presentable form and write to file using the module that you chose in step 2