-
Hi all
I have a logical question
In real XML there's only one parent
and all children and fristChild into it .
this call Root Element that's it OK
in Flash we have Instance Object is this the parent ?
because when we parser or invoking method
we call the Root Element of External Document
firstChild
also in Real Document the Root Elementdoesn't have sibling
but in flash has
so what's the differences between them ?
someone give at least brief description
Thanks
-
I have got the Answer
and it's so simple
the Root Element in External XML
will be the firstChild of Instance Object
for example in XML document name (doc) you have this
I will post the script without tags
maybe interpreter them when they exsit here (^%^) I guss so
parent !-- Root Element --
name loyal /name !-- firstChild --
/parent !-- closing tag --
so when we load this doc to
flash by this
myObject = new XML();
and what ever
then
myObject.load("doc");
myObject.firstChild.nodeName;// display parent
by this we can make this conception
parent in XML is fristChild in Instance Object in Flash
correct me if I am wrong (*&*)
[Edited by loyalone on 09-07-2002 at 07:55 AM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|