Include a portion of an external wiki page into another

Is this possible?

I want to insert the For Users portion of the New and Noteworthy section of an XWiki Release Notes page, but I’m struggling in how to do it.

Thank to the code snippet in https://snippets.xwiki.org/xwiki/bin/view/Extension/Include%20External%20Content I saw that I can include a whole external page.

Then, I thought about handling the retrieved content to extract part of it and since the other site is an XWiki instance I thought I could obtain an XML or other format version, but failed to do so - see my other thread about outputSyntax).

Can this be done?

Example: https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/17.0.0/?outputSyntax=xwiki&outputVersion=2.1&xpage=plain

See https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Architecture/URL%20Architecture/Standard%20URL%20Format/#HParameter:xpage

However this won’t work since it contains scripts. And it’s not safe…

You could simply get the HTML, extract what you want from it and then use the HTML macro to display it.

Thanks, I was thinking about handling the XML obtained with outputSyntax=xdom+xml, but I’ll have a look at your suggestion too.