解析XML文档时发生错误。 “元素类型”p“必须终止”

时间:2011-09-06 18:52:11

标签: xml parsing document

这已经过了。谢谢! :)

我的老板正在度假,一位客户在他们的购物车(ColdFusion)网站上发出了一个问题。这是我所不知道的(我对PHP很有经验)。

在您完成将产品添加到购物车的过程中,输入您的个人信息后,您会看到一个页面,要求您选择密码 - 一旦您尝试从那里前进,您就会收到错误。

An error occured while Parsing an XML document.

The element type "p" must be terminated by the matching end-tag "
".

Resources:
Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging & Logging > Debug Output Settings, and select the Robust Exception Information option.
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser     Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.218 Safari/535.1
Remote Address      67.238.189.18
Referrer    http://www.innovate4independence.com/checkout_saveInfo.cfm
Date/Time   06-Sep-11 12:44 PM

如果可能的话,我想尽力帮助这个客户。我只是通过验证器运行它,现在我将查看结果。

2 个答案:

答案 0 :(得分:1)

您的应用程序正在解析XML文件,其中<p>标记未被相应的</p>标记关闭。

你的问题应该更明确:

  • 你对的意思是什么我只是通过验证器运行
  • 输入密码后会发生什么?
  • 您知道哪个XML文件/流正在生成错误吗?

答案 1 :(得分:1)

看起来该文档正在作为application / xhtml + xml提供,这意味着浏览器将其解析为XML文档。您应该能够通过确保文档有效(关闭p标记)或将页面作为application / html提供来解决问题

相关问题