How to get XML of a node name data?
I'm new to Flash and XML, so I hope I'm not asking a stupid question. I understood how to retrieve data from and by the position of the node XML file, but now I would like to know how to pull a specific node name. Here is what I currently have:about (overview)
{
myLot = 1;
_root.myInfo = _root.myXML.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [this.myLot] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue;
}
With the file XML as follows:
< SectionOne >
< Lot1 >
< Batch > 1 < / batch >
< price >$ 450 000 < / price >
Assets of < status > < / status >
< / Lot1 >
< Lot4 >
< Batch > 4 < / batch >
< price >$ 389 000 < / price >
Sold < status > < / status >
< / Batch2 >
< / SectionOne >
What I would like is to shoot instead of childNodes [this.myLot] to get the node named Lot1. The problem I have is I have always not consecutive lots and I don't want to have to build a placeholder empty xml online. I hope that makes sense.
Sorry for the delay. I posted this on the discussion group, but I guess that it does not spread here.
What you would do, is to use a loop statement and compare the nodeNames.
To see a name of nodes as Lot1, you use:
childNodes [x] .nodeName
******************************************
Load the lotNodes object
lotNodes = _root.myXML.childNodes [0];
LotNodes contains now all Lot0, Lot1, batch2 nodes...
Browse all childNodes lotNodes and compare the
nodeName until you find the one you want then go down
He has to get the information you want.
for (var counter01 = 0; counter01<>
If (lotNodes.childNodes [counter01] .nodeName == "Batch1") {}
myInfo = lotNodes.childNodes [counter01] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [0] .nodeValue;
}
}
******************************************
I don't have time to test it but it should work, I'll check double after work.
I hope that this help you move forward.
If you have any other problems or can't make it work, I would like to know here or send me an email. Preference here, so that others can learn and help.
Scotty
[email protected]
Tags: Adobe Animate
Similar Questions
-
How can I get rid of the file name, date and size of the photo in the upper left corner of the module develop when I'm not working on the photos?
All shortcuts are listed on the view > menu Info Magnifier.
-
How to get LASTDAY for each month between data dates...
Hi friend
I have a doubt, how to get LASTDAY for each month between data dates...
for ex:
My contribution will be like this
date = 01/12/2011
To date = 14/04/2011
And I need an output like
31/01/2011
28/02/2011
31/03/2011
is it possible to achieve through sql query in oracle
Thanks in advance for all friends to help himHello
Something like this (assuming that the dates are originally VARCHAR2s):
SQL> var dt_start varchar2(10) SQL> var dt_end varchar2(10) SQL> exec :dt_start := '12-01-2011' PL/SQL procedure successfully completed SQL> exec :dt_end := '14-04-2011' PL/SQL procedure successfully completed SQL> SQL> select last_day( 2 add_months( 3 trunc(to_date(:dt_start,'DD-MM-YYYY'),'MM'), 4 level-1 5 ) 6 ) as result 7 from dual 8 connect by level <= months_between(to_date(:dt_end,'DD-MM-YYYY'), to_date(:dt_start,'DD-MM-YYYY')) 9 ; RESULT ----------- 31/01/2011 28/02/2011 31/03/2011
If the dates are already of the date data type, simply remove the to_date function.
-
How to get the number and the name of the contacts selector
Hi all
I got the Contact Picker work but I have no idea how to get the selected telephone number and the name.
There are attributes that I can put like contactId.value () to retrieve or there is another way?
Thanks in advance.
ImageButton{ defaultImageSource: "asset:///images/bluebutton.png" onClicked: { contactPicker.open(); } attachedObjects: [ ContactPicker { id: contactPicker onContactSelected: { result.text = "You chose contact: " + contactId; } } ] } Label { id: result text: "You chose contact: " }
Hello
You can get the contact name and phone number as this,
ImageButton{ defaultImageSource: "asset:///images/bluebutton.png" onClicked: { contactPicker.open(); } attachedObjects: [ ContactPicker { id: contactPicker onContactSelected: { result.text = "You chose contact: " + contactId; // call a cpp method to get the details
app.getDetails(contactId); } } ] } Label { id: result text: "You chose contact: " }
the CPP code:
void ContactDetails(ContactId id) { Contact contact_info = m_contactService->contactDetails(id); QString firstName = contact_info.firstName(); QString lastname = contact_info.lastName(); QList
phoneno_list = contact_info.phoneNumbers(); QStringList no_s; foreach(ContactAttribute attr, phoneno_list) { no_s << attr.value(); } } You can get details like this.
Kind regards
Naresh Kodumuri.
-
How to get a list of column names
Hello
I need to test the list of column names that are present in the table with my column list who are in excel. Currently im using Toad, if you press f4 on the name of the table, it will display
. But I need a sql query to check it out.
I tried user_tables; not work and tried with information_schema.columns but table does not exist error coming.How to get those details using sql querry.
SELECT column_name
Of all_tab_cols
WHERE table_name = 'name of the Table.
or
SELECT column_name
Of all_tab_cols
WHERE table_name = 'name of the Table.
AND owner = 'name of the owner.
-
How to get the LOGO and company name in the theme of the 4 apex
Hello
I use the theme 4 for apex 4.0.2.
I must have the logo as well as the name of the company the two, but when I select den Image it shows only the image in the dashboard and when I select den text it shows the name of the company.
How to get the two logo and the name of the company?
Thanks for your help.
Kind regards
Sébastien Pallav.Pushpesh Pallav says:
HelloI use the theme 4 for apex 4.0.2.
I must have the logo as well as the name of the company the two, but when I select den Image it shows only the image in the dashboard and when I select den text it shows the name of the company.The word is spelled 'then', not 'den '.
How to get the two logo and the name of the company?
Select the text, and include HTML, making reference to the image in the text:
Company NameThe image src URI used depends on the location of the image, which you have failed to specify.
-
How to get the Application Server computer name?
I'm redirecting to a jsp fails to logon page using oracle's 10 g.
Can you please tell me how to get application server name of the computer on which I run my ACE? I don't want to hardcode the link to the jsp example page
http://MyMachine:7778 / MyPage.jsp
I want to get dynamically AS the machine name (I can't access the data due to the error log). Please help in this regard.
Thank youHello
You can use in your forms integrated GetVar tool_env.:
TOOL_ENV. GetVar('REPSERVERNAME',l_report_server);
TOOL_ENV. GetVar('URLSERVER',l_urlserver);
TOOL_ENV. GetVar('APPLICATION',l_envid);where the first parameter is a parameter defined in the file your application server .env.
-Mohamed Dadi
-
How to get the required column, the names of tables for the preparation of the report.
Based on the MD50 how to get the exact name, the table names he joined for report development. as I am new on this project and the purchase of failet for R12.
How can I start my approach to prepare the data for the report model? How can I search the database based on the respective diagrams of means?
all input appreciatedHello
You can find information about schema objects in eTRM Web site, you can also consult the documentation for product/module and see if it helps. If you already have any report (standard or custom), you can enable the trace and run the program to see which object it access or open the report using Report Designer and see the code.
ETRM Oracle
http://ETRM.Oracle.comOracle Applications documentation
http://www.Oracle.com/technology/documentation/applications.htmlKind regards
Hussein -
How to get a user logged in (NAME of the END USER) in the APEX?
Hi all
I have Apex 3.1.2 Oracle 10 g 2.
I have an integrated application, I need to print a REPORT based on the user who runs the application. While building the app, I used Application Express - authentication schemes and created an END USER.
But, when the report is run, I get the error. This is because it takes the ANONYMOUS user name. How to get the user_name of the logged-on user?
Thanks in advance.
Guru
Published by: guru Perrin on October 14, 2008 16:25
Modified subject lineHi guru,.
You can use the & APP_USER. application for this variable. He was replaced when executing, in the name of the user connected.
Edit: PS
Don't forget the point. in the end ;)Hope this helps,
Greetings,
RutgerPublished by: Rutger_de_Ruiter on October 14, 2008 03:57
-
How to get the current windows user name
I was wondering if there is a way to get current pc windows user name in labview?
If there is a way bwsides navigate manually to the folder user thr and stripping the way please let me know.It's one of this method
-
How to get the attributes of node when you query the TQL via java API
Hello
I'm trying to pick up a hierarchy of IC using a TQL. I created a TQL on uCMDB and am now questioning him through the uCMDB java API. The TQL is simple and queires a hierarchy containing a Node (Server) containing the disks, file systems, interfaces and IP addresses.
My code snippet is:
UcmdbService ucmdbService = CMDBConnection.createCMDBService();
TopologyQueryService queryService = ucmdbService.getTopologyQueryService();
Topology topology = queryService.executeNamedQuery("BasicTopologyView");
CollectionallCIs = topology.getAllCIs(); for (TopologyCI node : allCIs) {
System.out.println("Node is " + node.getPropertyValue("display_label") + "(" +node.getId().getAsString() + ") ... " + node.getPropertyValue("display_label")
+ " ... " + node.getPropertyValue("TenantOwner")+ " ... " + node.getPropertyValue("discovered_os_name"));
}The output I get is
The node is/usr (18de9fd759680f10b4f1d3567fb0f5e5)... / usr... null null
The node is/tmp (18eaac5d8ec14e45874029f25011a13c)... / tmp... null nullWhatever properties I question are coming as null. Is there a way I can say uCMDB what I expect from each node to the execution of the attributes.
Thanks in advance.
Peyrot
This problem is now resolved. The correct way to proceed, queryProperties method is used when querying of the node.
node.queryProperties(props);
When the accessories is a string containing all of the appropriate properties you want to take to uCMDB.
-
How to get the default path of the data of a table space file
I used below the sql statement to create a table space:
CREATE A TABLESPACE DATAFILE AAA BBB SIZE 10 M AUTOEXTEND OFF...
Notice, I do not give a full path instead of a file name, and then ask questions relevant to tables
get the full path of the data file, assume that it's path below:
d:\oracle\...\BBB
So I don't think that there is a default path that oracle can use it to create the data file. My question
is how to get this default path before creating a table space.
Thank you very much.
Hello
I did similar simulations for you, then it could be seen easily:
SQL > Show parameter db_create_file_dest
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
db_create_file_dest chain
SQL > SELECT NAME, VALUE OF V$ PARAMETER
2 where lower (name) = "db_create_file_dest;
NAME
--------------------------------------------------------------------------------
VALUE
--------------------------------------------------------------------------------
db_create_file_dest
It has the value NULL. Then where my datafile is going?
SQL > create tablespace TEST datafile 'test01.dbf' size 10 M;
Created tablespace.
SQL > select file_name
2 of dba_data_files
3 where nom_tablespace = 'TEST ';
FILE_NAME
--------------------------------------------------------------------------------
/U01/app/Oracle/product/12.1.0/Db_1/DBS/Test01.dbf
When you check the alert logs, it will not show you the location of the data file. It will tell you what exactly you ran.
..
..
Completed: drop tablespace test whose content and data files
create tablespace datafile 'test01.dbf' size 10 M TEST
Completed: create tablespace TEST datafile 'test01.dbf' size 10 M
..
..
You can not SQL user * more? Well, I would say that, when you run the CREATE TABLESPACE command, is where you run the command:
SQL > select file_name
2 of dba_data_files
3 where nom_tablespace = 'TEST ';
FILE_NAME
--------------------------------------------------------------------------------
/U01/app/Oracle/product/12.1.0/Db_1/DBS/Test01.dbf
So, you should get the location of your data file. Alternatively, you can run the query in the parameter $ v so that you know your default data file location.
I hope this helps.
Thank you.
Kind regards
Gaetan
-
How to get the ip address of the data storage device
Hi all
I developed a project now and you need to distinguish a virtual machine is saved to the device local ESX or remote network storage device.
I found the data store object in which the virtual machine resides by vi sdk, but could not find the address of the device that includes this data store.
How to get the ip address of the coding data storage device, which includes the virtual machine? I need your help.
Thank you in advance.
How do you try to make a query. Storage devices provides a logic unit number no, there is no IP address for it.
You can check the same for the storage on vCenter view
-
How to get out the year following the date
Hi all
I'm couldn't get out of the year to date.
in my table it has been stored in varchar format on January 11, 2005
If I want to display the year of the column, then
I tried with year (to_date (' ' jan 11 2005 ', ' mm dd yyyy ' "))
but I get an error then, how should I go out the year of the date_column
thnksHello
Use RIGHT(DATE_COLUMN,4)
Thank you
Saichand.v -
How to get XML node in a number
In my XML file, I have a question like:
< myxml >
< amount > 5 < / amount >
< / myxml >
In my Flex code, I have a variable:
public var stockOnHand:Number;
and
private void dataHandler(event:ResultEvent):void {}
stockOnHand = event.result.myxml.amountt;
}
But if I try to access this variable I find its value to be "NaN". So it is not registering as a number, must be a string. Why?
If you have not found an answer, but I think I might have. Try this:
private void dataHandler(event:ResultEvent):void {}
stockOnHand = new Number (event.result.amount);
}
Maybe you are looking for
-
I have a physical damage, where are the services place in ho chi Minh City, viet nam
I have a physical damage with my iwatch, where I can bring services to the Viet Nam in ho chi Minh City
-
pilot missing after clean reinstall
I use a dell inspiron 530 w / xp home edition. I'm missing ethernet controller, pci device, single pci communications controller, sm bus controller and video controller (vga compatible). Thanks for any help!
-
where to find the switch for wireless connection on computer laptop esprimoV5535
get the message {connection Wi - Fi doesn't work}, but it is not no matter what visible switch on laptop so presumably its located via the keyboard
-
UNI-DIRECTIONAL press UCS 6248 interconnections of fabric?
Hello If possible, I'd like to see a UNI-DIRECTIONAL between my 5548 neighbor was cheating Nexus and my 6248 interconnection fabric. UNI-DIRECTIONAL feature is supported by the 5548 s and easily activated. However, I can't find any information on how
-
First Pro CC is fragile? analog capture problems.
I have CC PP on a 64-bit Windows 7 computer. Sufficient RAM, gpu inadequate. (Old nvidia quadro). I work in PS and LR for years and had a video project (marriage of the daughter). I need analog capture. I used a grass Valley converter plugged into Fi