?
Solved

why cant I trace node-content

Posted on 2011-09-20
2
Medium Priority
?
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 39

Accepted Solution

by:
blue-genie earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
Suggested Courses

777 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