![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||