Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello folks,


I have convert Sql stored procedure into mysql, I have converted all but for OPENXML,i don't find any alternative,
i have gooling but idon't understand that,

in that sp I have used in sql,

SQL
SET @pnvSyncCaseData = REPLACE(@pnvSyncCaseData,'xmlns="http://www./"','')
    SET @pnvSyncCaseData = REPLACE(@pnvSyncCaseData,'xmlns="http://www."','')
    SET @pnvSyncCaseData = REPLACE(@pnvSyncCaseData,'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"','')
    SET @pnvSyncCaseData = REPLACE(@pnvSyncCaseData,'soap:Envelope','Envelope')
    SET @pnvSyncCaseData = REPLACE(@pnvSyncCaseData,'soap:Body','Body')

SQL
EXEC sp_xml_preparedocument @idoc OUTPUT, @pnvSyncCaseData

SQL
INSERT INTO @LoanInfo
            (LoanNumber, HLP_CaseID)
        SELECT  LoanNumber, CaseID
        FROM OPENXML (@idoc,'Envelope/Body/RxGetCaseResponse/RxGetCaseResult/Details/LoanInformation',2)
        WITH (
                LoanNumber nvarchar(50),
                CaseID nvarchar(320)
            )


so i just want this is in mysql,

Please help me about that,
i required this on priority,

thanks in advanced
Posted

1 solution

You can use ExtractValue in MySql. See: 12.11. XML Functions[^]
 
Share this answer
 
Comments
madhuri@mumbai 19-May-12 8:56am    
Please elaborate your answer with above sql example,
Espen Harlinn 19-May-12 12:17pm    
Nice reply :-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900