Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Newbie questions - sorry - re database to xml using external schema

Reply
Thread Tools

Newbie questions - sorry - re database to xml using external schema

 
 
mrjjohnson@hotmail.com
Guest
Posts: n/a
 
      11-29-2005
Hi.

I need have to export an Access2000 table to XML using a schema that
has been provided by a third party to which the XML must comply
exactly. I can upsize this database to SQL.

What I'd like a few tips on is how to export the data of a table into
XML that is completely compliant with the provided schema.

Is it easy to do from scratch or would some 3rd party application be
best?

Thanks for any advice.

 
Reply With Quote
 
 
 
 
Peter Flynn
Guest
Posts: n/a
 
      11-29-2005
wrote:

> Hi.
>
> I need have to export an Access2000 table to XML using a schema that
> has been provided by a third party to which the XML must comply
> exactly. I can upsize this database to SQL.
>
> What I'd like a few tips on is how to export the data of a table into
> XML that is completely compliant with the provided schema.


If the Schema you have been given has been designed for the table
you have to export then there should be some documentation about
which fields go into which elements or attributes. If not, ask for it.

If it's some other Schema that was not designed specifically for the
table, then you will have to work out by inspection what to put where.
If you're lucky, your supplier will be able to help. If not, it may be
largely educated guesswork and deduction.

Example: if there is a field called invoiceNumber and an element type
called INV-NO, then it should be fairly obvious what to do.

> Is it easy to do from scratch or would some 3rd party application be
> best?


Writing the code is probably near-trivial. Making the decisions about
how best to represent each field in the target structure is a human
intellectual activity and no computer application is going to help
unless both database designer and Schema designer have been working
to one of the de jure standards like ISO 11179 or one of the de facto
commercial standards provided by Microsoft, RosettaNet, etc.

///Peter
--
XML FAQ: http://xml.silmaril.ie/
 
Reply With Quote
 
 
 
 
mrjjohnson@hotmail.com
Guest
Posts: n/a
 
      11-30-2005
Thanks Peter.

No, the Schema has not been designed for the table, this is a bespoke
in-house system. However, it is easy for me to decide "what goes
where"; I was really wondering whether a third-party app like the
Altova suite would be worthwhile investigating or whether the code is
indeed "near-trivial".

I will look at the URL in your sig too.

Thanks again.

 
Reply With Quote
 
spiff
Guest
Posts: n/a
 
      11-30-2005
Hi!

MapForce from Altova could do the task for you.

Although the plain mapping is not so difficult in your case it takes a
while to put all things together. Reading the database, maybe encoding
issues, writing the xml, validating ...

Regards

 
Reply With Quote
 
 
 
Reply

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
web.xml / XML schema issue, why do some XML schema attributes disappear asciz@starmail.com Java 3 02-20-2007 09:56 AM
Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema huntingseasonson@gmail.com Perl Misc 5 11-29-2006 12:37 PM
Problem with schema-validation and property "http://apache.org/xml/properties/schema/external-schemaLocation" Markus Java 1 11-23-2005 02:41 PM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
Sorry Sorry Sorry but what camera for me - Real Esate Phil Digital Photography 19 12-28-2003 05:28 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57