Adobe Dreamweaver Forums



Last 10 THreads :         ProgressEvent reporting incorrect properties? (Last Post : ErikMadsen - Replies : 0 - Views : 1 )           »          Clock .getUTC not working (Last Post : bolszo - Replies : 0 - Views : 1 )           »          Sound.position (Last Post : hoppe11 - Replies : 2 - Views : 3 )           »          ProgressBar and myPlayer (Last Post : W_Bell - Replies : 2 - Views : 3 )           »          Controlling a virtual keyboard from Director MX 2004 (Last Post : RandallH - Replies : 0 - Views : 1 )           »          How to use custom functions from Dlls (Last Post : dotnetuser - Replies : 0 - Views : 1 )           »          Flash Controls Not Displaying in Embedded File (Last Post : QADesign - Replies : 2 - Views : 3 )           »          Re: Where to Install fonts (Last Post : quality11 - Replies : 0 - Views : 1 )           »          Making a photo with rounded corners (Last Post : Linda Rathgeber - Replies : 3 - Views : 4 )           »          Online shop with barcode scanner (Last Post : Hunter Elliott - Replies : 1 - Views : 2 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 12-04-2008, 06:13 PM
JZBAO
 
Posts: n/a
Diggs:
Default Strip off markups of generic XML data with E4X

I have a generic XML file:

<nodes>
<node1 att1='abc' att2='xyz'>
<ele1> Hello </ele1>
<ele2> Hi </ele2>
...
</node1>
....
</nodes>

The tag and attribute names above can be anything. I need a generic method to
strip off the XML markups and display the contents as:

node1@att1: abc
node1@att2: xyz
node1.ele1: Hello
node1.ele2: Hi
....

How can E4X do this?




Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-04-2008, 06:33 PM
rtalton
 
Posts: n/a
Diggs:
Default Re: Strip off markups of generic XML data with E4X

e4x is for manipulating/navigating your xml. But you can use it inside a
for/each loop to look at your xml nodes and extract the strings without the xml
tags using toString().

Search the help docs for "XML type conversion" and see the toString() method
in action.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 10:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk