473,516 Members | 3,488 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML Formatting/Sorting Utility

Hi,

I'm trying to locate a utility that can process an XML document as
follows:

1. Pretty print with nice readable indentation.
2. Sort elements that don't have a required ordering so they will
always appear in a fixed order.

I need to invoke this from the command-line on a windows system as
part of a batch process. The files it will be operating on may be
very large, so the faster the better.

Basically we just need output that is readable and guarantees the
elements are in the same order each time. The results are doing to be
"diff'ed" against baseline files as part of a regression testing
framework. Since some XML elements can swap positions it's causing
problems at the moment.

If anyone has any suggestions, they would be greatly appreciated. :)

Thanks,
Mark

--
Mark Lookabaugh
mlookabaugh (at) cox.net
USS Brewton FF-1086 Home Page
http://www.ussbrewton.com
Jul 20 '05 #1
1 4753
See the XML Diff tool on http://www.gotdotnet.com/team/xmltools/. This can
operate on a stream input (therefore performs well on very large files). See
also my ppxml tool (xml pretty printer) in the User Samples. Email me if yo
uneed help putting these together in a command line utility (My email is in
the readme for the ppxml tool)..

"Mark Lookabaugh" <mlookabaugh@NO_ADS.cox.net> wrote in message
news:3f**************@news.central.cox.net...
Hi,

I'm trying to locate a utility that can process an XML document as
follows:

1. Pretty print with nice readable indentation.
2. Sort elements that don't have a required ordering so they will
always appear in a fixed order.

I need to invoke this from the command-line on a windows system as
part of a batch process. The files it will be operating on may be
very large, so the faster the better.

Basically we just need output that is readable and guarantees the
elements are in the same order each time. The results are doing to be
"diff'ed" against baseline files as part of a regression testing
framework. Since some XML elements can swap positions it's causing
problems at the moment.

If anyone has any suggestions, they would be greatly appreciated. :)

Thanks,
Mark

--
Mark Lookabaugh
mlookabaugh (at) cox.net
USS Brewton FF-1086 Home Page
http://www.ussbrewton.com

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1626
by: Help! | last post by:
Does any one knows out of the top of their heads if Windows has a command line or any numerical sorting utility -not alphabetical. I found some Java script that can do it,but want to make sure I am not reinventing the wheel.
30
10182
by: just say NO to PDF | last post by:
Here's the scoop: Does anyone remember the UNIX utility "pretty" for formatting C code? What I'm looking for is a utility that will do two things: 1) Format the HTML code itself to make it more readable (indentation, line breaks, etc.) 2) Optimize HTML to remove empty and redundant tags Reason: Have you ever seen what kind of a mess...
163
14485
by: Shiperton Henethe | last post by:
Hi Know any good utilities to help me strip out the tags that Microsoft Excel 2002 leaved behind when you try and export an HTML format file? This is driving me NUTS. And really makes me hate microsoft with a passion. I literally just want "compact HTML" - ie just the data,
3
2714
by: ahaque38 | last post by:
Hello. Using A2K SP3, I am having the following problem with a report using "Sorting and Grouping". I have recently added a grouping in the reports for "Category2<>'CONTRACTS'". I have reports at the plan (overall totals), department and division levels which have sorting and grouping implemented with this new
8
3489
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At the moment the printed output is usually going to Word. It's turning into an unholy mess, because I'm having to prepare umpteen different Word...
5
8944
by: Andrew Chanter | last post by:
Does anyone know a way you can use conditional formatting to create a banded style view as is commonly seen on the internet. (In othe words the first record appears on a gray background, the 2nd on white, the third on gray etc etc.) I could write an expression based on the odd/even status of the primary key but this wont work when sorting...
7
1657
by: christery | last post by:
Anyone got a clue to why ther is a T between date and time in the "formatted for sorting" or whatewer they call it, and a Z at the end after seconds- got it fixed for my cobol programmer by formatting it with yyyy ... aso, made the mistake with mm and MM but got it befre someone saw) but really think its strange, excel dosent like that format...
0
1183
by: Gordon Burditt | last post by:
>Given a text file as input, sort the lines and store in the specified If this is not homework, consider using the UNIX sort utility. There are ports of this program to Windows. The source code to the utility is available with various distributions of FreeBSD, Linux, OpenBSD, etc. Oh, and the versions of the utility I have seen do not...
0
7273
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7136
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5712
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4769
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3252
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1620
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 we have to send another system
1
823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
487
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.