473,480 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to SORT a large XML file?

3 New Member
I am searching for a way to sort XML data on very large files on a UNIX enviroment. Also, I am very new to XML and UNIX as I am an IBM Mainframe person. Any help or examples would be appreciated.

Thanks
DOLE
Feb 27 '07 #1
6 8894
Varun Gupta
13 New Member
I am searching for a way to sort XML data on very large files on a UNIX enviroment. Also, I am very new to XML and UNIX as I am an IBM Mainframe person. Any help or examples would be appreciated.

Thanks
DOLE
---------------------------------------
Hi

You can store XML files in flat files in unix , extension hardly means in unix becoz unix treates all the devices and folders as files. but then type of file could differ.
To sort file you can use sort command OR for sort on the basis of particular patterns in that file you better can use sed / awk commands.

sed 'script' filename

where script contains..
/pattern/ action
here /pattern/ which you want to search for sorting and
action is ..what ever ou want to perform on the file. (as you want sorting as an action on the pattern.)
Mar 3 '07 #2
ghostdog74
511 Recognized Expert Contributor
I am searching for a way to sort XML data on very large files on a UNIX enviroment. Also, I am very new to XML and UNIX as I am an IBM Mainframe person. Any help or examples would be appreciated.

Thanks
DOLE
For XML manipulation, you can use powerful languages such as Perl/Python that comes with XML parsers that makes parsing XML easy. I am sure you have these tools available on your machine.
eg Perl XML parser . If not, sed/awk and the likes of Unix tools can also be used, albeit a bit tedious.
Mar 3 '07 #3
davidf2007
1 New Member
CoSort for Unix, Version 9, now sorts (and converts to/from) large, flat XML files, among other mainframe (index) and sequential (csv, ldif, etc.) file formats. CoSort also has JCL sort parm conversion tools for MVS and VSE migrations.

Please see
May 17 '07 #4
Motoma
3,237 Recognized Expert Specialist
Regular expressions are always a solid way to go.
May 18 '07 #5
ghostdog74
511 Recognized Expert Contributor
regexp are powerful, but it also depends. if the code is full of regexp, and if something breaks, they make it difficult for administrator/code maintainer to debug and troubleshoot.
May 19 '07 #6
CoSort 9.1.3 also runs on Windows for large, flat XML file sorts.
Nov 12 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
3195
by: One's Too Many | last post by:
Ran into a strange problem today: 8.1.7 on AIX 4.3.3 Database and applications had been working fine for two years and all of a sudden a couple of regularly-run queries are now no longer...
40
4218
by: Elijah Bailey | last post by:
I want to sort a set of records using STL's sort() function, but dont see an easy way to do it. I have a char *data; which has size mn bytes where m is size of the record and n is the...
12
2897
by: Eva | last post by:
Hi, I try to implement quick sort. I sort vectors by their first value. 10 2 3 4 9 3 5 6 10 4 5 6 must be 9 3 5 6 10 2 3 4 10 4 5 6 The prog works great on maybe 500 vectors, but I have an...
20
4019
by: Xah Lee | last post by:
Sort a List Xah Lee, 200510 In this page, we show how to sort a list in Python & Perl and also discuss some math of sort. To sort a list in Python, use the “sort” method. For example: ...
10
3475
by: Frank | last post by:
I have a text file, one word per line. I want to arrange the lines alphabetically so I opened it into MS Word and asked Word to sort it. Word said that the list was too big for it. I figure I'll...
10
5570
by: Woody Ling | last post by:
In 32 bits DB2 environment, is it meaningful to set sheapthres larger than 256MB for the following case.. 1. Intra-parallel is ON 2. Intra-parallel is OFF
1
3630
by: ShaveDave27 | last post by:
Hi, I've created a Person Class with a comparable interface. And i've created an ArrayList People with varaibles from the person class in - First_name, Surname, Month(Birthday), Day(Birthday). Now...
12
2552
by: ShaveDave27 | last post by:
HI, I've created a Comparable interface class Person. Which has variables First_name, surname, month(Of birth), day(Of birth) , and birthday(which i have created from month and day). I have a...
3
3188
by: dotyet | last post by:
Hello Everyone, I have a mixed workload DB2 UDB 8.2 FP 14 Windows x64 database. The database performs as per the expectations. I have just one small question. The sort related parameters are...
0
7059
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6758
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5362
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
4499
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3003
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.