Thanks, Peter, good to know.

Any idea how to solve my DataGrid dataProvider problem? Its columns use child nodes as their dataField attribute but it seems like they are not accessible because of the namespace being there. Do I need to somehow strip out the namespaces or include the namespace in the dataField attribute? I know this is doable, and probably simple, but I can't figure it out or find it documented anywhere.

Thanks,
Ben

On 6/2/06, Peter Farland <[EMAIL PROTECTED]> wrote:
Ben, if a parent type declares the default namespace (as it does on
GetDocumentResponse) then child elements that do not redeclare the
default namespace nor use a prefix to another namespace will inherit
that parent namespace.


-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of ben.clinkinbeard
Sent: Friday, June 02, 2006 4:11 PM
To: [email protected]
Subject: [flexcoders] E4X, SOAP and namespaces, oh my!

There seems to be a significant shortage of information regarding the
use of these 3 things together. For the life of me I cannot solve this
seemingly simple problem. I have a SOAP call whose returned xml starts
out like this:

<soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd=" http://www.w3.org/2001/XMLSchema">
  <soap:Header>
    <wsu:Timestamp
xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility ">
      <wsu:Created>2006-06-02T19:48:15Z</wsu:Created>
      <wsu:Expires>2006-06-02T19:53:15Z</wsu:Expires>
    </wsu:Timestamp>
  </soap:Header>
  <soap:Body>
    <GetDocumentResponse
xmlns="http://mysite.com/BackOffice/DocumentMetadata">

But when I use the following code to retrieve content from it

namespace dm = "http://mysite.com/BackOffice/DocumentMetadata";
use namespace dm;
var x:XML;
x = new XML(event.message.body);
wtf = new XMLListCollection(x..RPRDocumentHistory.Entry);

I get a list of Entry nodes that have all 4 namespace declarations
attached to them even though the original nodes didn't have any.
Additionally, my DataGrid that uses wtf as its dataProvider gets
populated with blank entries (I can roll over them but no text is
displayed), which I have experienced before and is somehow related to
namespace issues.

How can I fix this? Are there any articles/tutorials that address these
topics in depth?

Thanks,
Ben






------------------------ Yahoo! Groups Sponsor --------------------~-->
You can search right from your browser? It's easy and it's free.  See
how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/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








------------------------ Yahoo! Groups Sponsor --------------------~-->
Home is just a click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/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/







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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to