Answer the question
In order to leave comments, you need to log in
How to transform XML using XQuery?
How to implement the following XML processing using XQuery. I use in MSSQL.
<ScheduleTable>
<Schedule>
<Year>2018</Year>
<Item>Курочка</Item>
</Schedule>
<Schedule>
<Year>2018</Year>
<Item>Ряба</Item>
</Schedule>
<Schedule>
<Year>2019</Year>
<Item>Foo</Item>
</Schedule>
<Schedule>
<Year>2019</Year>
<Item>Bar</Item>
</Schedule>
</ScheduleTable>
<MainSchedule>
<YearSchedule>
<Year>2018</Year>
<YearItem>
<Name>Курочка</Name>
</YearItem>
<YearItem>
<Name>Ряба</Name>
</YearItem>
</YearSchedule>
<YearSchedule>
<Year>2019</Year>
<YearItem>
<Name>Foo</Name>
</YearItem>
<YearItem>
<Name>Bar</Name>
</YearItem>
</YearSchedule>
</MainSchedule>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question