> What's the value of 
> entries.namespaceDeclarations() ?
> -- 
> Tom Chiverton

OK, now I am even more confused :). Turns out that for my simple
example (defining a small XML var inside the MXML file), the default
namespace is in fact included in the array returned by
namespaceDeclarations(). However, if I create a new XML var from a
subset of my SOAP response and then try to get the default namespace
data, it doesn't work.:

var x:XML = new XML(event.message.body);
namespace d = "http://site.com/Back/DocMetadata";;
use namespace d;
var x2:XML = new XML(x..Metadata);

x2.namespaceDeclarations().length; // returns 0
x2.namespaceDeclarations().toString(); //returns this:

<Metadata xmlns="http://site.com/Back/DocMetadata";>
  <RPRDocumentHistory>
    <MetadataType>RPRDocumentHistory</MetadataType>
  </RPRDocumentHistory>
</Metadata>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to