Right. Flash's internal representation does not care about local namespace prefixes, so there is no concept of a default namespace, just a URI for each element.
Peter On 8/28/07, williamkusumo <[EMAIL PROTECTED]> wrote: > > Okay, I think I kinda get it. I should not set default xml namespace, > but I need to use setNamespace() on that specific node. Seems to work > fine now. Sorry for cluttering the board :) > > > --- In [email protected] <flexcoders%40yahoogroups.com>, > "williamkusumo" <[EMAIL PROTECTED]> > wrote: > > > > Actually, it only happens with default namespace. > > > > I am trying to achieve this: > > > > <Root> > > <Test xmlns="http://somenamespace"></Test> > > </Root> > > > > I assign that to an XML object, set the default xml namespace, and it > > always turns out like this: > > > > <Root xmlns="http://somenamespace"> > > <Test></Test> > > </Root> > > > > --- In [email protected] <flexcoders%40yahoogroups.com>, > "williamkusumo" <williamkusumo@> > > wrote: > > > > > > Hi! > > > > > > I am assembling XML from strings. This XML has a default namespace and > > > one custom namespace. The namespaces declarations have to be inside > > > certain node. I notice Flex seems to be moving the namespaces around > > > and putting them all into the root node. Is it possible to have it not > > > do that? > > > > > > Appreciate the thoughts. > > > > > > > >

