Check out example codes for "xml file sql server". It will help you in understanding the concepts better.

Code Example 1

ALTER PROCEDURE manageImpactItemsList
	@ImpactXml,
    @ProductID
AS
BEGIN
 DECLARE @Handle INT;
    
 EXEC SP_XML_PREPAREDOCUMENT(@Handle OUTPUT, @ImpactXml);
    
 INSERT INTO ImpactItemsList_tbl(ProductID, ImpactItem, ImpactID, Answer)
 SELECT  X.ImpactItem, X.ImpactID, X.Answer FROM OPENXML(@Handle, '/RT/ITEM', 2)
 WITH(
   ImpactItem VARCHAR(50) 'ImpactItem',
   ImpactID INT 'ImpactID',
   Answer VARCHAR(100) 'Answer',
 ) AS X;
    
 EXEC SP_XML_REMOVEDOCUMENT(@Handle);
    
 RETURN 'SUCCESS';
END

Learn ReactJs, React Native from akashmittal.com