update xml data

Mooresselve

New Member
I have an infopath form xml which i need to change .\[code\] <?xml version="1.0" encoding="utf-8"?><?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:lesson2:-myXSD-2011-11-16T10-48-36" solutionVersion="1.0.0.266" productVersion="12.0.0.0" PIVersion="1.0.0.0" href="http://stackoverflow.com/questions/10791467/.xsn"?> <?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.2"?> <my:Form> <my:TeacherID>851</my:TeacherID> <my:Error></my:Error> </my:Form> <my:FormName>Alice </my:FormName> <my:FormStatus>Submitted</my:FormStatus> <my:OverallGrade> </my:OverallGrade>\[/code\]to \[code\]<?xml version="1.0" encoding="utf-8"?><?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:Lesson:-myXSD-2011-11-16T10-48-36" solutionVersion="1.0.0.193" productVersion="12.0.0.0" PIVersion="1.0.0.0" href="http://stackoverflow.com/questions/10791467/5.xsn"?><?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.2"?> <my:Form> <my:TeacherID>63hg84</my:TeacherID> <my:Error></my:Error> <my:FormName>Amber </my:FormName> <my:FormStatus>Submitted</my:FormStatus> </my:Form> <my:OverallGrade>3</my:OverallGrade>\[/code\]1) I need to change the value of the name,href in the element from to the first xml to the second one.2) The first xml format is wrong as the closing tag needs to come after the tag.a) how do i iterate through the xml to get the attribute of mso-infopath ?b) How do i iterate move the closing tag i.e. to the correct position.
 
Back
Top