This is a discussion on "Extracting Text out of XML Nodes" within the Flash & Multimedia Forum section. This forum, and the thread "Extracting Text out of XML Nodes are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Extracting Text out of XML Nodes
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Extracting Text out of XML Nodes
I have a very simple XML file:
<?xml version="1.0" encoding="UTF-8"> <phoneBook> <contact id="1"> <name>John Smith</name> </contact> </phoneBook> My objective is to get Flash to trace the name "John Smith". I have the XML document imported in fine with no errors. If I do a trace on "myXML.firstChild.firstChild.firstChild" it will print out "<name>John Smith</name>" ... but if I trace "myXML.firstChild.firstChild.firstChild.nodeValue" , it comes out null. Does anybody know how I can get Flash to extract the text from a node, when the node / document tree isn't created in Flash? Thanks |
|
|
![]() |
| Tags |
| dynamic content, flash, xml |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| making text field text disapear | Phixon | JavaScript Forum | 4 | Feb 2nd, 2008 07:49 |
| [SOLVED] Extracting filename without extension from variable string. | frankenscarf | JavaScript Forum | 3 | Jan 11th, 2008 16:54 |
| [SOLVED] Image with text -> text with background | alexgeek | Web Page Design | 5 | Nov 13th, 2007 23:25 |
| alt text/title text differences | Donny Bahama | Web Page Design | 3 | Apr 23rd, 2007 17:02 |
| How do you center the text in text a box so that it can be e | benbacardi | Web Page Design | 5 | Apr 6th, 2004 12:12 |