Parent-Child Apps and Classloading...Wrong load order?
Ah, everyone's favourite two oracle topics slammed into one. I've been using Oracle's parent-child application deployment for some time, to reasonable success in Oracle App Server 9.0.4. Though screwing about with the classloaders in this way usually fills me with dread, the benefits of developing child apps in isolation from the parent are excellent.
In general I have always deployed in the following way:
server.xml
<application name="msip-app" path="../applications/msip-app.ear" parent="default" start="true" />
<application name="msip-services" path="../applications/msip-services.ear" parent="msip-app" start="true" />
default-web-site.xml
<web-app application="msip-app" name="msip-web" load-on-startup="true" root="/msip" />
<web-app application="msip-services" name="msip-services" load-on-startup="true" root="/msip-ws" />
orion-application.xml (parent app)
<library path="./msip-web/WEB-INF/classes" />
<library path="./msip-web/WEB-INF/lib" />
(Note: this generic approach has always worked...)
Now I am trying to upgrade to oc4j 10.1.3.x, and I seem to be trapped in configuration hell. OC4J now appears to load the child application first, which inevitably screws up the classloader for the parent app. Surely this doesn't make any sense, as the parent app is the dependency and should be started first?!
I haven't discovered any way to control the load order for apps in the config files; the only workaround is to set the load-on-startup for the child app to "false". This is fine, until I redeploy through Oracle EM, which switches load-on-startup back to true. Again, there doesn't seem to be any way in deployment to control this parameter!
Why in the heck would oc4j have changed it's load priority for parent child apps? Is there any way to force load order through config? Am I just crazy and no one else has seen this?
Help.
Thanks for the reply. Gave that a look, but unfortunately, that link concerns a problem at a lower level than the one I've encountered. A classloading problem alerted me to what I believe is a bigger issue, namely that oc4j appear to be launching my child app before the parent app, and this consistently screws up the initialisation phases for both ear files. This appears to be an explicit decision in the Oracle app loader about which war file (parent or child) to launch first, but for the life of me, I can't find the offending code by decompiling oc4j.
If it turns out that this intentional, surely this must be a mistake? The parent app is the dependency and must be loaded first! or I missing something big...
Similar Messages
-
Xcelsius Parent/Child solution and BI Widgets
Hi,
Does anyone know if BI Widgets supports Xcelsius SWF files that have been created using the scaled method; i.e. Using a Parent SWF linked to Child SWFs which are loaded into the slideshow component using the documentDownload? URL and a selector.
I am trying to access such a dashboard solution and deploy it onto the users desktop.
The dashboard works when accessed through Infoview using both the below relative and actual URL's i.e.
"../../../Xcelsius/opendoc/documentDownload?sIDType=CUID&iDocID=AfYquYuuqxJPjbXesBEC6d4&sKind=Flash&CELogonToken="&$C$9
Or
"http://bo1:8066/Xcelsius/opendoc/documentDownload?sIDType=CUID&iDocID=AfYquYuuqxJPjbXesBEC6d4&sKind=Flash&CELogonToken="&$C$9
The problem is I can not get the child SWF to download into the Slideshow component in the Parent SWF when it has been published to the dashboard using BI Widgets.
Questions:
1. Does anyone know if BI Widgets supports SWF Parent/child u201Cscale upu201D solution
2. If so what should the URL be to call the children into the slideshow??
Thanks in advance.
Pen.Hi Alan,
Thanks for your response.
I receive no error messages; when I try to load a child swf into the parent slideshow component I see only a 0% progress bar in the slideshow component. I have also tried also using the OpenDocuemnt.jsp and when I try this in the above aforementioned URLs I get a 100% progress bar - but nothing else. i.e.It never displays the child swfs and nor does OpenDocument.jsp work in Infoview. The documentDownload? option does work in infoview but it does not work in BI Widgets.
I have also visited the Flash settings manager site and set the Global Security options to u201CAlways allowu201D and have added the BOE servers and my C:\ and Desktop to the u201Callow locationsu201D.
When you say that Flash will not let you access files off the desktop what exactly do you mean? I'm not sure if this relates to me as I am trying to access files from BOE XI 3.1.
Thanks for the advice; I will also post this issue on the Xcelsius forum.
Regards,
Penny. -
Parent-child hierarchy and fragmentation content
Hello,
I've tried to build simple model with OBIEE 11 using Oracle 11r2 as a data source. BMM has fragmentation content for fact table and few dimensions with different hierarchy types. It works fine with all hierarchy types except for parent child.
When I build an answer with parent child hierarchy it terminates with error "Target data source does not support the operation".
Does OBIEE 11 not support parent child with fragmentation content? Or am I missing something?
Greetings
MarcinI'm seeing the same issue. I've created a parent-child hierarchy along with two normal level-based hierarchies (one "normal", one skipped-level). The two level-based hierarchies work just fine in Answers. I can include them in the criteria, and data is displayed with the correct drilldowns.
If I include the parent-child hierarchy, I get the same results as noted in the original post: "The layout of this view combined with the data, selections, or drills, or prompt values chosen, resulted in no data." I'm trying to look at the table view, with no filters.
Interestingly, I can explicitly include that dimension's Parent column and Member column in the criteria, and data is displayed just fine.
Here is the XML for the set of criteria that includes the separate Parent and Member columns (the one that works):
SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11 FROM (
SELECT
0 s_0,
"Retro_Biz"."Channels"."MEMBER" s_1,
"Retro_Biz"."Channels"."PARENT" s_2,
"Retro_Biz"."Products"."TOTAL_PRODUCT" s_3,
"Retro_Biz"."Times"."YEAR" s_4,
SPACE(1) s_5,
SPACE(1) s_6,
SPACE(1) s_7,
IDOF("Retro_Biz"."Products"."Product"."Total Product") s_8,
IDOF("Retro_Biz"."Times"."Time"."Year") s_9,
"Retro_Biz"."Facts"."SALES" s_10,
CAST(NULL AS DOUBLE) s_11
FROM "Retro_Biz"
UNION ALL
SELECT
1 s_0,
"Retro_Biz"."Channels"."MEMBER" s_1,
"Retro_Biz"."Channels"."PARENT" s_2,
SPACE(1) s_3,
SPACE(1) s_4,
SPACE(1) s_5,
SPACE(1) s_6,
SPACE(1) s_7,
SPACE(1) s_8,
SPACE(1) s_9,
CAST(NULL AS DOUBLE) s_10,
REPORT_SUM("Retro_Biz"."Facts"."SALES" BY ) s_11
FROM "Retro_Biz"
) djm ORDER BY 1, 5 ASC NULLS FIRST, 4 ASC NULLS FIRST
Here is the XML that includes the Parent-Child hierarchy (the one that fails):
SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11, s_12 FROM (
SELECT
0 s_0,
"Retro_Biz"."Channels"."MEMBER" s_1,
"Retro_Biz"."Products"."TOTAL_PRODUCT" s_2,
"Retro_Biz"."Times"."YEAR" s_3,
CASE WHEN ISLEAF("Retro_Biz"."Channels"."Channel") THEN 1 ELSE 0 END s_4,
IDOF("Retro_Biz"."Channels"."Channel") s_5,
SPACE(1) s_6,
SPACE(1) s_7,
SPACE(1) s_8,
IDOF("Retro_Biz"."Products"."Product"."Total Product") s_9,
IDOF("Retro_Biz"."Times"."Time"."Year") s_10,
PARENT("Retro_Biz"."Channels"."Channel") s_11,
"Retro_Biz"."Facts"."SALES" s_12
FROM "Retro_Biz"
WHERE
ISROOT("Retro_Biz"."Channels"."Channel")
UNION ALL
SELECT
1 s_0,
SPACE(1) s_1,
SPACE(1) s_2,
SPACE(1) s_3,
CAST(NULL AS INTEGER) s_4,
SPACE(1) s_5,
SPACE(1) s_6,
SPACE(1) s_7,
SPACE(1) s_8,
SPACE(1) s_9,
SPACE(1) s_10,
SPACE(1) s_11,
"Retro_Biz"."Facts"."SALES" s_12
FROM "Retro_Biz"
WHERE
ISROOT("Retro_Biz"."Channels"."Channel")
) djm ORDER BY 1, 4 ASC NULLS FIRST, 3 ASC NULLS FIRST -
Multi level parent child relationship and datacontrol
I have an existing application with multi-level parent child tables. For example three of the tables in the applications are related as Table 1 ( parent of Table 2) ---> Table 2 ( parent of Table 3 ) --> Table 3. When i create ADF Business components using these tables i see only the nesting between the parent and its immediate child tables. How can i create a nested data control for Table 3 to Table 2 to Table 1?. We have a usecase where we need to access data from the child table to parent to parent in the reverse order. Currently there is no direct relationship defined between Table 1 and Table 3.
Any thoughts?
thanks
SeetharamanHi,
double click the Application Module to open the AM editor. Select the data Model category. On the right hand side you see what is selected for use in an application, on the left hand side is what you have available as View Object. To create T1-->T2-->T3, you
- Select T1 and move it to the right
- Select T2 under T1 on the left and move it to the right under T1
- Select T3 under T2 on the left and move it under T2 in T1 on the right
Frank -
Parent child hierarchy and measure using lookup
Hi,
I'm using OBIEE 11.1.1.5 and I have an issue with a parent child hierarchy, which is setup like case 4 in this example . When I create a simple analysis using the hierarchy and a simple measure, it works fine. But when I try to use a calculated measure using a lookup formula, I get the following error:
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 46036] Internal Assertion: Condition pTableRef->GetLeftTable() && pTableRef->GetLeftTable()->IsTableReference(), file server/Query/Optimizer/ServiceInterfaceMgr/Src/SQOIDriveJoinGenerator.cpp, line 568. (HY000)
Does anyone know how to get past this error?
Thanks,
MihaiHi,
I'm using OBIEE 11.1.1.5 and I have an issue with a parent child hierarchy, which is setup like case 4 in this example . When I create a simple analysis using the hierarchy and a simple measure, it works fine. But when I try to use a calculated measure using a lookup formula, I get the following error:
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 46036] Internal Assertion: Condition pTableRef->GetLeftTable() && pTableRef->GetLeftTable()->IsTableReference(), file server/Query/Optimizer/ServiceInterfaceMgr/Src/SQOIDriveJoinGenerator.cpp, line 568. (HY000)
Does anyone know how to get past this error?
Thanks,
Mihai -
Parent-Child Billing and Invoice Presentment
Hello gurus,
Have a question around parent-child billing where the business scenario is that a global HQ represents the single bill-to for multiple ship-to locations across the world. The idea is that the Global HQ receives a single invoice for multiple children and ideally a summary page detail as well as the specific invoice for that child.
In terms of splitting the billing documents I suppose there are 2 routes:
1) Standard splitting of billing documents (controlled via Copy Control) so that each distinct Ship-To generates its own billing document. Then the billing documents would need to be grouped together somehow for sending to the single Bill-To - not sure how that grouping could occur after the Billing Documents are generated?
2) Break the splitting of billing documents by Ship-To so that a single billing document is created for all ship-to's for a single bill-to.
Any help on this or whether one of these is the correct approach? The issue is complicated further by the fact that we would like to product a summary page for the global bill-to stating the summary values of all sold-to by country. We have considered using a heavily customised print program tool to add up the ship-to figures for display on an invoice but not sure if SAP can create this 'grouped summary calculation' itself?
Apologies for the long windedness - any help much appreciated!In copy Control maintain Requirement as 003 and check if the desired outcome is achieved.
regards,
Rajesh Banka -
Parent/Child Lists and Disabling Contextual Ribbon
I have a display form for a parent list that is setup with web part connections to show list view web parts of some child lists.
When you click the child list the ribbon displays a "New Item" button for the selected web part's list. How can I stop this from happening?
I have my own custom new button for the child items, so on the child form I can pre-set the relationship drop down box (and hide it from the user) using a query string value I put in.
I therefore need to stop the default new button appearing in the ribbon when the user selects the list items web part (because I can't put in the required query string value).
Any ideas?
Thanks,
RichardHi Richard,
As I understand, you would like to remove New Item button in the display form page of parent-child relationship list. Please add a content editor to use the code below in the Default Display Form:
<style>
.ms-list-addnew
display: none;
</style>
Here is the screenshot of my envrionment:
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
I Had to install the Itune on a new laptop as the old one crashed. How can I backup all my Apps and contacts to the new Laptop?
Is the app downloaded on her phone also?
-
Union on tables with parent-child records and Sorting
Hi,
I have an application that has an existing query which returns org units (parent and child) from organization table with a sort on createddate + org_id combination
WITH Org_TREE AS (
SELECT *, null as 'IS_DELETED', convert (varchar(4000), convert(varchar(30),CREATED_DT,126) + Org_Id) theorderby
FROM Organization WHERE PARENT_Org_ID IS NULL and case_ID='43333'
UNION ALL
SELECT a1.*, null as 'IS_DELETED', convert (varchar(4000), a2.theorderby + convert(varchar(30),a1.CREATED_DT,126) + a1.Org_Id)
FROM Organization a1 INNER JOIN Org_TREE a2 ON a1.PARENT_Org_ID = a2.Org_Id and case_ID='43333'
SELECT * FROM Org_TREE order by theorderby
I have created a new log table for organization 'Organization_Log' with exact columns as Organization table with an additional 'IS_DELETED' bool column.
Questions:
I need to modiy the query,
1. To display the parent and child records both from the organization table and organization_log table.
2. the sort on the result should be based on 'Organization Name' column asc. First with parent org and the child org underneath it. For eg.
aaa
==>fff
==>ggg
bbb
==> aaa
==> hhh
Any help on how the query should be constructed?
Thanks
gkol@Visakh16,
I am getting...
All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists.
The problem is that you will have different number of columns in both log and Organization and Organizationlog tables. UNION/UNION ALL expect the same number of columns.
Try the below:
WITH Org_Log_TREE AS (
SELECT Organization_name,Org_id,Parent_Org_id, IS_DELETED, CAST(Organization_Name AS varchar(max)) AS theorderby,1 AS level
FROM Organization_Log WHERE PARENT_Org_ID IS NULL and case_ID='43333'
UNION ALL
SELECT a1.Organization_name,a1.Org_id,a1.Parent_Org_id, a1.IS_DELETED, CAST(a2.theorderby +'/' + CAST(a1.Organization_Name AS varchar(1000)) AS varchar(max)),a2.Level + 1
FROM Organization_Log a1 INNER JOIN Org_Log_TREE a2 ON a1.PARENT_Org_ID = a2.Org_Id and case_ID='43333'
) ,Org_TREE AS (
SELECT Organization_name,Org_id,Parent_Org_id, NULL AS IS_DELETED, CAST(Organization_Name AS varchar(max)) AS theorderby,1 AS level
FROM Organization WHERE PARENT_Org_ID IS NULL and case_ID='43333'
UNION ALL
SELECT a1.Organization_name,a1.Org_id,a1.Parent_Org_id,NULL AS IS_DELETED, CAST(a2.theorderby +'/' + CAST(a1.Organization_Name AS varchar(1000)) AS varchar(max)),a2.Level + 1
FROM Organization a1 INNER JOIN Org_TREE a2 ON a1.PARENT_Org_ID = a2.Org_Id and case_ID='43333'
SELECT * FROM Org_Log_TREE
UNION ALL
SELECT * FROM Org_TREE
ORDER BY LEFT(theorderby,CHARINDEX('/',theorderby + '/')-1),Level -
Updating apps and getting wrong email address
I recently purchased a new iPhone 5S. On three occasions, the app store has indicated that I have apps to update. When I click to update, it asks me for a my password but shows the wrong email address. All three times it is the same address. This address is not an address that has ever been related to me or anyone in my family. There is not a problem with any other app updates and this is not happening with my new iPad. I am somewhat worried that I have been hacked already with owning this phone for only 3 weeks. If you can't help me with this please give me some advice on how to get tech support from Apple because going through their system did not seem to work for me.
Thanks. I think this was the second time I had the problem with the one app. I had some problems (but different) with the other app on my old phone. I am a little leary that this problem is resolved because with deleting the apps, it is just deleting them from the phone not from the cloud so when I loaded them on the phone I am thinking that I am just loading the same messed up app again. Both apps that have given me this trouble are very commonly used non-Apple apps. Anyway, I will come back again if I have problems with this again.
-
Parent Child Relationship and Child Search Criteria
Hi,
My question relates to the DB Adapter used in BPEL.
I posted the same question on BPEL forum but NOONE answerd me.
I post this also to the TopLink forum because although i am using DB adapter, i chosed to query a database using TopLink Select Query.
I have a two tables, TABLE_A (table_a_id, column_a) and TABLE_B(table_b_id, table_a_id, column_b, status). TABLE_B has a foreign key to TABLE_A.
I created a synchronous BPEL process and created a DB adapter. I imported the two tables, i selected TABLE_A as my root database table and in the 'Define Selection Criteria', i specified a TopLink expression, to get only data when TABLE_B has status of value 1.
Hoever, the expression seems to not work. I gets ALL data from TABLE_B, even with status of value of other than 1.
Please help me as i am stuck.
Thank youHi,
The reason we have a foreign relation is that the field should be preenet in some other table and it should be a Pkey in that table.
why do you want to have a child with out a parent key, if it is that way why do you want that relation.
Do you want to create the foreign key relation or is it already there.
thanks -
Apps and/or Pages loading terribly slow
I viewed other pages but really don't understand what I'm looking at so I need help. Per your other sites, I've run etrecheck and here are the results:
Problem description:
It’s taking a very long time for any of my pages or apps to load.
EtreCheck version: 2.0.11 (98)
Report generated November 18, 2014 at 9:31:58 PM EST
Hardware Information: ℹ️
MacBook Pro (15-inch, Early 2011) (Verified)
MacBook Pro - model: MacBookPro8,2
1 2 GHz Intel Core i7 CPU: 4-core
4 GB RAM Upgradeable
BANK 0/DIMM0
2 GB DDR3 1333 MHz ok
BANK 1/DIMM0
2 GB DDR3 1333 MHz ok
Bluetooth: Old - Handoff/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 3000 - VRAM: 384 MB
Color LCD 1440 x 900
AMD Radeon HD 6490M - VRAM: 256 MB
System Software: ℹ️
OS X 10.10 (14A389) - Uptime: 0:15:38
Disk Information: ℹ️
TOSHIBA MK5065GSXF disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted> : 210 MB
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
Macintosh HD (disk1) / [Startup]: 498.88 GB (269.92 GB free)
Core Storage: disk0s2 499.25 GB Online
MATSHITADVD-R UJ-898
USB Information: ℹ️
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. Apple Internal Keyboard / Trackpad
Logitech USB Receiver
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/Applications/VMware Fusion.app
[not loaded] com.vmware.kext.vmci (90.5.7) Support
[not loaded] com.vmware.kext.vmioplug.12.1.13 (12.1.13) Support
[not loaded] com.vmware.kext.vmnet (0139.86.58) Support
[not loaded] com.vmware.kext.vmx86 (0139.86.58) Support
[not loaded] com.vmware.kext.vsockets (90.5.7) Support
/Library/Application Support/Kaspersky Lab/KAV/Bases/Cache
[loaded] com.kaspersky.kext.kimul.44 (44) Support
[loaded] com.kaspersky.kext.mark.1.0.5 (1.0.5) Support
/Library/Extensions
[loaded] com.kaspersky.kext.klif (3.0.4a41) Support
[loaded] com.kaspersky.nke (1.6.4a15) Support
Launch Agents: ℹ️
[loaded] com.citrix.AuthManager_Mac.plist Support
[running] com.citrix.ReceiverHelper.plist Support
[running] com.citrix.ServiceRecords.plist Support
[running] com.kaspersky.kav.gui.plist Support
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist Support
[running] com.crashplan.engine.plist Support
[running] com.kaspersky.kav.plist Support
User Launch Agents: ℹ️
[loaded] com.google.keystone.agent.plist Support
User Login Items: ℹ️
iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
CrashPlan menu bar UNKNOWN (missing value)
Dropbox Application (/Applications/Dropbox.app)
VMware Fusion Start Menu Application (/Applications/VMware Fusion.app/Contents/Library/VMware Fusion Start Menu.app)
Google Chrome UNKNOWNHidden (missing value)
CrashPlan menu bar Application (/Applications/CrashPlan.app/Contents/Helpers/CrashPlan menu bar.app)
Launch Nikon Message Center 2 UNKNOWN (missing value)
Internet Plug-ins: ℹ️
CitrixICAClientPlugIn: Version: 11.8.2 - SDK 10.7 Support
Flash Player: Version: 15.0.0.223 - SDK 10.6 Support
FlashPlayer-10.6: Version: 15.0.0.223 - SDK 10.6 Support
iPhotoPhotocast: Version: 7.0 - SDK 10.8
QuickTime Plugin: Version: 7.7.3
Default Browser: Version: 600 - SDK 10.10
Safari Extensions: ℹ️
vkbd
URLAdvisor
Virtual Keyboard
URL Advisor
3rd Party Preference Panes: ℹ️
Flash Player Support
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
2% Safari
1% WindowServer
1% sysmond
1% AppleSpell
0% kav
Top Processes by Memory: ℹ️
236 MB kav
103 MB CrashPlanService
90 MB Safari
82 MB Dropbox
73 MB mds_stores
Virtual Memory Information: ℹ️
322 MB Free RAM
1.61 GB Active RAM
1.30 GB Inactive RAM
1.06 GB Wired RAM
1.19 GB Page-ins
1 MB Page-outsUninstall the Kaspersky software. Depending on the exact type/version you need a different method: http://support.kaspersky.com
Also, you're running VMWare Fusion 6, which is not compatible with OS X 10.10. Uninstall it or upgrade. -
Certain Apps and Webpages not loading?
Hi guys. I can't get on to Steam or iChat, they just say that the network is down, (or in iChat's case, it says the host disconnected.) And in any web browser, YouTube images refuse to load, and same with the video, and yahoo.com is just off completely. What's going on? I didn't do anything to start this, it just happened? Thanks.
Read the Apple document Well known TCP and UDP ports used by Apple software products
. Every Mac user using a firewall should have this document bookmarked. -
FB game apps and Pinterest not loading correctly
MacBook Pro
OS is the most recent version of Lion.
Safari is the most recent version.
Adobe Flash is updated/installed.
Java is updated and enabled.
One FB game tells me java needs to be enabled. It is. One game gives me a message to wait while it loads but it never loads. The third game loads but when I try to play, it just reloads the screen and I cannot play.
Pinterest only loads the top part of the page. None of my boards or my friends' boards load. I cannot pin anything. I can pull down the category menu and view my account page.
I have notified Pinterest and FB--multiple time. Their advice was to clear cookie cache...done. It didn't help. I was also advised to change my browser. I bought an Apple so I wouldn't have to use Google Chrome or Mozilla.
Is anyone else having this problem? Does anyone have any advice (besides changing my browser?)?Scroll down to the bottom of the homepage. There's also a second (or more) page tobthe right but they invariably appear at the bottom of the first page.
-
How to access parent, child nodes and attributes in XML?
EXAMPLE CODING:
[Embed("assets/Try.xml", mimeType="application/octet-stream")]
private static consTTest:Class;
public static function getTestXML() : XML
var baTest:ByteArrayAsset = ByteArrayAsset( new test() );
var xmlTest:XML = new XML( baTest.readUTFBytes( baTest.length ) );
return xmlTest;
public function SetTest():void
var xml:XML = XMLResource.getTestXML();
var XMLDoc:XMLDocument = parseXML(xml);
var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
var resultObj:Object = decoder.decodeXML(XMLDoc);
trace(resultObj.Roots.Child[0].ChildTitle); //Output: ChildTesting -> CAN GET IT, NO PROBLEM.
QUESTIONS:
(1) How to get the output for
trace(resultObj.Roots.Child[0].Child1.Inside[0].InsideTitle); //GOT ERROR, THE OUTPUT I NEED IS InsideTesting1.
(2) How to get the output for
trace(resultObj.Roots.Child[0].Child1.Inside[0].Tasks.Task[0].TaskTitle); //GOT ERROR, THE OUTPUT I NEED IS TaskTesting1.
Anyone can help me to solve this problem? Thanks.
Regards,
JessieHi.
You have error in Try.xml in row 2:
<Child ... "/>
Delete '/', its end of this child.
This is problem...
Maybe you are looking for
-
User Unable to change Ship to address in SC while creating
Hi All, When user is trying to change the ship to address which was defaulted is unable to make change. USer is trying to make manual entry in the NAME field change so that the other field would automatically gets changed withrespect to NAME in the S
-
Adobe photoshop elements 4.0 on win 8
Elements currently runs on Windows XP. What happens if I try to install it on windows 8.0? It contains all the function I need.
-
How can i get a activation code sent to my email again for my apple id?
How can i get a activation code sent to my email again for my apple id?
-
Duplicate albums in iphone music
Hi, I've just updated my iphone with some new music I've purchased and for some reason I have one album which is appearing twice. However, one of the folders only has some of the tracks in it. I think it's something to do with the cloud as the tracks
-
I'm using v6.06. The "help" menu starts to launch then disappears. And "search" doesn't function. Any suggestions?