Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Standard for simple database exchange?

Thread Tools

Standard for simple database exchange?
Posts: n/a
This has got to be a FAQ some place, but....

Say I've got a table in some database some place, like so:
(Actually, it's several tables kind of turned sideways, but
for purposes of this question it may as well be this, because
this is the intended target)

flast First Last

At first it looks like a tab file would work, (and indeed, it would,
except that data may contain \n or \t)

What I'm looking for is a *standard* way to produce something simple,
like this:

<table name="PERSONS">
<field label="User ID" name="UID">flast</field>
<field label="First Name" name="FNAME">first name</field>
<field label="Last Name" name="LNAME">last name</field>

But I want the XML to follow a DTD that is commonly used for importing
simple data. Something I can just hand someone and ideally their database
already handles it, or, they can install a tool in <2 minutes for it.

Would be nice if it allowed for file attachments, like:

<field label="Extra documentation" name="description" content_type="application/pdf" filename="somefile.pdf">
... base64 encoded data ...

But it's not strictly required, I'd rather produce simple XML with just the
filename. (Simplicity is the key here, 99% of the time there won't be files,
and if the format allowed base64 encoding and BLOBS, I could always generate
additional fields for that purpose)

Where would I find a specification for that? I've tried google, but all I've
found are tools designed to be *configured* for a wide variety of XML.

-- Custom web programming Removed) (rot13) User Management Solutions
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase Computer Information 0 09-26-2012 09:40 AM
add pexpect to the standard library, standard "install" mechanism. funkyj Python 5 01-20-2006 08:35 PM
How standard is the standard library? steve.leach Python 1 04-18-2005 04:07 PM
Simple database for Sun ONE Studio 4, Community Edition and Java 2 Platform, Standard C.W.M. Avontuur Java 2 12-03-2003 10:31 AM