Hello! There is a following template:
<PersonalProgramList> <PersonalProgram> <One>randomInfo</One> <Two>randomInfo</Two> </PersonalProgram> <PersonalProgram> <One>randomInfo</One> <Two>randomInfo</Two> </PersonalProgram> <PersonalProgram> <One>randomInfo</One> <Two>randomInfo</Two> </PersonalProgram> </PersonalProgramList> How, using T-SQL to turn it into:
<tns:PersonalProgramList xmlns:tns="http://example.com/blalba/"> <PersonalProgram xmlns="http://example.com/blalba/"> <One>randomInfo</One> <Two>randomInfo</Two> </PersonalProgram> <PersonalProgram xmlns="http://example.com/blalba/"> <One>randomInfo</One> <Two>randomInfo</Two> </PersonalProgram> <PersonalProgram xmlns="http://example.com/blalba/"> <One>randomInfo</One> <Two>randomInfo</Two> </PersonalProgram> </tns:PersonalProgramList> PersonalProgramList - root, PersonalProgram - unlimited number.
PersonalProgramcan only be what is in question (onlyOneandTwowith text inside), or whatever? - i-one