![]() |
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.
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
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: 76
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: 76
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 |
|
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.
|
|
|
|
|
|
#5 |
|
May the Ubuntu Be With You!
![]() Join Date: Jun 2006
Beans: 1,657
|
Re: How do I open a 2.5 gig .xml file?
what happens if you use head?
Code:
head myxmlfile.xml or does this work? Code:
less myxmlfile.xml |
|
|
|
|
|
#6 |
|
Tall Cafè Ubuntu
![]() |
Re: How do I open a 2.5 gig .xml file?
Jings, is that the OpenStreetMap planet file? Can't be, it's 3.7 GB compressed with bzip.
__________________
GNOME en_GB committer. |
|
|
|
|
|
#7 | |
|
Just Give Me the Beans!
![]() Join Date: Apr 2006
Location: Paris & California
Beans: 76
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.) |
|
|
|
|
|
|
#8 | |
|
Just Give Me the Beans!
![]() Join Date: Apr 2006
Location: Paris & California
Beans: 76
Ubuntu 9.04 Jaunty Jackalope
|
Re: How do I open a 2.5 gig .xml file?
Quote:
yes, but it seems to be opening only the the first few lines of the file. (The header?) less yes, this works, and I can use the down arrow to move through the file. the problem with both head and less is that they open the file without any formatting... but at least I know the file opens and isn't corrupted or something gedit does *not* work, it tells me the file is too big, just like Text Editor did. in fact, gedit seems to be the same as Text Editor |
|
|
|
|
|
|
#9 |
|
Ubuntu Extra Shot
![]() Join Date: Aug 2007
Location: Long Pond, PA
Beans: 391
Ubuntu 9.04 Jaunty Jackalope
|
MySql 6.0 seems to have an implementation of Load XML......based on Load Data..
http://dev.mysql.com/doc/refman/6.0/en/load-xml.html I may be worth playing with the new version just to get your data into a DB so you can do something useful with it. There is no mention of max file size for the XML Good luck
__________________
[b]Before Executing commands, understand WHAT you are doing and WHY. Some Commands can be VERY dangerous if you are uninformed! |
|
|
|
|
|
#10 | |
|
May the Ubuntu Be With You!
![]() Join Date: Jun 2006
Beans: 1,657
|
Re: How do I open a 2.5 gig .xml file?
Quote:
less gives you the same output notepad would. I also don't think firefox makes it much better. it looks like tools such as grep and sed would also work you can use: Code:
split -l 5000 myxmlfile.xml newxml you can change 5000 to whatever number of lines you need there is a way to split it up at every occurance of a certain word using csplit Last edited by lavinog; March 18th, 2008 at 11:52 AM.. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|