RE: [Flashcoders] contract/FT position (Paris/Europe)

2011-07-22 Thread Mendelsohn, Michael
Hi list...

The second line returns an XMLList only if the first line (bug) isn't commented 
out.  If the first line is commented out, the second line returns null. 
How can it be possible that the second line's result depends on the first line 
running?

Thanks,
- Michael M.

var bug:XMLList = topic..asset.(hasOwnProperty(@title));
var xmlList:XMLList = topic.descendants(*).(hasOwnProperty(@title)  
(@title == Presentation));



topic title=my topic
menu
  section type=pubs
asset id=i type=doc fileName=doc.pdf//section
  section type=media
asset id=a title=Presentation fileName=pres.pptx/
asset id=b title=animation fileName=flash.swf/
  section type=info
asset id=c title=questions/
asset id=d title=something/
/section
 /menu
/topic

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] contract/FT position (Paris/Europe)

2011-07-22 Thread Eric E. Dolecki
I guess it depends if it's Paris or just Europe in general.

On Fri, Jul 22, 2011 at 2:06 PM, Mendelsohn, Michael 
michael.mendels...@fmglobal.com wrote:

 Hi list...

 The second line returns an XMLList only if the first line (bug) isn't
 commented out.  If the first line is commented out, the second line returns
 null.
 How can it be possible that the second line's result depends on the first
 line running?

 Thanks,
 - Michael M.

 var bug:XMLList = topic..asset.(hasOwnProperty(@title));
 var xmlList:XMLList = topic.descendants(*).(hasOwnProperty(@title) 
 (@title == Presentation));



 topic title=my topic
 menu
  section type=pubs
asset id=i type=doc fileName=doc.pdf//section
  section type=media
asset id=a title=Presentation fileName=pres.pptx/
asset id=b title=animation fileName=flash.swf/
  section type=info
asset id=c title=questions/
asset id=d title=something/
 /section
  /menu
 /topic

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] contract/FT position (Paris/Europe)

2011-07-22 Thread Mendelsohn, Michael
Perfect answer Eric!  :-)

 I guess it depends if it's Paris or just Europe in general.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] contract/FT position (Paris/Europe)

2011-07-22 Thread Kenneth Kawamoto

That's not valid XML

Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 22/07/2011 19:06, Mendelsohn, Michael wrote:

Hi list...

The second line returns an XMLList only if the first line (bug) isn't commented 
out.  If the first line is commented out, the second line returns null.
How can it be possible that the second line's result depends on the first line 
running?

Thanks,
- Michael M.

var bug:XMLList = topic..asset.(hasOwnProperty(@title));
var xmlList:XMLList = topic.descendants(*).(hasOwnProperty(@title)  (@title == 
Presentation));



topic title=my topic
menu
   section type=pubs
 asset id=i type=doc fileName=doc.pdf//section
   section type=media
 asset id=a title=Presentation fileName=pres.pptx/
 asset id=b title=animation fileName=flash.swf/
   section type=info
 asset id=c title=questions/
 asset id=d title=something/
/section
  /menu
/topic

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] contract/FT position (Paris/Europe)

2011-07-22 Thread Merrill, Jason
 topic title=my topic
 menu
section type=pubs
  asset id=i type=doc fileName=doc.pdf//section
section type=media
  asset id=a title=Presentation fileName=pres.pptx/
  asset id=b title=animation fileName=flash.swf/
section type=info
  asset id=c title=questions/
  asset id=d title=something/ /section
   /menu
 /topic

 That's not valid XML

(fyi It's missing the /section closing tag on the third section node.)

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 



--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] contract/FT position (Paris/Europe)

2011-07-22 Thread Merrill, Jason
(fyi It's missing the /section closing tag on the third section node.)

I meant the second node, not third...

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 





___


-Original Message-
From: Merrill, Jason 
Sent: Friday, July 22, 2011 5:04 PM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] contract/FT position (Paris/Europe)

 topic title=my topic
 menu
section type=pubs
  asset id=i type=doc fileName=doc.pdf//section
section type=media
  asset id=a title=Presentation fileName=pres.pptx/
  asset id=b title=animation fileName=flash.swf/
section type=info
  asset id=c title=questions/
  asset id=d title=something/ /section
   /menu
 /topic

 That's not valid XML

(fyi It's missing the /section closing tag on the third section node.)

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 



--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses. 

References to Sender are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link: 
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] contract/FT position (Paris/Europe)

2011-07-22 Thread Karl DeSaulniers

Hi Michael,
Try your xml like this..

topic title=my topic
menu
  section type=pubs
asset id=i type=docdoc.pdf/asset
/section
section type=media
asset id=a title=Presentationpres.pptx/asset
asset id=b title=animationflash.swf/asset
/section
section type=info
asset id=c title=questions/asset
asset id=d title=something/asset
/section
/menu
/topic

or

topic title=my topic
menu
 section type=pubs
asset id=i
typedoc/type
filenamedoc.pdf/filename
/asset
/section
section type=media
asset id=a
titlePresentation/title
filenamepres.pptx/filename
/asset
asset id=b
titleanimation/title
filenameflash.swf/filename
/asset
/section
section type=info
asset id=c
titlequestions/title
/asset
asset id=d
titlesomething/title
/asset
/section
/menu
/topic

I find the latter may be a little more work to build, but easier to  
work with code wise. But that may just be me.
As far as your xmlList:XMLList not working, it is probably because of  
the unclosed section tag.
All the asset tags are closed properly and so it can search through  
those, but when you say descendants,
that includes the section tags and they are broken if they are not  
all closed properly.
So the second is not actually dependent on the first, the second  
can't complete.



Best,
Karl


On Jul 22, 2011, at 3:15 PM, Kenneth Kawamoto wrote:


That's not valid XML

Kenneth Kawamoto
http://www.materiaprima.co.uk/

On 22/07/2011 19:06, Mendelsohn, Michael wrote:

Hi list...

The second line returns an XMLList only if the first line (bug)  
isn't commented out.  If the first line is commented out, the  
second line returns null.
How can it be possible that the second line's result depends on  
the first line running?


Thanks,
- Michael M.

var bug:XMLList = topic..asset.(hasOwnProperty(@title));
var xmlList:XMLList = topic.descendants(*).(hasOwnProperty 
(@title)  (@title == Presentation));




topic title=my topic
menu
   section type=pubs
 asset id=i type=doc fileName=doc.pdf//section
   section type=media
 asset id=a title=Presentation fileName=pres.pptx/
 asset id=b title=animation fileName=flash.swf/
   section type=info
 asset id=c title=questions/
 asset id=d title=something/
/section
  /menu
/topic

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders