![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Absolute Beginner Talk The perfect starting place to find out more about computers, Linux and Ubuntu. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2006
Location: Paris & California
Beans: 77
Ubuntu 9.04 Jaunty Jackalope
|
How do I open a 2.5 gig .xml file?
Hi,
This is going to sound a little silly, but... I have an .xml file I want to open, and I can't. It's very big (2.5 gigs), and I imagine that's part of the problem. Firefox wants to open it by default, but it only takes me to a blank page, exactly the same as about:blank. Text Editor tells it to me like it is: it cannot open the file because it is "too big." OpenOffice Database just eats up tons of RAM when it tries to open the file... I tried to open it with Notepad (through Wine), but it didn't do anything at all. Didn't eat up any memory, didn't open the file... What can I do? I need to either i) open this file or ii) convert it into something that I can open. |
|
|
|
|
|
#2 | |
|
7.62 Full Metal Ubuntu
![]() Join Date: Jan 2008
Location: /dev/null
Beans: 2,793
Ubuntu 8.04 Hardy Heron
|
Re: How do I open a 2.5 gig .xml file?
Quote:
|
|
|
|
|
|
|
#3 | |
|
Just Give Me the Beans!
![]() Join Date: Apr 2006
Location: Paris & California
Beans: 77
Ubuntu 9.04 Jaunty Jackalope
|
Re: How do I open a 2.5 gig .xml file?
Quote:
Edit: Is there any way to lift Text Editor's file size limit? |
|
|
|
|
|
|
#4 | |
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Jun 2006
Beans: 1,980
|
Re: How do I open a 2.5 gig .xml file?
Quote:
If you give us a portion of what the file is and how you want it formated we can help you with a sed statement that converts the file to a format you need. Code:
sed -e 's~\<xmltag\>~~g' -e 's~\</xmltag\>~~g' < myxmlfile.xml > newxmlfile.xml (there is a better expression, but I am still pretty weak with regexp) |
|
|
|
|
|
|
#5 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2006
Location: Paris & California
Beans: 77
Ubuntu 9.04 Jaunty Jackalope
|
Re: How do I open a 2.5 gig .xml file?
Here's where I've gotten:
In a terminal, I run 'mysql -p', enter my password, and that takes me to the MySQL Monitor. When I type 'show databases;' I see: information_schema mysql test The third one, 'test', is an empty database I created. I want to get my XML in there. Here's my new problem: the .xml file has a fairly complex format, and it comes with a .xsd file that describes its structure. What commands do I run within MySQL Monitor to load myfile.xml into the database test using myfile.xsd? |
|
|
|
|
|
#6 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2006
Location: Paris & California
Beans: 77
Ubuntu 9.04 Jaunty Jackalope
|
Re: How do I open a 2.5 gig .xml file?
Maybe it would be helpful to give you links to the actual files:
ProsperDataExport_xml.zip containing * ProsperDataExport.xml (~2 GB) – The Prosper Market Export Data in XML format. Click here to view a condensed example of this file. * ProsperDataExport.xsd (~13 KB) – The Schema Definition of the Export Data in XML format. Click here to view the file. hosted at http://www.prosper.com/tools/DataExport.aspx |
|
|
|
|
|
#7 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2006
Location: Paris & California
Beans: 77
Ubuntu 9.04 Jaunty Jackalope
|
Re: How do I open a 2.5 gig .xml file?
I'm sorry to Bump Up My own Post, but...
I'm attaching the .xsd to this post. I've never seen the xsd format, but it seems to me to be a template for the larger xml file. (Note: I'm saving the .xsd as .txt so that the forum's little uploader will accept it.) So, the question is: is there a MySQL command to create a new database using an .xsd file as a template? Last edited by atorch; April 11th, 2008 at 08:19 PM.. |
|
|
|
|
|
#8 |
|
Just Give Me the Beans!
![]() Join Date: Apr 2006
Location: Paris & California
Beans: 77
Ubuntu 9.04 Jaunty Jackalope
|
Re: How do I open a 2.5 gig .xml file?
Anyone?
The .xsd is definitely a schema for the .xml, but I still have no idea of how to use it. Thanks in advance for any help, - Adrian |
|
|
|
|
|
#9 |
|
A Carafe of Ubuntu
![]() |
Re: How do I open a 2.5 gig .xml file?
you need to import that in to a database like mysql or postgresql and just run queries against them.
|
|
|
|
|
|
#10 | |
|
Just Give Me the Beans!
![]() Join Date: Apr 2006
Location: Paris & California
Beans: 77
Ubuntu 9.04 Jaunty Jackalope
|
Re: How do I open a 2.5 gig .xml file?
Quote:
Google has led me here: http://codeghar.wordpress.com/2007/1...-gutsy-gibbon/ So I ran these commands: sudo apt-get install mysql-server sudo apt-get install mysql-client sudo apt-get install mysql-admin sudo apt-get install mysql-query-browser Now under Applications > Programming I find: MySQL Administrator MySQL Query Browser But both those applications seem to be made to connect to databases on other computers... how do I use them to open an .xml file on my own desktop? (If it is at all possible to do so...) Edit: Or, how do I convert .xml into a format the MySQL works with? (As you can probably tell, I have at best a very very vague idea of what MySQL is.) |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|