XML解析錯(cuò)誤:未組織好 的解決辦法_Xml教程
推薦:不同瀏覽器對(duì)XML的解析是不同的下面這段代碼在火狐能夠解析,在谷歌和IE就不行了,應(yīng)該如何來修改代碼?如何解析XML呢
主要問題:XML文件完整,在liunx系統(tǒng)下可正常顯示,但是windows系統(tǒng)提示出錯(cuò),I use iis to develope a new .net website. I promise the code is right, but most pages running in Firefox 2.0 reported this error:
復(fù)制代碼 代碼如下:www.hl5o.cn
XML解析錯(cuò)誤:未組織好
位置:http://localhost/Lanxum/dTeam.aspx
行:1,列:2
< %@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="dTeam, App_Web_hkuu-y0n" title="Untitled Page" theme="iAffron" stylesheettheme="iAffron" %> -^
And in IE, error reported as below:
復(fù)制代碼 代碼如下:www.hl5o.cn
無法顯示 XML 頁。字符開頭。
處理資源 ‘http://localhost/Lanxum/default.aspx' 時(shí)出錯(cuò)。
第 1 行,位置: 2
The reason is that I install visual studio first(together with .net framework 2.0) and then install IIS. It made .net FK didn't register in IIS. Just run this command with DOS:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
Once if you have install .net FK and IIS correctly, this sentence will follow:
開始安裝 ASP.NET 。
…………………………………..
ASP.NET 安裝完畢
Then refresh the page, you will find that the problem is fixed.
分享:怎樣打開XML文件?xml文件如何打開?XML是Extensible Markup Language的簡(jiǎn)寫,一種擴(kuò)展性標(biāo)識(shí)語言,用于標(biāo)記電子文件使其具有結(jié)構(gòu)性的標(biāo)記語言,可以用來標(biāo)記數(shù)據(jù)、定義數(shù)據(jù)類型,是一種允許用戶對(duì)自己的標(biāo)記語言進(jìn)行定義的源語言
相關(guān)Xml教程:
- xml創(chuàng)建節(jié)點(diǎn)(根節(jié)點(diǎn)、子節(jié)點(diǎn))
- WML開發(fā)教程之 WAP網(wǎng)站服務(wù)器配置方法
- WMLScript的語法基礎(chǔ)
- 收集的WML Script標(biāo)準(zhǔn)函數(shù)庫(kù)
- WML教程之文本框控件Input
- 無線標(biāo)記語言(WML)基礎(chǔ)之WMLScript 基礎(chǔ)
- xml文件的結(jié)構(gòu)解讀
- 關(guān)于XSL - XSL教程
- 選擇模式 - XSL教程 - 2
- XPath入門 - XSL教程 - 3
- 匹配模式 - XSL教程 - 4
- 測(cè)試模式 - XSL教程 - 5
- 相關(guān)鏈接:
- 教程說明:
Xml教程-XML解析錯(cuò)誤:未組織好 的解決辦法
。