Categories
Uncategorized

OP.XmlPrettifier

Background

In my recent project I had automatically generated XML log files which were pretty condensed to preserve space. Parsing them with an application is not a problem but sometimes I needed to read them and this cause issues since it was nearly impossible to read it with Notepad++.
There are some online Xml beautifiers but our log files were 100+MB large so it was not practical to use them.
Also the log files were XML fragments and not complete documents so it caused problems with some desktop beautifier applications.
At the end I decided to create my own small console application.

How it works

OP.XmlPrettifier is a .NET 3.5 C# console application. It uses the Xml reader to read the fragmented/complete Xml and then loads fragment by fragment into XmlDocument and uses formatting XmlWriter to output the same XML indented.
When invoked with one parameter it reads the input file and outputs the result to the console. If two parameters are present then it reads the input file and outputs the result to the output file.
I've hosted the application on codeplex and you can find it here: https://xmlprettifier.codeplex.com/

Categories
Uncategorized

Welcome to my blog

Note: I have transferred this blog from my old blog site: http://dcarapic.blogspot.com/ so I am reposting most of the stuff from there

Disclaimer (are we legal or what): English is not my native language so please do not flame (too much) if my sentences are not constructed as they should be.

Now to the real stuff: Hello to anybody who might be reading this (I guess nobody at the time I am writing this, but who knows, I might get a horde of followers in the future :)) I have been programming for some time now, several years as an amateur and several years as a paid "professional". I have started with C++ and moved on to .NET and C# when it reached 1.1. I have always wanted to share my knowledge with the programming community. The primary reason for that is that I have gained a lot of knowledge following various blogs and programming portals and I felt the need to contribute to that community.

I have opened my original blogs some four years ago and I have always pushed back my first blog since I always felt that I am not at that 'level' where my thoughts can help somebody. After all this time I realized that I will probably never be satisfied with me enough so that I can boldly blog about some subject.

So I will just blog and let whoever is reading this decide if what I write is good enough.