Extraneous characters (LF and Spaces) in XML Output
Last post Dec 02, 2005 08:20 PM by Anonymous
Jun 24, 2004 09:23 PM|Anonymous|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.....
XML output target
Jun 24, 2004 11:54 PM|Anonymous|LINK
Jun 25, 2004 12:31 AM|Anonymous|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)
Jun 25, 2004 01:07 PM|Anonymous|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
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
Dec 02, 2005 08:20 PM|Anonymous|LINK