Project

General

Profile

Actions

Task #287

closed

XML to database conversion script (merged into CSV-XML-database mapping script)

Added by Aaron Marcuse-Kubitza about 13 years ago. Updated almost 13 years ago.

Status:
Resolved
Priority:
Normal
Start date:
11/17/2011
Due date:
% Done:

100%

Estimated time:
Activity type:

Description

Python script to import an XML file into a PostgreSQL database

Actions #1

Updated by Aaron Marcuse-Kubitza about 13 years ago

  • Description updated (diff)
Actions #2

Updated by Aaron Marcuse-Kubitza about 13 years ago

  • % Done changed from 40 to 80
Actions #3

Updated by Aaron Marcuse-Kubitza about 13 years ago

The script is on nimoy at /home/bien_shared/svn/scripts/xml2db. You can run the demo at /home/bien_shared/svn/scripts/xml2db/test (which uses a sample VegBank-exported XML file). The XML format is compatible with VegBank XML, so data can easily be imported from VegBank.

Note that the demo doesn't commit changes so that it can be re-run. To commit changes when running xml2db, use env commit=1 xml2db ... instead.

Future improvements for the script would include supporting VegX-style XML references in addition to the current VegBank-style references.

Actions #4

Updated by Aaron Marcuse-Kubitza almost 13 years ago

  • Subject changed from XML to database conversion script to XML to database conversion script (merged into CSV-XML-database mapping script)
  • Description updated (diff)
  • % Done changed from 80 to 90

Merged into CSV-XML-database mapping script

Actions #5

Updated by Aaron Marcuse-Kubitza almost 13 years ago

  • Status changed from New to Resolved
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF