Solved

why cant I trace node-content

Posted on 2011-09-20
2
265 Views
Last Modified: 2012-05-12
Im trying to create a new xmllist based on the content of specific nodes in a xml.

trace(myXML.Row.(Column11=="8600");

which should mean that all rows, where Column11 consist of 8600, shoul be traced.

But for some reason i get an annoying message saying that  
ReferenceError: Error #1065: Variable Column11 is not defined.
      at MethodInfo-443()

This is the XML:

	<Row>
		<Column1>1</Column1>
		<Column11>8600</Column11>
	</Row>
	<Row>
		<Column1>2</Column1>
		<Column11>8450</Column11>
	</Row>
                     <Row>
		<Column1>3</Column1>
		<Column11>8600</Column11>
	</Row>

Open in new window


And the result I expect should be this:

	<Row>
		<Column1>1</Column1>
		<Column11>8600</Column11>
	</Row>
                     <Row>
		<Column1>3</Column1>
		<Column11>8600</Column11>
	</Row>

Open in new window

or am I missing something here.
0
Comment
Question by:petersego
2 Comments
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 36566780
i've upload an example of your code and i'm getting your expected output so not sure what you're doing wrong, if you don't find the difference check your publish setting. ee.zip
0
 

Author Closing Comment

by:petersego
ID: 36566915
Thanks, that made me search through my 3000 line xml-file, and it turned out that at some place Column11 were missing in a Row.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question