<%
namespace WritingXml {
XmlWriter xmlWriter = XmlWriter.Create("NFrame.xml");
xmlWriter.WriteStartDocument();
xmlWriter.WriteStartElement("device");
xmlWriter.WriteStartElement("device");
xmlWriter.WriteAttributeString("timestamp", "time");
xmlWriter.WriteString("id");
xmlWriter.WriteEndDocument();
xmlWriter.Close();
};
%>
我在JSP页面中使用此代码进行XML编写,但是我在插入;
以完成局部变量声明时遇到错误