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

chong4r 2013-02-06 03:42:43
请问这个是什么原因呀?
见Html
<%@ 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">
<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/>
<UnparsedAddress/>
</Address>
<DateReported/>
<MoveInDate/>
<MoveOutDate/>
<Phone>
<AreaCode/>
<Number/>
<Extension/>
<UnparsedPhone/>
</Phone>
</Residence>
<Residence status="unknown" type="previous">
<Address>
<Number>1234</Number>
<ApartmentNumber/>
<POBox/>
<Route/>
<Prefix>SW</Prefix>
<StreetName>SQUIRREL</StreetName>
<StreetType>AV</StreetType>
<Suffix/>
<City>GRAND RAPIDS</City>
<State>MI</State>
<ZipCode>49509</ZipCode>
<County/>
<Country/>
<UnparsedAddress/>
</Address>
<DateReported/>
<MoveInDate/>
<MoveOutDate/>
<Phone>
<AreaCode/>
<Number/>
<Extension/>
<UnparsedPhone/>
</Phone>
</Residence>
<Residence status="unknown" type="previous">
<Address>
<Number>6425</Number>
<ApartmentNumber/>
<POBox/>
<Route/>
<Prefix/>
<StreetName>STATE RT 13</StreetName>
<StreetType/>
<Suffix/>
<City>SPRINGFIELD</City>
<State>IL</State>
<ZipCode>62260</ZipCode>
<County/>
<Country/>
<UnparsedAddress/>
</Address>
<DateReported/>
<MoveInDate/>
<MoveOutDate/>
<Phone>
<AreaCode/>
<Number/>
<Extension/>
<UnparsedPhone/>
</Phone>
</Residence>
<Employment type="current">
<EmployerName>FEDERAL EXPRESS</EmployerName>
<Occupation>MECHANIC</Occupation>
<DateHired/>
<DateSeparated/>
<DateReported>20030201</DateReported>
<DateVerified/>
<Income/>
</Employment>
<Employment type="previous">
<EmployerName>A B C INC</EmployerName>
<Occupation>GROWER</Occupation>
<DateHired/>
<DateSeparated/>
<DateReported>19951001</DateReported>
<DateVerified/>
<Income/>
</Employment>
<PersonalInformation>
<Age/>
<DateOfBirth>19701101</DateOfBirth>
<Gender/>
<MaritalStatus/>
<SSN>111111111</SSN>
</PersonalInformation>
<Phone>
<AreaCode/>
<Number/>
<Extension/>
<UnparsedPhone/>
</Phone>
<Credit>
<ConsumerStatement/>
<CreditScore>
<ScoreModel>00950</ScoreModel>
<Score>683</Score>
<Reason>005</Reason>
<Reason>010</Reason>
<Reason>012</Reason>
<Reason>011</Reason>
<Reason>011</Reason>
</CreditScore>
<Collections>
<Collection>
<AccountNumber>1234567</AccountNumber>
<AccountType>O</AccountType>
<CollectionAgency>CBCS</CollectionAgency>
<Comment type="other">AA</Comment>
<Creditor>MEDICAL</Creditor>
<CurrentBalance>000000087</CurrentBalance>
<DateClosed/>
<DateOpened>19990610</DateOpened>
<DatePaid/>
<DateReported/>
<DateVerified>20040430</DateVerified>
<ECOA>I</ECOA>
<MannerOfPayment>9B</MannerOfPayment>
<OriginalBalance>000000087</OriginalBalance>
<Status/>
</Collection>
</Collections>
<Inquiries>
<Inquiry>
<Inquirer>CU ONE</Inquirer>
<InquiryDate>20040616</InquiryDate>
<InquiryType>C</InquiryType>
<IndustryCode>Q</IndustryCode>
<SubscriberID>00005220</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>FLEET NAT</Inquirer>
<InquiryDate>20040416</InquiryDate>
<InquiryType>I</InquiryType>
<IndustryCode>B</IndustryCode>
<SubscriberID>00700045</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>FUSA</Inquirer>
<InquiryDate>20031023</InquiryDate>
<InquiryType>I</InquiryType>
<IndustryCode>B</IndustryCode>
<SubscriberID>00006675</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>NCB/CARD SER</Inquirer>
<InquiryDate>20030521</InquiryDate>
<InquiryType>I</InquiryType>
<IndustryCode>N</IndustryCode>
<SubscriberID>01253242</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>CU ONE</Inquirer>
<InquiryDate>20030306</InquiryDate>
<InquiryType>I</InquiryType>
<IndustryCode>Q</IndustryCode>
<SubscriberID>00200834</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>CITI</Inquirer>
<InquiryDate>20030304</InquiryDate>
<InquiryType>I</InquiryType>
<IndustryCode>N</IndustryCode>
<SubscriberID>00012830</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>FIFTH THIRD</Inquirer>
<InquiryDate>20030206</InquiryDate>
<InquiryType>C</InquiryType>
<IndustryCode>B</IndustryCode>
<SubscriberID>03759888</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>CU ONE</Inquirer>
<InquiryDate>20030203</InquiryDate>
<InquiryType>I</InquiryType>
<IndustryCode>Q</IndustryCode>
<SubscriberID>00200742</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>PFEIFFER LIN</Inquirer>
<InquiryDate>20030203</InquiryDate>
<InquiryType>I</InquiryType>
<IndustryCode>A</IndustryCode>
<SubscriberID>00010020</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>FRANKLIN MTG</Inquirer>
<InquiryDate>20021224</InquiryDate>
<InquiryType>I</InquiryType>
<IndustryCode>R</IndustryCode>
<SubscriberID>00015342</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>INFO1/LANDAM</Inquirer>
<InquiryDate>20021205</InquiryDate>
<InquiryType>P</InquiryType>
<IndustryCode>Q</IndustryCode>
<SubscriberID>00241047</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>MBNA</Inquirer>
<InquiryDate>20020904</InquiryDate>
<InquiryType>I</InquiryType>
<IndustryCode>B</IndustryCode>
<SubscriberID>00008717</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
<Inquiry>
<Inquirer>KOHLS DPT ST</Inquirer>
<InquiryDate>20020712</InquiryDate>
<InquiryType>I</InquiryType>
<IndustryCode>D</IndustryCode>
<SubscriberID>00000514</SubscriberID>
<Loan>
<LoanAmount/>
<LoanTerms/>
<LoanType/>
</Loan>
</Inquiry>
</Inquiries>
<PublicRecords>
<PublicRecord>
<Assets/>
<Attorney/>
<Comment type="consumer"/>
<DateFiled>20061019</DateFiled>
<DatePaid/>
<DateReported>20061019</DateReported>
<DateVerified/>
<Defendant/>
<DocketNumber>112233455</DocketNumber>
<Liabilities>00029999</Liabilities>
<Plaintiff>VENDETTA AUTO</Plaintiff>
<RecordType>GN</RecordType>
<Status/>
<Court>
<CourtName>COURT NUMBER ONE</CourtName>
<CourtType>2</CourtType>
<City/>
<State/>
<SubscriberID/>
</Court>
</PublicRecord>
<PublicRecord>
<Assets/>
<Attorney/>
<Comment type="consumer"/>
<DateFiled>20001019</DateFiled>
<DatePaid/>
<DateReported>20001019</DateReported>
<DateVerified/>
<Defendant/>
<DocketNumber>112233455</DocketNumber>
<Liabilities>00015760</Liabilities>
<Plaintiff>VENDETTA AUTO</Plaintiff>
<RecordType>1D</RecordType>
<Status/>
<Court>
<CourtName>COURT NUMBER ONE</CourtName>
<CourtType>2</CourtType>
<City/>
<State/>
<SubscriberID/>
</Court>
</PublicRecord>
</PublicRecords>
<Trades>
.....................
...全文
212 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
chong4r 2013-02-06
  • 打赏
  • 举报
回复
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 /> 
............................
chong4r 2013-02-06
  • 打赏
  • 举报
回复
是的,我就是要这样的效果,需要的就是要有XML内容 的网页 我用了IE8,IE7,它们都可以显示,但IE9不可以
Ho_Johnson 2013-02-06
  • 打赏
  • 举报
回复
楼主 是要写网页还是要写XML 如果要写XML 要一个记事本写好了,保存成XML 后缀的文件就可以了 你这个是 XML内容 的网页,不是XML文件,当然不会 显示出 XML ,只是网页的内容是XML形式的字符串,你要理解懂
chong4r 2013-02-06
  • 打赏
  • 举报
回复
想用Aspx界面,建个XML页面 <!DOCTYPE Response SYSTEM "https://www.tciscreener.com/webApp/XMLCredit/CreditResponse.dtd"> 这句是为了从远程服务器获取另外一个XML信息
我是小李 2013-02-06
  • 打赏
  • 举报
回复
<%@ 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的页面啊。 把这三段都写上就什么都不是了。

62,242

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧