I have a fairly large XML file about 3-4 MB in size, and I need to wrap some elements inside the tags. My Xml has the following structure:
<body>
<p></p>
<p>
<sectPr></sectPr>
</p>
<p></p>
<p></p>
<tbl></tbl>
<p>
<sectPr></sectPr>
</p>
</body>
Of course, all items pand tblwill be repeated in bodybefore the end of the file (and each of the above elements have children - I just took them for my sake of simplicity). As an estimate, I will have about 70 elements sectPrinside body, not necessarily in the order described above.
What I would like to do is wrap all the elements that begin with the element containing sectPr, in the next element containing sectPr, in another tag. As a result, my XML should look like this:
<body>
<p></p>
<myTag>
<p>
<sectPr></sectPr>
</p>
<p></p>
<p></p>
<tbl></tbl>
</myTag>
<myTag>
<p>
<sectPr></sectPr>
</p>
</myTag>
</body>
, , 40 .
: , XSLT, , , , , , XML String , ?
, Visual Basic.
.