Prompt the user for a file to open, extract the XML and write to another text file.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Prompt the user for a file to open, extract the XML and write to another text file.
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.
You're the one that is breaking the rules with 3 thread about the same subject and asking unfair extra attention from all the others on this board. To remedy that I took 2 of the 3 threads from the zero reply list (which keeps pushing "old" zero reply threads to the top).
If you don't like the way you are treated by me you can:
1) Obey by the LQ rules and don't get bothered ever again by me, or
2) Complain to one of the mods or Jeremy about me.
That is not abuse just something i noticed. He has littered the system as much as me! I apologised for doing it in another thread yet he found it necessary to comment on all my others. I am new to this and realised i posted something in the wrong area. Not getting snotty at all, not being abusive either. I was just looking for some help, not some ponsey remark in each of my threads! sorry if iv offended!
And now that this is settled (yes, you, Richie, were breaking the
rules; pointing that out repeatedly is OK from a mods perspective)
can we leave that discussion be and return to the subject? This is,
after all, the original of the series. The dupes are reported for
closure, and that's enough.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.