Solved

log xml files reviewing and formatting

Posted on 2014-07-22
4
305 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
netstat -ano | find "8000" and taskkill /f /pid 2984 3 56
couple of eclipse 5 37
CSV file parsing thru Java 13 31
Is there a simpler dropbox system? 10 22
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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 will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

777 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