I am using LogParser 2.1 and sending the output to XML so I can review the results. Unfortunately, it appears as though LogParser (or perhaps the underlying log) is generating linefeed character (0x0A) and two spaces after the contents of each output.
I have conducted testing on this and the CSV output does not generate these characters, so I think it must be something to do with the XML output generation.
Same thing here, but why is it unfortunate? I would guess it's for human readability. Shouldn't matter if your using an xml parser or xsl to format the result.
Doesn't select any items unless I forcefully remove the linefeed characters from the output. I suspect that trainling whitespace is being removed in one context, however it is being included in the other.
Perhaps I am having a different problem, however everything I have tried to use to query the xml is doing the same thing. (I am using MSXML 4.0 DOM Parser in Delphi)
There's a "compact" switch in the xml output format that removes the CRLF's and spaces...
...this said, 1) the new line characters should actually be CR+LF (0x0d 0x0a) and not 0x0a alone...are you piping the xml somewhere? 2) I can't see how the MSXML would choke on these extra characters, unless the problem really lies in how the CR+LF became
LF alone....
------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Anonymous
6623 Posts
Extraneous characters (LF and Spaces) in XML Output
Jun 24, 2004 08:23 PM|LINK
I am using LogParser 2.1 and sending the output to XML so I can review the results. Unfortunately, it appears as though LogParser (or perhaps the underlying log) is generating linefeed character (0x0A) and two spaces after the contents of each output.
I have conducted testing on this and the CSV output does not generate these characters, so I think it must be something to do with the XML output generation.
This is what the output data looks like.....
...<ROW>\0x10\0x20\0x20<EventLog>\0x10\0x20\0x20application\0x10\0x20\0x20</EventLog>...
XML output target
Anonymous
6623 Posts
Re: Extraneous characters (LF and Spaces) in XML Output
Jun 24, 2004 10:54 PM|LINK
XML output target
Anonymous
6623 Posts
Re: Extraneous characters (LF and Spaces) in XML Output
Jun 24, 2004 11:31 PM|LINK
Itis unfortunate, because if I want to use a program to XPath query nodes in the list, it doesn't seem to find the specific nodes.....
For example, the xsl:
Doesn't select any items unless I forcefully remove the linefeed characters from the output. I suspect that trainling whitespace is being removed in one context, however it is being included in the other.
Perhaps I am having a different problem, however everything I have tried to use to query the xml is doing the same thing. (I am using MSXML 4.0 DOM Parser in Delphi)
XML output target
Anonymous
6623 Posts
Re: Extraneous characters (LF and Spaces) in XML Output
Jun 25, 2004 12:07 PM|LINK
There's a "compact" switch in the xml output format that removes the CRLF's and spaces...
...this said, 1) the new line characters should actually be CR+LF (0x0d 0x0a) and not 0x0a alone...are you piping the xml somewhere? 2) I can't see how the MSXML would choke on these extra characters, unless the problem really lies in how the CR+LF became LF alone....
------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
XML output target
Anonymous
6623 Posts
Re: Extraneous characters (LF and Spaces) in XML Output
Dec 02, 2005 07:20 PM|LINK
XML output target