Hello, part 6735 in the namespace hell series... Shouldn't code like this:

XML(obj_data).ns_dmws::Plans.PlanNumber

successfully access any and all PlanNumber nodes in a chunk of XML
like this?:

<Entry xmlns="http://site.com/Back/DocMetadata";>
  <DocumentType>RPR</DocumentType>
  <Plans>
    <PlanNumber>78167</PlanNumber>
    <PlanNumber>78168</PlanNumber>
  </Plans>
  <Status>InProgress</Status>
</Entry>

It doesn't. In cases where there is only one PlanNumber node, I have
to do this to get to it, because the namespace seems to attach itself
to every child node even when accessed with the namespace:

XML(obj_data).ns_dmws::Plans.ns_dmws::PlanNumber

In cases where there are multiple PlanNumber nodes I can only access
the node contents using square brackets because, again, the namespace
attaches itself to each PlanNumber node. When there are multiple
PlanNumber nodes, this code:

XML(obj_data).ns_dmws::Plans.ns_dmws::PlanNumber

outputs

<PlanNumber xmlns="http://site.com/Back/DocMetadata";>78167</PlanNumber>
<PlanNumber xmlns="http://site.com/Back/DocMetadata";>78168</PlanNumber>





------------------------ 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