简体   繁体   English

XML解析错误:找不到元素

[英]XML Parsing Error: no element found

I am using NiceEdit to format text in text areas, it displays a toolbar over the specified text area, I created a test page, its working, I Response.Write the content of the text area after being formatted, and its okay, I created a break point to see whats being read, it was all fine. 我正在使用NiceEdit格式化文本区域中的文本,它在指定的文本区域上显示了一个工具栏,我创建了一个测试页,它的工作方式为Response,在格式化后写入文本区域的内容,然后创建一个断点,看看正在阅读什么,一切都很好。

Now I moved to the real page where I should implement this text formatting, it simply did not do anything, the toolbar is shown and its working, but when I submit, nothing is being stored, i created a break point and the content of that text area was nothing, empty "". 现在,我移至应该执行此文本格式设置的实际页面,它只是什么都不做,显示了工具栏并可以正常工作,但是当我提交时,什么也没有存储,我创建了一个断点及其内容文本区域什么也没有,空的“”。

I went further and put Response.Write(textArea.text) then Response.End() and I got the error: 我走得更远,然后放入Response.Write(textArea.text)然后是Response.End(),我得到了错误:

XML Parsing Error: no element found XML解析错误:找不到元素

Just in case, the script I am using for the formatting NiceEdit toolbar, and this is the same script i used in my test page and worked just fine, the script is: 以防万一,我用于格式化NiceEdit工具栏的脚本,这是我在测试页中使用的脚本,并且工作正常,该脚本是:

<script src="../nicEdit/nicEdit.js" type="text/javascript"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() {
new nicEditor({buttonList : ['fontSize','fontFamily','fontFormat','bold','italic','underline','strikethrough','forecolor','bgcolor','removeformat'], iconsPath : '../nicEdit/nicEditorIcons.gif'}).panelInstance('txtDescription');
});
</script>

看来我解决了它:代替“链接”按钮,使用“按钮”来保存或执行操作...对我来说很简单,不合逻辑,但它的工作原理:D

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM