Solved

why cant I trace node-content

Posted on 2011-09-20
2
260 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

929 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now