How to extract name and page using xfdf data

Which product are you using?

PDF.js Express Plus
PDF.js Express Version

Detailed description of issue
i have xfdf data and from xfdf data i need to extraxt name and page from that. is there any way i can get the values of name and page from the xfdf data.

 const xfdfString = await instance.Core.annotationManager.exportAnnotations();

i am able to get the value of xfdfString value from above as

<?xml version="1.0" encoding="UTF-8" ?><xfdf xmlns="" xml:space="preserve"><pdf-info xmlns="" version="2" import-version="4" /><fields /><annots><square page="3" rect="64,311.750,317,539.750" color="#FF0000" flags="print" name="fb32b83b-7dbc-c6c0-96be-0af5284a49ee" title="admin" subject="Rectangle" date="D:20230214225127+05'30'" width="3" creationdate="D:20230214225126+05'30'"/></annots><pages><defmtx matrix="1,0,0,-1,0,792" /></pages></xfdf>

so from above output i need to extract name and page values
Expected behaviour
{Provide a screenshot or description of the expected behaviour}
i need to extract name and page from xfdfString
Does your issue happen with every document, or just one?
{Answer here}

Link to document
{Provide a link to the document in question if possible}

Code snippet
{Provide a relevant code snippet}

Hi there,

Thanks for reaching out to pdf.js express forums,

From the raw xfdf data, there are page numbers associated with each annotation. For example in the xfdf you provided, there is a page number associated with the square, so you could extract that with string manipulation.

We recommend you to import the xfdf to an annotation, then use the annotation to get the data you need.

Best regards,
Kevin Kim

thanks kkim, your solution really helped me a lot