XML学习札记--Parser Errors
来源:互联网 发布:windows mib库 编辑:程序博客网 时间:2024/05/22 17:27
当您尝试打开一个XML文档的时候,XML解析器可能会发现文档中存在某些错误,通过访问parseError对象,将返回一些值,如error code,error text,error line等
Example
使用如下代码,load非现成的xml文档或者load一个现成的存在xml语法错误的xml文档,按照 实际情况将会有不同的结果.
<script language="JavaScript" type="text/JavaScript"> document.write("<br>Error Code: ") |
The parseError Properties
Property | Description |
errorCode | Returns a long integer error code |
reason | Returns a string explaining the reason for the error |
line | Returns a long integer representing the line number for the error |
linePos | Returns a long integer representing the line position for the error |
srcText | Returns a string containing the line that caused the error |
url | Returns the url pointing the loaded document |
filePos | Returns a long integer file position of the error |
- XML学习札记--Parser Errors
- XML Parser Errors See Details for more Information XML Parser Error on line 1: Document root ele
- 使用mybatis generator时出现xml解析错误:XML Parser Errors occurred
- XML PARSER
- XML parser
- XML Parser
- XML Parser
- XML Parser
- XML学习札记--Parsing the DOM
- XML学习札记--Accessing the DOM
- 【Android学习札记】AndroidManifest.xml详解
- 解析xml xml parser
- CMarkup: fast simple C++ XML parser 学习笔记
- xml parser源代码
- C++ XML Parser
- The Expat XML Parser
- Error creating XML parser
- PHP XML Parser
- JSP与Servlets的区别
- 使用Jscript编写EXCEL导出
- 10月30日日记
- IO.java
- Java中异常机制的深入研究
- XML学习札记--Parser Errors
- FCS阅读笔记:良好的编程习惯
- Java 程序中的多线程
- 最近感到身心俱疲
- 几个重要的Eclipse插件!
- 使用JFreeChart创建图象
- 目前最好的JSP分页技术
- B/S与C/S的概念
- 天气凉啦~~^o^