set newNode2 = xmldoc.CreateElement("SN")
newNode1.AppendChild(newNode2)
newNode2.text = t1
set newNode2 = xmldoc.CreateElement("Name")
newNode1.AppendChild(newNode2)
newNode2.text = t2
set attrNode=xmldoc.CreateAttribute("sex")
newNode2.setAttributeNode(attrNode)
attrNode.text="T6"
set attrNode=xmldoc.CreateAttribute("birth")
newNode2.setAttributeNode(attrNode)
attrNode.text="T7"
newNode1.AppendChild(newNode2)
set newNode2 = xmldoc.CreateElement("Class")
newNode1.AppendChild(newNode2)
newNode2.text = t3
set newNode2 = xmldoc.CreateElement("Tel")
newNode1.AppendChild(newNode2)
newNode2.text = t4
set newNode2 = xmldoc.CreateElement("Email")
newNode1.AppendChild(newNode2)
newNode2.text = t5
xmldoc.save(server.mappath("student.xml"))
set xmldoc = nothing
Response.Write"客户数据已成功添加!"
end if //这里是49行
%>
举个例
if 1 = 1 then reponse.write 123是
if 1 = 1 then
reponse.write 123
enf if
还有 代码注意下缩进,有时候问题很明显就看出来了。