Solved

why cant I trace node-content

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

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,…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

729 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