当前位置:编程学习 > C#/ASP.NET >>

用Aspx文件,写的XML文件,在IE9无法显示

--------------------编程问答-------------------- <%@ Page Language="C#" AutoEventWireup="True" CodeBehind="TciEmulator.aspx.cs" Inherits="TestReport.TciEmulator" ContentType="text/xml" ValidateRequest="False" Trace="False" EnableSessionState="False" %> 
<?xml version="1.0" standalone="no"?>
<!DOCTYPE Response SYSTEM "https://www.tciscreener.com/webApp/XMLCredit/CreditResponse.dtd">

看到了这三段代码,请问下LZ你这是想建个aspx的页面啊还是XML的页面啊还是xhmtl的页面啊。
把这三段都写上就什么都不是了。
--------------------编程问答-------------------- 想用Aspx界面,建个XML页面

<!DOCTYPE Response SYSTEM "https://www.tciscreener.com/webApp/XMLCredit/CreditResponse.dtd">

这句是为了从远程服务器获取另外一个XML信息

--------------------编程问答-------------------- 楼主 是要写网页还是要写XML 如果要写XML 要一个记事本写好了,保存成XML 后缀的文件就可以了

你这个是 XML内容 的网页,不是XML文件,当然不会 显示出 XML ,只是网页的内容是XML形式的字符串,你要理解懂
--------------------编程问答-------------------- 是的,我就是要这样的效果,需要的就是要有XML内容 的网页
我用了IE8,IE7,它们都可以显示,但IE9不可以 --------------------编程问答-------------------- IE8模式,显示内容如下:
 <?xml version="1.0" standalone="no" ?> 
  <!DOCTYPE Response (View Source for full doctype...)> 
- <Response product="1.0" reference="-1019839703">
- <Report id="135770">
- <Header>
  <Bureau code="tu">Transunion</Bureau> 
  <Product>Credit Report</Product> 
  <DatePulled>20040616</DatePulled> 
  <TimePulled>085208</TimePulled> 
  <NoHit>false</NoHit> 
  </Header>
- <Subject type="primary">
- <Name type="primary">
  <Prefix /> 
  <FirstName>JOHN</FirstName> 
  <MiddleName>R</MiddleName> 
  <LastName>DOE</LastName> 
  <Suffix>JR</Suffix> 
  <FullName>JOHN R DOE JR</FullName> 
  </Name>
- <Residence status="unknown" type="current">
- <Address>
  <Number>1212</Number> 
  <ApartmentNumber /> 
  <POBox /> 
  <Route /> 
  <Prefix /> 
  <StreetName>CONTINENTAL</StreetName> 
  <StreetType>AV</StreetType> 
  <Suffix /> 
  <City>AUBURN HILLS</City> 
  <State>MI</State> 
  <ZipCode>48326</ZipCode> 
  <County /> 
  <Country /> 
............................
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,