I want to convert below SQL Server code to VBScript in classic ASP...
DECLARE @idoc int
DECLARE @xdoc nvarchar(4000)
DECLARE @xmldoc xml
Set @xmldoc = '<Root><Authors au_id="409-56-7008" au_lname="Bennet" au_fname="Abraham"><Titles title="The Busy Executive's Database Guide"/></Authors><Authors au_id="648-92-1872" au_lname="Blotchet-Halls" au_fname="Reginald"><Titles title="Fifty Years in Buckingham Palace Kitchens"/></Authors><Authors au_id="238-95-7766" au_lname="Carson" au_fname="Cheryl"><Titles title="But Is It User Friendly"/></Authors><Authors au_id="722-51-5454" au_lname="DeFrance" au_fname="Michel"><Titles title="The Gourmet Microwave"/></Authors><Authors au_id="712-45-1867" au_lname="del Castillo" au_fname="Innes"><Titles title="Silicon Valley Gastronomic Treats"/></Authors><Authors au_id="427-17-2319" au_lname="Dull" au_fname="Ann"><Titles title="Secrets of Silicon Valley"/></Authors><Authors au_id="267-41-2394" au_lname="Ellis" au_fname="Michael"><Titles title="Cooking with Computers: Surreptitious Balance Sheets"/><Titles title="Sushi for Anyone"/></Authors><Authors au_id="213-46-8915" au_lname="Green" au_fname="Marjorie"><Titles title="The Busy Executive's Database Guide"/><Titles title="You Can Combat Computer Stress"/></Authors></Root>'
SELECT
Authors.value('./@au_id', 'varchar(20)') as au_id,
Authors.value('./@au_fname', 'varchar(20)') as au_fname,
Authors.value('./@au_lname', 'varchar(20)') as au_lname,
Authors.value('Titles[1]/@title', 'varchar(20)') as Title
FROM
@xmldoc.nodes('/Root/Authors') as TableValues(Authors)
How write the above code in classic ASP (VBScript)?
Can you help me with this?