LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Closed Thread
 
Search this Thread
Old 10-22-2010, 08:21 AM   #1
richiep
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Rep: Reputation: 0
extract xml from a large text file specified by the user


Hello,


I have a huge text file generated from our system and i need a script that asks the user to specify which file to open, Once the file is open, the script should extract ALL of the XML in that file ONLY and then write it to another file.



The XML needs to be extracted in to the new file, currently it is not arranged very well, so will need some line breaks once i have completed the latter.

I am pretty new to linux, iv been on a few courses but that is it. Any help would be much appreciated!

So, to sum up...

take the attached as input
invoke a script
get an xml file from the script as output

Apologies for not including code, i tired using the tags but was having problems posting.

Many Thanks
 
Old 10-22-2010, 06:46 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread

Tags
extract, write, xml


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prompt the user for a file to open, extract the XML and write to another text file. richiep Linux - Newbie 7 10-22-2010 03:34 PM
How to extract too large archive (35 GB) .tar file Bharat Kumar pankaj Linux - Server 10 08-19-2008 07:35 AM
Extract certain text info from text file xmrkite Linux - Software 30 02-26-2008 11:06 AM
How to Extract a .xml.bz2 file? en3r0 Linux - Software 2 02-21-2006 09:46 PM
Splitting A Large Xml File anirudh Programming 7 09-03-2004 04:28 AM


All times are GMT -5. The time now is 09:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration