xml文件似乎没有使用asp.net在Web服务中与其关联的任何样式信息 [英] the xml file does not appear to have any style information associated with it in web service using asp.net

查看:113
本文介绍了xml文件似乎没有使用asp.net在Web服务中与其关联的任何样式信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在VS2010中创建了一个web服务,并在本地主机上运行,​​它以正确的格式显示如下。

 <?  xml    版本  =  1.0    encoding   =  UTF-8  >  
< span class =code-keyword>< string xmlns = http://tempuri.org/ > 你好吗,Mariappan Ganapathy < / string >





但是在其他机器中显示为

xml文件似乎没有与之关联的任何样式信息

-------------------------------------------- ----------------------------------------

<字符串>你好吗Mariappan Ganapathy





谢谢&问候,

G Mariappan

解决方案

它是关于如何显示或呈现xml的警告,无论是原始xml还是某些样式如表,粗体等。

可以避免在xml中使用xsl。


Refer- 此XML文件似乎没有与之关联的任何样式信息 [ ^ ]。

引用:

消息不是一个错误,而是一个警告,不需要解决,而是被忽略。 XML文档是一种数据结构,但内部不包含任何表示/样式信息。通常,XML文档用于应用程序间通信或作为纯数据结构,然后与其他表示/样式信息一起使用以显示给用户。



XML可以是通过XSLT应用样式就像CSS一样,上面的警告可以根除例如:将xls应用于xml



我们不使用xls为RSS提供xml,Web服务因为它们刚刚用于没有应用样式表的通信,而不是用于在浏览器中呈现给用户。



所以,这里的一切都很好。


非常感谢您的信息,现在我理解了一个概念....

问候,

G. Mariappan

Hi All,

I created a webservice in VS2010 and run in local host it displays in right format is shown below.

<?xml version="1.0" encoding="UTF-8"?>
<string xmlns="http://tempuri.org/">How are you Mariappan Ganapathy</string>



but in other Machine it shows as
the xml file does not appear to have any style information associated with it
------------------------------------------------------------------------------------
<string>How are you Mariappan Ganapathy


Thanks & Regards,
G Mariappan

解决方案

Its a warning associated on how to display or render the xml whether raw xml or with some style like table,bold etc.
It can be avoided using xsl in the xml .


Refer- This XML file does not appear to have any style information associated with it[^].

Quote:

The message isn't an "error" but rather a warning n need not be solved but ignored. An XML document is a data structure but does not contain any presentation/style information internally. Normally an XML document is used in inter-application communication or as a pure data structure that is then used with additional presentation/style information to display to users.


XML can be applied style by XSLT just as HTML by CSS and the above warning can be eradicated An eg: of applying xls to xml


We don't present xml using xls for RSS, Web Services as they are just used for communication without applying stylesheet rather than meant to be presented to user in browser.


So, everything is fine here.


Thanks a lot for your information,now i understand a concept ....
Regards,
G. Mariappan


这篇关于xml文件似乎没有使用asp.net在Web服务中与其关联的任何样式信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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