How to find out the descendants of one node that has a nameplace

10-11  Source: Network gathering  Views:0 

Advertisement
hello
i got a littile trouble when i try to find out the
descendants of node which has a nameplace,check this sample code
below please.
no matter i try to use the node's local name,name,i still got
a blank.i am confused about that.
do u people know how to solove that? i really want get that
descendants of node with nameplace.
hope u can help me,thx vv much.
though i have a vicarious solution,but i don't want use it
right now,i think there would be exist a direct way.
attach my vicarious solution:
function getDescendants(xml:XML,des:String="*") {
var list:XMLList=xml.descendants("*");
var rlist:XMLList=new XMLList();
for each (var node:XML in list) {
if (node.localName()==des || des=="*") {
rlist+=node;
return rlist;
var xl:XMLList=getDescendants(xx,"b");
trace(xl.length());//output:1
trace(xl[0].toXMLString());//output:<bb:b
xmlns:bb="bb.*"/>
and yes,the final result is what i want,but i don't like its
course.
Related articles
  • How to find out the descendants of one node that has a nameplace 10-11

    hello i got a littile trouble when i try to find out the descendants of node which has a nameplace,check this sample code below please. no matter i try to use the node's local name,name,i still got a blank.i am confused about that. do u people know h

  • How to find out the GR Numbers for which IR has not been done 10-11

    Hi Sap Gurus, Can anybody tell me how to find out the G R Numbers for which Invoice Receipt has not been done. Any TC or ant standard process to find out. Thanks N Regards, SiddharthaHi Siddarth, Solution :         1) Go to SE16 - Table Name : EKBE (

  • How do you find out the angle degree of type that has been rotated? 10-11

    I have manually rotated some type. It's not rotated a standard number of degrees and I'd like to find out what that number is. Do you know if there is a place in Illustrator that gives this informatiion because I sure as heck can't find it.You are su

  • How to find out the size of a node before it is shown? 10-11

    Hi, I am trying to anchor two nodes (say A & B) to the top of an anchor pane such that B is laid out below A. To accomplish this, I need to provide an anchor offset for the control B, which has to be height of the node A. However, as the containing S

  • How to find out the tables that will be affected using a transaction 10-11

    Hi, How to find out the list of database tables that will be affected when we use a standard transaction(ex. VA01, MM01..)...?(like When we create a salesorder, which tables and which fields will be affected..?) Is there any transaction or a simple w

  • How can i find out the more than one times occurance of integer in a array? 10-11

    How can i find out the more than one occurance of integer in a array. Assume i have 2,2,3,4,2,5,4,5 in a Array and i need to find out the how many times of 2, 5 and 4 is exists in that array. Please some one help me as sson as possible. thanks in adv

  • How to find out the max/min value of one field corresponding to a second field in HANA through graphical way. 10-11

    Hi, I am trying to find out the latest delivery date(EINDT)  for each purchasing document (EBELN) through graphical way. The view contains other fields apart from the above mentioned two fields. When only the two fields (EBELN, EINDT) are there, then

  • How to find out the user who has created  a new field in the custom table. 10-11

    How to find out the user details who has created  a new field in the custom table. Thanks, JoanHi Jesudasan , You can know the user details with version management.Please find the below procedure to know. Go to table->Utilities tab->version->Vers

  • How to find out  the selected line in list 10-11

    Hi all, Can any one tell me how to find out the selected event in the listYour subject said 'selected <b>line</b> in list' and your description says 'selected <b>event</b> in the list'. Which one is it you want to know? For line yo

  • How to find out the cost of SAP user for a particular user id 10-11

    Dear All, I got one issue like how to find out the cost of SAP user, i mean for a particular user id. Could you please advice me regarding this. RaghuHello Raghu, I got one issue like how to find out the cost of SAP user, i mean for a particular user

  • How to find out the locale setting in a browser? 10-11

    In my Java web project, the multi-lingual issue on the JSP pages is handled by JSTL. It works fine so far for any input messages. However, some messages come from the container. It is needed to find out the browser's country and language settings ins

  • How to find out the Target Component name and Target view name 10-11

    Hi All Expert,                   I want to know ,how to find out the target component and target view in WEB UI,when i click on a field which shows as a hyper link in WEB UI .At GUI level ,i know the how it will work.Any way to find out the component

  • How to find out the textframe contains "stroke color" (or) "fillcolor"? 10-11

    How to find out the textframe contains "stroke color" (or) "fillcolor" via javascript. Kindly advise me with sample.I know, this post is quite a while ago, but: This simply does not work for me. Neither for simple PathItems, nor for th

  • How to find out the common things between two rpds? 10-11

    How to find out the common things between two rpds? And place the common things in a common RPD.I thought of one solution. Original RPD = A Modified RPD = B XML Patch created for A-B = X Now open the XML Patch in IE or Mozilla and delete the columns/

  • How to find out the max mem can be allocatedTT for 32 bit Win ? 10-11

    How to find out the maximum Permanent Data Size and Temporary Data Size that can be allocated for the Oracle Times Ten for 32 bit Windows OS.Hi Chris, Am I write in saying that this also depends on shared memory setting as well? If that is the case,

  • How to find out the tablename and column name 10-11

    Hi, I have inserted a value (say 'I am here') in a table. but i don't know which is getting inserted this value. Now i want to know which table and colums has this value (I am here). How to find out as without knowing the table name. Is there any opt

  • How to find out the source of an event fired by button in a table in WD? 10-11

    Hi experts, I'm new to Web Dynpro and I need to know how to find out the source of an event (IWDCustomEvent) fired by a button in a table? I need to know which one is the clicked button (on which row)? Help will be appreciated RegardsHi GLM, thanks f

  • How to find out the calling point of a Badi 10-11

    Hi Experts, Say one Badi is getting called in a particular screen of a transaction. Can anyone please guide me how to find out the calling point for that Badi. I checked for transaction CC31 screen 2000, method IF_EX_ECM_EXIT~OMR_CHECK_01 is getting

  • How to find out the condition type of the tax code in the PO document 10-11

    Hi friends, My questions is how to find out the condition type of the tax code in the PO document. When you use me23n to display one PO document. In the invoice tab, there is one text field named 'tax code' whose value could be T1, T2, J1, J2 and so

  • How to find out the infospoke name for an existing infoobject? 10-11

    Hi, Could any one pls tell me how to find out the existing infospoke name for an infoobject? i've tried with where used list but its not coming....can any one pls suggest Thanks, SuriHi,     Check in metadata repository for that infoObject. If you ar