Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
Freestyle MD #1
How do I test for empty XML Node ?
if (selectedImage.detail != "")
works with
<image detail="">
</image>
but not
<image>
<detail></detail>
</image>
Hope that makes sense to someone, can't really think how to explain it any
better, I'm sure it's a simple enough thing
Freestyle MD Guest
-
Tree RTE when closing empty node
I'm using Flex 2. I have a tree with an XML list collection as data provider. I have used isBranch="true" in the XML to indicate empty nodes that... -
#38768 [NEW]: addChild to an empty node doesn't add a child
From: vondi at vondi dot no-ip dot com Operating system: Linux PHP version: 5.1.6 PHP Bug Type: SimpleXML related Bug... -
ASP how to test if text is empty or no value
Hi all, Whats the code to test if the text in a form is empty??? Is it if ( firstName = "" ) then Response.Write "Error in... -
#25885 [Opn->Csd]: mail() causes apache2 to crash when message is empty, and headers is non-empty
ID: 25885 Updated by: sniper@php.net Reported By: ben at krackeler dot com -Status: Open +Status: ... -
#25885 [NEW]: mail() causes apache2 to crash when message is empty, and headers is non-empty
From: ben at krackeler dot com Operating system: WinXP PHP version: 4.3.3 PHP Bug Type: Mail related Bug description: ... -
ntsiii #2
Re: How do I test for empty XML Node ?
I am not clear. Are you trying to find the detail nodes where the text node is empty?
Tracy
ntsiii Guest
-
ntsiii #3
Re: How do I test for empty XML Node ?
If so, try:
if (selectedImage.detail.text().length() == 0)
Tracy
ntsiii Guest
-
ntsiii #4
Re: How do I test for empty XML Node ?
Also look at hasChildren() and hasSimpleContent()
Tracy
ntsiii Guest
-
Freestyle MD #5
Re: How do I test for empty XML Node ?
[q]Originally posted by: ntsiii
I am not clear. Are you trying to find the detail nodes where the text node
is empty?
Tracy[/q]
Yes - so that I can explicitly ignore them.
Seems that all I needed to do was if(!selectedImage.detail)
Thanks for replying - despite my not knowing how to phrase the question.
Freestyle MD Guest



Reply With Quote

