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], "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], "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.
> >
>


Reply via email to