# Quick XML namespace question

**URL:** https://forum.kirupa.com/t/quick-xml-namespace-question/280001
**Category:** flash
**Created:** [January 21, 2009, 2:57pm UTC](https://forum.kirupa.com/t/quick-xml-namespace-question/280001 "2009-01-21T14:57:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)
#### Post date: [January 21, 2009, 2:57pm UTC](https://forum.kirupa.com/t/quick-xml-namespace-question/280001/1 "2009-01-21T14:57:38Z")

</div>

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](mailto:styles.BaseStyle.@type)[/COLOR] = “BorderStyle”;  
[COLOR=#0000ff][styles.BaseStyle.@id](mailto: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??
