Solved

log xml files reviewing and formatting

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

691 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