Forum Discussion

mgouda's avatar
mgouda
Occasional Contributor
13 years ago

parametrizing XML attribute

Hi,
Can you share the syntax to use to be able to make an XML attribute as a parameter.

For example putting a parameter here works fine,
<Book>${BookName}</Book>


However, this one doesnt work and the curly brackets are ignored and not treated as a parameter,
<Book Name=${BookName} />

Is there a way to handle this case? Please help me in this as it is urgent for me.
  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    Have you tried quotes around the attribute?

    <Book Name="${BookName}" />