Solved

log xml files reviewing and formatting

Posted on 2014-07-22
4
306 Views
Last Modified: 2014-08-05
Hi,

My production logs has huge xml data within say applog.txt file. How do i format it and view it properly to analyze better.  Copying pasting to notepad++ and then renaming as xyz.xml and then formatting, debugging for individual field of the xpath taking long time. please advise
0
Comment
Question by:gudii9
  • 2
  • 2
4 Comments
 
LVL 8

Accepted Solution

by:
Surrano earned 500 total points
ID: 40213678
If I understand properly there are mundane text log entries in the applog.txt and some of those entries contain xml snippets. I.e. applog.txt itself is not a proper xml file itself, right?

It would be nice to know what you'd like to parse and where. Assuming unix it's not impossible that we can forge some kind of simple filtering/formatting script as a solution.
0
 
LVL 7

Author Comment

by:gudii9
ID: 40218034
i am using lot of Notepad++ and Textpad to copy paste the unstructured XMLs. I wonder if there is a way i select all text and select like XML Tools and choose 'format xml' etc as given in below link

http://geek.sylvainw.com/2010/03/28/using-notepad-to-quickly-format-xml/

I tried to add those DLL files and all and it did not work. Please advise
0
 
LVL 8

Expert Comment

by:Surrano
ID: 40228554
So basically you need a tool to pretty print (indent, linebreak etc) XML parts of an otherwise ordinary text file?
And this tool must come in the form of a notepad++ plugin?
0
 
LVL 7

Author Comment

by:gudii9
ID: 40236760
correct. I saw under language there is xml option which seems fine. but I wonder if there is any good plugin as below plugin is not working
http://geek.sylvainw.com/2010/03/28/using-notepad-to-quickly-format-xml/
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question