收到xml的ASP格式 [英] ASP format of received xml

查看:49
本文介绍了收到xml的ASP格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个客户端使用asp页面从我的公司接收xml文件。

当客户端通过浏览器查看xml时,它的格式正确

即缩进等。

但是,客户端也使用wordpad查看xml,当使用wordpad

时xml出现在一行上。

是否可以更改asp页面的设置,以便正确格式化

xml?

提前付款

I have a client who is using an asp page to receive xml files from my company.
When the client views the xml through a browser it is formatted correctly
i.e. indented properly etc.
However, the client also uses wordpad to view the xml and when using wordpad
the xml appears on one line.
Is it possible to change the settings of the asp page so that it formats the
xml correctly?
Thanks in advance

推荐答案

" aoifey1234" < ao ******** @ discussion.microsoft.com写在留言中

新闻:1E ******************** ************** @ microsof t.com ...
"aoifey1234" <ao********@discussions.microsoft.comwrote in message
news:1E**********************************@microsof t.com...

>我有一个使用asp页面的客户端从我的
公司接收xml文件。

当客户端通过浏览器查看xml时,它的格式正确

即正确缩进等。

但是,客户端也使用wordpad来查看xml,当使用

wordpad

时,xml出现在一行上。

是否可以更改asp页面的设置,以便正确格式化

xml?
>I have a client who is using an asp page to receive xml files from my
company.
When the client views the xml through a browser it is formatted correctly
i.e. indented properly etc.
However, the client also uses wordpad to view the xml and when using
wordpad
the xml appears on one line.
Is it possible to change the settings of the asp page so that it formats
the
xml correctly?



但不是。问他们为什么要在Wordpad中读取XML文件。


如果他们必须以某种形式的编辑器打开XML文件。让他们使用一些理解并可以格式化XML的免费编辑器。

例如Microsofts Web Developer Express。


- -

Anthony Jones - MVP ASP / ASP.NET

It is but don''t. Ask them why they want to read the XML file in Wordpad.

If they must open the XML file in some form of editor. Get them to use some
free editor that understands and can format XML.
For example Microsofts Web Developer Express.

--
Anthony Jones - MVP ASP/ASP.NET


感谢您的回复。不幸的是,他们不愿意改变

改变他们使用的编辑器的想法。 xml文件曾经发送给第三个

方,他们也使用了asp页面来接收xml。然后他们将

xml文件转发给我的客户端。我们现在已经删除了第三方,我们直接向客户发送了



由于这次转换,xml不再通过wordpad正确显示。

我们调查了这方面的所有事项,唯一可能的另外一个解决方案就是他们这边的asp设置。

我不太了解这片区域。它可能不是最明智的

解决方案,但有人可以解释如何更改

asp页面的设置,以便正确格式化xml吗?

非常感谢。

" Anthony Jones"写道:
Thank you for the response. Unfortunately they are not open to the idea of
changing which editor they use. The xml files used to be sent to a third
party who also used an asp page to receive the xml. They then forwarded the
xml file to my client. We have now cut out the third party and we are sending
directly to the client.
Since this changeover the xml no longer displays correctly through wordpad.
We have investigated all matters on this side and the only other possible
solution is the asp settings on their side.
I don''t have much knowledge in this area. It may not be the most advisable
solution but could someone please explain how to change the settings of the
asp page so that it formats the xml correctly?
Many thanks.
"Anthony Jones" wrote:

" aoifey1234" < ao ******** @ discussion.microsoft.com写在留言中

新闻:1E ******************** ************** @ microsof t.com ...
"aoifey1234" <ao********@discussions.microsoft.comwrote in message
news:1E**********************************@microsof t.com...

我有一个客户端使用asp页面接收来自我的

公司的xml文件。

当客户端通过浏览器查看xml时,它的格式正确

即缩进正确等等。 />
但是,客户端也使用wordpad来查看xml,当使用

wordpad

时,xml出现在一行上。

是否可以更改asp页面的设置,以便格式化



xml?
I have a client who is using an asp page to receive xml files from my
company.
When the client views the xml through a browser it is formatted correctly
i.e. indented properly etc.
However, the client also uses wordpad to view the xml and when using
wordpad
the xml appears on one line.
Is it possible to change the settings of the asp page so that it formats
the
xml correctly?



但不是。问他们为什么要在Wordpad中读取XML文件。


如果他们必须以某种形式的编辑器打开XML文件。让他们使用一些理解并可以格式化XML的免费编辑器。

例如Microsofts Web Developer Express。


- -

Anthony Jones - MVP ASP / ASP.NET


It is but don''t. Ask them why they want to read the XML file in Wordpad.

If they must open the XML file in some form of editor. Get them to use some
free editor that understands and can format XML.
For example Microsofts Web Developer Express.

--
Anthony Jones - MVP ASP/ASP.NET


" aoifey1234" < ao ******** @ discussion.microsoft.com写在留言中

新闻:B7 ******************** ************** @ microsof t.com ...
"aoifey1234" <ao********@discussions.microsoft.comwrote in message
news:B7**********************************@microsof t.com...

感谢您的回复。不幸的是,他们不愿意改变

改变他们使用的编辑器的想法。 xml文件曾经发送给第三个

方,他们也使用了asp页面来接收xml。然后他们将

xml文件转发给我的客户。我们现在已经删除了第三方,我们直接向客户发送了



由于这次转换,xml不再正确显示通过

wordpad。

我们调查了这方面的所有事项,唯一可能的其他可能的

解决方案就是他们身边的asp设置。 br />
我对这方面的了解不多。它可能不是最明智的

解决方案但有人可以解释如何更改

asp页面的设置以便格式化xml正确吗?

非常感谢。
Thank you for the response. Unfortunately they are not open to the idea of
changing which editor they use. The xml files used to be sent to a third
party who also used an asp page to receive the xml. They then forwarded
the
xml file to my client. We have now cut out the third party and we are
sending
directly to the client.
Since this changeover the xml no longer displays correctly through
wordpad.
We have investigated all matters on this side and the only other possible
solution is the asp settings on their side.
I don''t have much knowledge in this area. It may not be the most advisable
solution but could someone please explain how to change the settings of
the
asp page so that it formats the xml correctly?
Many thanks.



你不能改变任何设置。您需要更改XML的构建方式

以包含相应的CR,LF和制表符字符序列,以创建一个

格式的XML文件,该文件将按预期显示在写字板中。如果您需要一些帮助,那么您需要发布一段代码片段

,您目前正在使用它来构建XML。


我很惊讶我遇到不可移动的要求的次数

,因为''客户/老板要求它''只是简单的愚蠢。你有没有告诉他们为什么他们______能够在写字板中查看文件?什么是

他们的答案?我怀疑他们正在做出比它需要的更难的工作

。你可以重新定位你的努力,为他们提供一个解决方案,并因此得到一些褐色点,同时避免做一些愚蠢的事情。


-

Anthony Jones - MVP ASP / ASP.NET

You can''t change any settings. You need to change the way the XML is built
to include the appropriate CR, LF and tab character sequences to create a
formatted XML file that will be displayed as they expect in WordPad. If you
want some help with that you''re going to need to post a snippet of the code
you are using to build the XML currently.

I''m surprised by the number of times I come across immovable requirements
because the ''customer/boss demands it'' that are just plain dumb. Have you
asked them why they _must_ be able to view the file in WordPad? What was
their answer? I suspect they are making something harder work than it needs
be. You could redirect your efforts in giving them a solution to that and
thereby scoring some browny points whilst at the same time avoiding doing
something dumb.

--
Anthony Jones - MVP ASP/ASP.NET


这篇关于收到xml的ASP格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆