How to test for the node XML empty?

If (selectedImage.detail! = "")

works with
< picture detail = "" >
< / image >

but not

< image >
< detail > < / details >
< / image >


Hope that makes sense for a person, can't think really how to explain it better, I'm sure it's a fairly simple thing

Quote:
Posted by: ntsiii
I did not understand. You try to search the nodes in detail where the text node is empty?
Tracy

Yes - for that I can't ignore explicitly their.

Seems that all I had to do was if(!selectedImage.detail)

Thanks for the reply - despite my not knowing how to phrase the question.

Tags: Flex

Similar Questions

  • How to 'Allow smoothing' for the loaded XML .jpg?

    I have a thumb wheel image that loads a bunch of jpg. They are be enlarged rollover in 1,05.

    I've seen pixelated at scale 1 x 1 as well as expanded.

    I'm happy prettey how Flash renders the images with "Allow smoothing" on.

    How would I do it for the loaded xml jpg? Would it be as a script in the main folder or in the xml file?

    Here's how to load images in AS3:

    function completeHandler_AppPopUps(e:Event):void{
              //trace("thumbnail complete "+e.target.loader.parent.parent.name)//tells us when the loading is complete
    
              //size image into scroller (need only if I will have images at different sizes)
              resizeMe(e.target.loader.parent, 60, 90, true, true, false);
    
              TweenMax.to(e.target.loader.parent.parent, .5, {alpha:.7});//makes all thumb images at alpha=.7 after they are fully loaded
              //Tweener.addTween(e.target.loader.parent.parent, { alpha:1, time: .5 } );//caurina version
    
              TweenMax.to(e.target.loader.parent.parent, .5, {colorMatrixFilter:{contrast:1.1, brightness: .7, saturation: .5}});//makes all thumb images at brightness:0.5 after they are fully loaded
    
    
    }
    
    

    I don't want to complicate things more than necessary, but just in case it's needed here is the complete code for the edification of the wheel section:

    /////Parse XML
    //build scroller from xml
    function buildScroller(imageList:XMLList):void{
              trace("build Scroller");
    
              for (var item:uint = 0; item<imageList.length();item++) {
                        var thisOne:MovieClip = new MovieClip();
    
                        //outline
                         var blackBox:Sprite = new Sprite();
                        blackBox.graphics.beginFill(0xFFFFFF);
                        blackBox.graphics.drawRect(-1, -1, 62, 92);//-1,-1 places rectangle 1px left and up.62, 92 draws rectangle 1px wider on all sides of placed image dimenstions of 60x90
                        blackBox.alpha = thumbFadeOut;//setting Border Tweens
                        thisOne.addChild(blackBox);
                        thisOne.blackBox = blackBox;//setting Border Tweens
    
                          thisOne.x = thisOne.myx = (60 + padding) *item;//replaces the line above for scale tweenw roll over calculation. "myx" is a made up term which defines the position. 61 is the width of the thumb
                        thisOne.itemNum = item;
                        thisOne.title = imageList[item].attribute("title");
                        thisOne.link = imageList[item].attribute("url");
                        thisOne.src = imageList[item].attribute("src");
                        thisOne.alpha = 0;//makes all thumb images at alpha=0 before they are fully loaded
    
                        //Loading and Adding the Images
                        //image container
                        var thisThumb:MovieClip = new MovieClip();
                        //add image
                        var ldr:Loader = new Loader();
                        //var url:String = imageList[item].attribute("src");
                        var urlReq:URLRequest = new URLRequest(thisOne.src);
                        trace("loading thumbnail "+item+" into Scroller: " + thisOne.src);//url
                        ldr.load(urlReq);
                        //assign event listeners for Loader
                        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler_AppPopUps);//tells us when the loading is complete
                        ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler_AppPopUps);//tells us if there are any typo errors when the loading is complete
                        thisThumb.addChild(ldr);
                        thisOne.addChild(thisThumb);
    
                        //create listeners for this thumb
                        thisOne.buttonMode = true;//makes boxes act as buttons
                        thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem_AppPopUps);//makes boxes act as buttons
                        thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem_AppPopUps);//traces the title when the mouse is over the bounding box in the Output Panel
                        thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem_AppPopUps);//traces the title when the mouse is out the bounding box in the Output Panel
    
    
    
                        //add item
                        scroller.addChild(thisOne);
              }
              scroller.addEventListener(Event.ENTER_FRAME, moveScrollerThumbs);//adding movement on mouse position
              trace("termination of build scroller");
    
    }
    
    
    

    in your listener to full charge, enable the property smoothing to the content of your charger (expressed as a bitmap).

    function completeHandler_AppPopUps(e:Event):void{

    Bitmap(e.currentTarget.loader.content).smoothing=true;
              //trace("thumbnail complete "+e.target.loader.parent.parent.name)//tells us when the loading is complete

    //size image into scroller (need only if I will have images at different sizes)
              resizeMe(e.target.loader.parent, 60, 90, true, true, false);

    TweenMax.to(e.target.loader.parent.parent, .5, {alpha:.7});//makes all thumb images at alpha=.7 after they are fully loaded
              //Tweener.addTween(e.target.loader.parent.parent, { alpha:1, time: .5 } );//caurina version

    TweenMax.to(e.target.loader.parent.parent, .5, {colorMatrixFilter:{contrast:1.1, brightness: .7, saturation: .5}});//makes all thumb images at brightness:0.5 after they are fully loaded

    }

  • How can I get the original xml code to a webservice called...

    I use WL 10.3.

    I created a WebService using WSDL as a starting point. The Web service is running as it should, but now I want to go back to the original XML that was passed in.

    I tried to collect the data to a string using JAXB, but he complains that there is no notation for @XmlRootElement - so, who does not work.

    I also tried to access the original data by injecting the WebServiceContext, but this value is always zero (not sure why that doesn't work)...


    Is someone can you PLEASE tell me how can I get the original XML code?

    You can use managers to this end, for example,

    package server.handlers;
    
    import javax.xml.transform.Source;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.ws.LogicalMessage;
    import javax.xml.ws.handler.LogicalHandler;
    import javax.xml.ws.handler.LogicalMessageContext;
    import javax.xml.ws.handler.MessageContext;
    
    public class ServiceLogicalHandler implements LogicalHandler {
    
        public boolean handleMessage(LogicalMessageContext context) {
            Boolean direction = (Boolean) context.get(LogicalMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (direction) {
                System.out.println("LOGICAL - DIRECTION IS OUTBOUND");
            } else {
                System.out.println("LOGICAL - DIRECTION IS INBOUND");
            }
            return true;
        }
    
        public boolean handleFault(LogicalMessageContext context) {
            Boolean direction = (Boolean) context.get(LogicalMessageContext.MESSAGE_OUTBOUND_PROPERTY);
            if (direction) {
                System.out.println("LOGICALFAULT - DIRECTION IS OUTBOUND");
    
                LogicalMessage message = context.getMessage();
                Source payload = message.getPayload();
                try {
                    Transformer transformer = TransformerFactory.newInstance().newTransformer();
                    transformer.transform(payload, new StreamResult(System.out));
                } catch (TransformerException ex) {
                    ex.printStackTrace();
                }
            } else {
                System.out.println("LOGICALFAULT - DIRECTION IS INBOUND");
            }
            return true;
        }
    
        public void close(MessageContext context) {
        }
    }
    

    More information on managers can be found here: http://www.javaworld.com/javaworld/jw-02-2007/jw-02-handler.html

  • How can I make the popup with empty fields and create new record?

    I would use a popup create new record.
    I created an af:popup drag and drop a data control VO in jsff. Then, I created a button and place an af:showPopupBehavior. I was able to pop-up window by clicking on the button.
    However, the window filled with information from the record 1. and when I select a record in the table and click on the popup, the popup is filled with this record.
    How can I make the popup with empty fields and create a new record by recording the popup?
    Thank you

    Hello

    You must call the CreateInsert for the underlying ViewObject operation when opening the popup because it does not allow to clear the input field, you must have a new record created

    Frank

  • HOW can I FIND THE CARTRIDGES ARE EMPTY AND that it FAULT REPLACE HP printer fax C309 using windows 7

    HOW can I FIND THE CARTRIDGES ARE EMPTY AND that it FAULT REPLACE HP printer fax C309 using windows 7

    Hello

    Please use one of the following methods:

    http://support.HP.com/us-en/document/c00257147

    Kind regards.

  • How to register for the web when all options gif gives me an error message?

    How to register for the web when all options gif gives me an error message? I have a tent to save a cinemagraphs.com second 8 and me still get an error message.Screen Shot 2015-09-30 at 7.44.08 PM.png

    Hi badasshe,

    Please reset the Photoshop preferences and then try.

    Steps to follow:

    To re-create the Photoshop preferences files, start the application while pressing Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop settings file?"

    Reference: preference file works, names, places | Photoshop CS5

    Let us know if it helps.

    Kind regards

    ~ Mohit

  • Liquid markup - how to use (for the rest of us)?

    I read a lot of things in the developer section BC liquid. Clearly for the programmers out there, it's like plain English what she gets. However, for the rest of us, designers and our customers, there are large gaps in the way it is presented. It assumes that we have a basic understanding of the functions on the server side and on the side of customer calls. I would say it seems intense collaboration between the province of British Colombia and the "expert" group of advisers in the liquid application with BC is ahead of the rest of the customers of BC scratching their heads.

    What seems to be missing is the step by step guides that BC developed for its previous syntax, with examples for each module, even examples of HTML work. And does not suggest that it subscribes to a course of Liquid by a third party. BC made the changes, and I'm expecting BC to provide the best documentation, guides, and tutorials.

    For example, after reading and re-reading the liquid documentation BC (for developers) I googled liquid to see if anyone had made any sense it to '' the rest of us. '' I came across a tutorial (Infinite business catalyst product detail Layouts |) Joe Watkins | Adobe Business Catalyst tutorials - tips & tricks) which explained mustache (a solution javascript much debated and turned in derision by some people in this forum; although debate reads like a pretty eyes and devoid of logic for "the rest of us"). Now before you say that moustache is not the same thing, etc. client-side's point was that it was EASY to understand. BC seems to have forgotten the "rest of us" in his excitement.

    BC seems to have become more complex than ever, creating a wide gap between those who are experienced programmers and customers who wanted a simple CMS to manage their Web site. I am sure that liquid offers brilliant functional solutions, but it can be difficult to access without understanding how to use it.

    However, attractive interface and functionality of Squarespace we makes you wonder what is happening on Earth at BC. You can all you like to argue about the technology behind Squarespace, but it totally works on BC in the way in which it is marketed, presented and used by the very market that BC is intended.

    I hope that BC, with the release of liquid, at least with a "how to use (for the rest of us).

    I can't help to wonder if the redevelopment of Colombia-British got hijacked by the developers, when he should have been hijacked by marketing initially.

    Hey Simon,

    Its a templating language and the programming language basic, must never anything the customer needs to see, touch or concern. We have been running the stuff of bedbugs in brass on the liquid for a few months and I know the sandpile a running as well things - I think that say there are a lot of people happy and I have not seen a case of head scratching total with everyone. Some people of course, but you must also be aware that liquid is not final, it isn't here for all sites and developers forum is above all the work to ensure that it has the features he needs, his work at 100% and ready for prime time. With this documentation is largely up to date in many areas and guides etc will.

    You have all these:

    Developers

    And the ready reference information and existing code snippets in - the Developer Reference

    But like I said, its not direct things yet if are still ongoing, evolving and updated.

    In terms of saying moustache - it is pretty much the same language in many ways - much the creation of models of language are.

    In terms of BC - they tried the simple way, they went with Muse, they did more with the ice, the more simple things - BC has not progressed and lost big BC partners etc. Dreamweaver saw what he removed from the main application and so on. BC needs to move forward and this is the real way forward, must pick up digital agencies, many sites of coherent long-term based on the platform so that it can develop. Of course, Squarespace has a nice interface in version 7, but have you used? VERY limiting, your will not build sites Web tailored to your customers that meet the needs of their online business can grow.

    But yes, what your ask Simon, is already past and you have to remember the liquid is NOT yet final.

  • How can I (for the love of God) cancel the membership creative cloud

    How do I (for the love of God) can I cancel membership creative cloud?

    Cancel your subscription or membership. Creative cloud

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

  • How to check for the two first digits?

    Can someone please... There is demand to have a hidden field on the form that will be filled with data. It's going to be 6 digits long and could start with 02 or 04. I need to check on the DocReady event, for the first two digits. If the first two digits are 02, the presentation of the form will remain as it is. If the first two numbers are 04, I'll have to show two hidden subforms. Can someone please provide an explanation on how to check for the first two digits of field 6 digits and do some actions.

    Thank you very much

    No, only in the event: Exchange.

  • How to get the value of the node xml strings

    Hello world

    I have the table with a varchar2 column that contains the XML nodes like this
    create table test (REC_ID Number(8), xml_value varchar2(4000));
    insert into test values (1000, '<id=''10'' data=''some data'' ref=''qq1''/> <id=''12'' data=''some other data'' ref=''qw2'' />');
    insert into test values (1111, '<id=''99'' data=''some X data'' ref=''rty''/> <id=''88'' data=''final data'' />  <id=''77'' data=''final data2'' />');
    for a line, there are several basic xml nodes. I want to get a result like this:
    Rec_ID  xml_value_ID  xml_value_DATA
    1000     10               some data
    1000     12               some other data
    1111     99               some X data
    1111     88               final data
    1111     77               final data2
    What would be the best way of performance to achieve that?

    Thank you very much

    I just thought that this could be done by tech oracle xml.

    It would be possible if it was XML data, but it is not.

    A valid XML element have a tag name, for example:

    
    

    That being said, we can cheat and generate a valid XML fragment out of your data by inserting the name of tag in front of 'id ':

    SQL> select t.rec_id
      2       , x.xml_value_id
      3       , x.xml_value_data
      4  from test t
      5     , xmltable(
      6         '/item'
      7         passing xmlparse(content replace(t.xml_value, '
    

    Second option, the analysis with regexp:

    SQL> select rec_id
      2       , regexp_substr(x.column_value, 'id=''([^'']+)''', 1, 1, null, 1) as value_id
      3       , regexp_substr(x.column_value, 'data=''([^'']+)''', 1, 1, null, 1) as value_data
      4  from test t,
      5       table(
      6         cast(
      7           multiset(
      8             select regexp_substr(t.xml_value, '<[^>]+>', 1, level)
      9             from dual
     10             connect by level <= regexp_count(t.xml_value, '<[^>]+>')
     11           )
     12           as sys.odcivarchar2list
     13         )
     14       ) x
     15  ;
    
       REC_ID VALUE_ID           VALUE_DATA
    --------- ------------------ -----------------------
         1000 10                 some data
         1000 12                 some other data
         1111 99                 some X data
         1111 88                 final data
         1111 77                 final data2
     
    

    (needs 11 Oracle for the function REGEXP_COUNT)

  • test for the empty string w / javascript

    Hi - quick question.

    I have a region of javascript to disable some elements on the page if they are not null. (Cannot use the State read-only in this case.)

    What I have tried is the following:

    If (valueOf(&P202_KEY_NAME1.)! = ") {}
    document.getElementById("P202_KEY_NAME1").disabled = true;
    }

    (These are 2 quotes at the end).

    This comparison will fail with an error when there is a value in P202_KEY_NAME1.

    I also tried just so (valueOf (& P202_KEY_NAME1)) ... But it always seems
    true test... even when the element is empty.

    What kind of point of reference and comparison I need here? They are elements of text.

    Thank you
    Carol

    You're using valueOf() incorrectly.

    Please look at the documentation: http://www.w3schools.com/jsref/jsref_valueOf_boolean.asp; so you'd like: var_name.valueOf)

    But anyway, valueOf really only works with a boolean object. Your agenda of the page would be an element of the string.

    Just do: if (& P202_KEY_NAME1. is 'true') {/ todo}? (edit: of course, which is, assuming that it is the value of the element of your page contains - I do not know what is in your article)

    Van
    Trent

    Published by: trent on December 29, 2010 13:32

  • How to get just the nodes without showing the URI in sem_match?

    Hello


    I try only to retrieve all individuals in an rdf/xml ontology of test without displaying the uri. I tried strafter () and replace the functions in the filter clause to the query of sem_match without success. The uri will not go away. This is the query:

    Select one

    table (sem_match ('{? a RDF: type: a.? a: seqNumber? n.}))

    filter (strafter (str(?a), ""http://www.example.com/test.owl# ""))

    }',

    sem_models ('test'),

    NULL,

    sem_aliases (sem_alias (", 'http://www.example.com/test.owl#')),

    order of null)) by one


    I changed () () to replace strafter. The result is always the same.

    Select one

    table (sem_match ('{? a RDF: type: A.}))

    Filter (Replace (STR(?a), ""http://www.example.com/test.owl# "," ""))

    }',

    sem_models ('test'),

    NULL,

    sem_aliases (sem_alias (", 'http://www.example.com/test.owl#')),

    (null)) ORDER BY one


    Here are the results:

    http://www.example.com/test.OWL#A1

    http://www.example.com/test.OWL#A2

    http://www.example.com/test.OWL#A3

    http://www.example.com/test.OWL#A4

    http://www.example.com/test.OWL#A5

    http://www.example.com/test.OWL#A6

    http://www.example.com/test.OWL#A7

    http://www.example.com/test.OWL#A8


    How can I get just the nodes without showing the uri? Where am I wrong in the query? I know that I can add some annotations to the label so that I can get just the nodes. but it will more data entry. Thank you very much in advance.


    Hong

    Salvation Hong,

    SEM_MATCH returns 8 columns for each variable (var, var, var$ _PREFIX, $RDFVID, $ var, var$ _SUFFIX RDFVTYP, var$ RDFCLOB, var, var and $RDFLTYP$ RDFLANG). var$ _SUFFIX is what you are looking for.

    Select a _suffix $

    table (sem_match ('{? a RDF: type: A.}',))

    sem_models ('test'),

    NULL,

    sem_aliases (sem_alias (", 'http://www.example.com/test.owl#'));

    (null)) ORDER BY;

    Thank you
    Matt

  • How to test if a directory is empty

    I have to test if a directory is empty or not.
    How can I do it in a simple way?
    Thank you

    OdiFileWait use tool in a package
    and 'Répertoire' and 'File name mask' property to check if a directory is empty or not.
    There is another property "error if no file found". This can be used for a condition of KO to check if the directory is empty.

  • How to test if the pc is connected to the TCP/IP protocol?

    Hello

    I have a VI how should the data received from another PC, using a TCP/IP connection.

    My VI could connect, receive data, but if I lose the connection im not able to reconnect, because I do not know how to test if my pc is connected to the other.

    Thank you for your help,

    Best regards

    salim_mjs wrote:

    Hey,.

    I was checking for error 66, I think that it check if the connection has been closed in order to reconnect

    do you not think that the error 56 or 60 are better?

    with respect,

    56 is the time-out. This will depend on your remote service if this should be considered as error or ignored. If it is a server application, it should certainly be able to respond within the time limit. But if your host application is the server and the remote application is the client it is very common to receive a time-out error when querying the client if it has new data to send.

    Order the examples mentioned previously, they really give you a good idea on how TCP/IP network communication must all work, even if there is still a lot to improve to create a truly reliable connection. But start from there come back if you get into trouble.

    Rolf Kalbermatter

  • How do you use the config.xml file to determine which version of an application, a user will download?

    I have two APKs for the same application and I implemented the config.XML of lower version number working for all screen sizes.  The config.XML for the higher version number is set up for only the scresns large and extra-large.  Here's the code from the config.xml file.

    Version 1

    < media screens android: anyDensity = "true" android: Center = 'true '.
    Android: smallScreens = "true".
    Android: normalScreens = 'true '.
    Android: largeScreens = "true".
    Android: xlargeScreens = "true" / >

    Version 2

    < media screens android: anyDensity = "true" android: Center = 'true '.
    Android: smallScreens = "false".
    Android: normalScreens = "false".
    Android: largeScreens = "true".
    Android: xlargeScreens = "true" / >

    When I try to download the app on Google game, only the top version is available, regardless of the size of the unit.  When I asked Google game why this was not behave as expected, they said that the file manifest for both applications is the same.  Here is the code, they shot in the manifest after having used PhoneGap Build.

    < media screens android: anyDensity = "true" android: smallScreens = "true" android: normalScreens = "true" android: largeScreens = "true" android: Center = "true" android: xlargeScreens = "true" / >

    Can someone explain why PhoneGap Build is not using the settings I set in the config.xml file?  And how to fix this?

    The tag is not a valid tag in the config.xml file. This is probably why you see the same tag in two, as the build service is ignorant.

    As to how solve you this problem. Currently, you can not, but the next version of android-cordova will include the ability to add a tag which you will be able to use like this:

Maybe you are looking for

  • Cliq xt Scrobbling

    Add to my list of questions. My Cliq XT does not scrobble to Last.Fm, even though I have scrobbling enabled in the Last.Fm application. The connected player seems to not be as connected as I thought it was. I'm really starting to regret an upgrade to

  • DirectX10.1

    Dear Sir or Madam! I use Windows 7 Ultimate x 86 and Palit GeForce 9600GT 512 MB card graphics with DX10 support for games. I have red that some using Vista and it has a graphics card with the same support DX and there install Service Pack 1 for Vist

  • Cannot find a driver for Belkin P81989A Wireless G Notebook Card Plus

    Cannot find a driver for Belkin P81989A Wireless G Notebook Card Plus

  • How to adapt the start screen on all webworks App blackberry blackberry devices?

    I'm working on blackberry webworks app targeting blackberry 7 & lower OS versions. I have a 360 x 480 pixels boot image that adapts perfectly to the BlackBerry curve Smartphone 9380. But the same splash image does not fit into other devices with diff

  • Live webcam updated Microsoft - 3039 error 65543

    Updated slow running PC and have upped its Norton with error message following and recommended to remove any other security software. Removed 'PC Doctor' but still get the error like before Live Update - 3039 65543 error I use Windows Live Mail - so