如何检查输入的字段是否存在于xml中
问题描述:
im我的项目中的xml ..我需要开发xml文件..我已经完成了...我使用jsp页面输入xml文件中的值。 ..如果我输入xml文件中存在的相同值...它应该抛出一个已经存在名称的警告......任何人都可以帮助我..我使用DOM来创建XML文件。 ..
提前致谢..
madhu。
i m new to xml..in my project..i need to develop xml file..i had done it...i used jsp pages for entering the values in xml file...if i enter the same value which is present in xml file...it should throw an alert that ''Already the name exists''...can anyone help me out..i used DOM for creation of XML file...
Thanks in advance..
madhu.
答
结构是什么你的xml喜欢?这些值是否存储在特定元素中?你能得到这些元素的列表,例如使用某种getElementsByTagName函数吗?或SelectNodes?
What is the structure of your xml like? Are these values stored in particular elements? Can you get a list of these elements, eg using some sort of getElementsByTagName function? or SelectNodes?
hi,
这里是我的XML文件...我使用jsp page..ie P_Name,M_Status..etc输入了所有值。 ..如果我重新输入值..它应该显示一个警告名称已经存在..
here is my XML file...i entered all the values using jsp page..i.e P_Name,M_Status..etc...if i re-enter the values..it should show me an alert that the name already exists..
展开 | 选择 | Wrap | 行号
hi,
i使用DOM创建xml文件...如果我输入xml文件中存在的值...它没有显示任何错误......它正在接受价值......任何人都可以建议我如何用现有价值检查输入值......我不知道d紧急帮助...
提前致谢,
madhu。
i created xml file using DOM...if i enter the values...which are present in xml file...it is not showing any error...it is accepting the value...can anyone suggest me how to check the enter value with existing value...i need help from anyone urgently...
Thanks in advance,
madhu.