Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML Formatting/Sorting Utility

Reply
Thread Tools

XML Formatting/Sorting Utility

 
 
Mark Lookabaugh
Guest
Posts: n/a
 
      07-17-2003
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
 
Reply With Quote
 
 
 
 
Chris Lovett
Guest
Posts: n/a
 
      07-17-2003
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:...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
existing utility class to escape/unescape xml NetKev Java 1 03-04-2008 11:39 PM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
Print XML parsing to JspWriter (out) Class org.xml.sax.helpers.NewInstance can not access a member of class javax.xml.parsers.SAXParser with modifiers "protected" Per Magnus L?vold Java 0 11-15-2004 02:27 PM
What XML technologies to learn first for "XML Processing" and "XML Mapping"? Bomb Diggy Java 0 07-28-2004 07:26 AM
Web utility: XML to Table Ariel Dolan XML 0 12-17-2003 01:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57