Quick XML namespace question

Im trying to create the attributes in this XML:

<Styles>
<BaseStyle xsi:type=“BorderStyle” id=“WorkArea Border”>
</BaseStyle>
</Styles>

so say this xml is stored in a variable “styles”. I say:

[COLOR=#0000ff]styles.BaseStyle.@type[/COLOR] = “BorderStyle”;
[COLOR=#0000ff]styles.BaseStyle.@id[/COLOR] = “WorkArea Border”;

But it then gives me:

<Styles>
<BaseStyle type=“BorderStyle” id=“WorkArea Border”>
</BaseStyle>
</Styles>

Do you spot the difference? There is no “xsi:” before the type attribute. How on earth can I put that xsi there??