Solved

log xml files reviewing and formatting

Posted on 2014-07-22
4
308 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
check java version using powershell 13 306
null output 3 43
Problem to Alipay 10 72
Bot application - advice 3 64
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…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

730 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