This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > May 2004 > carriage returns and line feeds
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
carriage returns and line feeds
|
|
| chrish 2004-05-21, 7:31 pm |
| Hello:
I am a vb programmer dabbling with XML for the first time. I mocked up an XML file for a client in notepad and I formatted it with carriage returns and tabs. When it was tested, it worked perfectly. Now, I am creating the real file for a test with MSXM
L3.0 in VB and the file is not properly formated. It has all the information, but no carriage returns and line feeds. This file bombs in the client's process! I manually formatted the file and now it works. How do I get the MSXML3.0 tool to put in the
CR and LF please?
| |
| Neil Smith [MVP Digital Media] 2004-05-21, 7:31 pm |
| Carriage returns and line feeds are not significant in XML (that is
they have no predefined meaning other than to prettyprint the XML for
human readers). The fact that it bombs for the client suggests
something else is wrong with the file, or that something is wrong with
his XML reader.
What environment is your client using ? Also, could there be stray
characters which are not part of the encoding you specified when
screating the file ? Usually XML files can come as UTF-8 or UTF-16,
other encodings require an XML declaration specifying the character
encoding in use eg ISO-8859-1.
Presumably this 'bombing' you mentioned, there's an error message
attached when it happens - what is it ?
Cheers - Neil
On Fri, 21 May 2004 08:31:05 -0700, chrish
<anonymous@discussions.microsoft.com> wrote:
>Hello:
>
>I am a vb programmer dabbling with XML for the first time. I mocked up an XML file for a client in notepad and I formatted it with carriage returns and tabs. When it was tested, it worked perfectly. Now, I am creating the real file for a test with MSX
ML3.0 in VB and the file is not properly formated. It has all the information, but no carriage returns and line feeds. This file bombs in the client's process! I manually formatted the file and now it works. How do I get the MSXML3.0 tool to put in th
e CR and LF please?
| |
| VBDude 2004-05-22, 4:28 am |
| I asume you are reading the XML yourself instead of using a DOM doc object.
If so then don't (been there, it is a dead-end street)
If your need an example, reply to me directly
"chrish" <anonymous@discussions.microsoft.com> wrote in message
news:DEF993A0-C061-4587-9578-FD39B985B961@microsoft.com...
> Hello:
>
> I am a vb programmer dabbling with XML for the first time. I mocked up an
xml file for a client in notepad and I formatted it with carriage returns
and tabs. When it was tested, it worked perfectly. Now, I am creating the
real file for a test with MSXML3.0 in VB and the file is not properly
formated. It has all the information, but no carriage returns and line
feeds. This file bombs in the client's process! I manually formatted the
file and now it works. How do I get the MSXML3.0 tool to put in the CR and
LF please?
| |
| Dave Hall 2004-05-31, 11:16 pm |
| In .NET, the System.Xml.XmlTextWriter has a Formatting property that can be
set to Formatting.Indented to produce crlf after each closing tag. I don't
know of any way to do it with MSXML or with the System.Xml.XmlDocument class
in .NET. Does anyone else have any ideas?
Dave
"chrish" <anonymous@discussions.microsoft.com> wrote in message
news:DEF993A0-C061-4587-9578-FD39B985B961@microsoft.com...
> Hello:
>
> I am a vb programmer dabbling with XML for the first time. I mocked up an
xml file for a client in notepad and I formatted it with carriage returns
and tabs. When it was tested, it worked perfectly. Now, I am creating the
real file for a test with MSXML3.0 in VB and the file is not properly
formated. It has all the information, but no carriage returns and line
feeds. This file bombs in the client's process! I manually formatted the
file and now it works. How do I get the MSXML3.0 tool to put in the CR and
LF please?
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|