In SQL Server 2008, I have is query

```
DECLARE @root AS varchar(20);
SET @root = 'Root';

DECLARE @element AS varchar(20);
SET @element = 'Element';

SELECT
    *
FROM 
    SomeTable
FOR XML PATH (@element), ROOT(@root);

```

What I want is to pass a variables instead of hard coding the name of the repeating element and the root.

When I execute the query, it throws this error:

```
Msg 102, Level 15, State 1, Line 11
Incorrect syntax near '@element'.

```

Is it possible?

Thanks