Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Output XML to Single Line Log File using VBScript

Reply
 
Old 05-19-2009   #1 (permalink)
Craig


 
 

Output XML to Single Line Log File using VBScript

Hi all,

I have an application log file that is written in XML; see below;

<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2009-05-07T10:32:44.815+01:00</TSTZ_ORIGINATING>
<COMPONENT_ID>aia</COMPONENT_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>TEST001</HOST_ID>
<HOST_NWADDR>10.0.0.5</HOST_NWADDR>
<MODULE_ID>logging.error</MODULE_ID>
<THREAD_ID>35</THREAD_ID>
<USER_ID>SYSTEM</USER_ID>
</HEADER>
<CORRELATION_DATA>

<EXEC_CONTEXT_ID><UNIQUE_ID>10.3.5.52:38667:1241688764815:1549</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>faultName:
{{http://schemas.oracle.com/bpel/extension}bindingFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{code=<code>null</code>
,summary=<summary>file:/D:/Oracle/Fusion/SOA_Suite/bpel/domains/default/tmp/.bpel_SyncInvAdjustRIBProvABCSImpl_1.6_6b98c377f00ffa578f89b530914c1a73.tmp/MainframeWebsphereMQService.wsdl
[ Enqueue_ptt::Enqueue(InvAdjustType) ] - WSIF JCA Execute of operation
'Enqueue' failed due to: [MessageProduce] Error while Translation.
[MessageProduce] Error while Translation. [Caused by: Element not completed:
'InvAdjustType']
; nested exception is:
ORABPEL-13040
[MessageProduce] Error while Translation.
[MessageProduce] Error while Translation. [Caused by: Element not completed:
'InvAdjustType']
Correct the reported problem if possible. Contact oracle support if error is
not fixable.
</summary>
,detail=<detail>null</detail>
}}
</MSG_TEXT>
</PAYLOAD>
</MESSAGE>


This is just 1 entry in the log file, while can be of many.

To make the log file easier to monitor i would like to export the file to a
text file with each full message appearing as 1 line

Could anyone please help.

--
Many Thanks for your help

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Returning a line from an input file using vbscript VB Script
Send command line via WMI - Pipe output to text file on remote mac PowerShell
Re: Send command line via WMI - Pipe output to text file on remote PowerShell
New line added to output file unexpectedly PowerShell
output group membership on a single line PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46