Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3584 | sourcerer | 1 | |
2 | |||
3 | |||
17 | |||
18 | |||
19 | |||
20 |
|
||
21 |
|
||
22 | |||
23 | The importNode method imports a node from another document to this document. |
||
24 | The returned node has no parent; (parentNode is null). The source node is not |
||
25 | altered or removed from the original document but a new copy of the source node |
||
26 | is created. |
||
27 | |||
28 | Using the method importNode with deep=false, import the attribute, "emp:zone" of the |
||
29 | element node which is retreived by its elementId="CANADA", into the another document. |
||
30 | Check the parentNode, nodeName, nodeType and nodeValue of the imported node to |
||
31 | verify if it has been imported correctly. |
||
32 | |||
33 |
|
||
34 |
|
||
35 | |||
36 | |||
37 | |||
38 | |||
39 | |||
40 | |||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | |||
60 | |||
61 | |||
62 | |||
63 | !DOCTYPE>!-- |
||
64 | |||
65 |