how to add attribute for all subnodes of the xml in sql
问题 I have a xml like below in a variable @xml <ContentTemplate> <Tab Title="Lesson"> <Section Title="Lesson Opening" /> <Section Title="Lesson/Activity" /> </Tab> <Tab Title="Wrap Up and Assessment"> <Section Title="Lesson Closing" /> <Section Title="Tracking Progress/Daily Assessment" /> </Tab> <Tab Title="Differentiated Instruction"> <Section Title="Strategies - Keyword" /> <Section Title="Strategies – Text" /> <Section Title="Resources" /> <Section Title="Acceleration/Enrichment" /> </Tab>