How to change the attribute of XMl data

wxdqz

New Member
Hi,I need to know how to change the attribute of XML.I have a XMl file like this:<books><book id="1" marked="0"><author>XYZ</author><title>Learn XML</title></book><book id="2" marked="0"><author>ABC</author><title>XML is fun</title></book></books>********************************In my ASP code, i used DOM:dim dom, root, nodeset dom = server.createobject("microsoft.xmldom")call dom.load("c:\books.xml")set root = dom.documentElementset node = root.selectSingleNode("book[@id="2"]").........The problem is how to change the attribute of <book id="2" marked="0">to <book id="2" marked="1">Thanks in advance, and any help is appreicated.Adeles
 
Back
Top