How to check IXMLDOMNode for null value - InfoPath Dev
in

InfoPath Dev

How to check IXMLDOMNode for null value

Last post 12-29-2005 07:18 PM by Matt Faus. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 12-27-2005 02:14 PM

    • mar
    • Top 500 Contributor
    • Joined on 09-04-2005
    • Poland
    • Posts 37

    How to check IXMLDOMNode for null value

    Im trying to check, if in my repeating table is a x value.
    IXMLDOMNode spr=thisXDocument.DOM.selectSingleNode("/my:f1/my:f2/my:table[my:workerid='"+x.nodeValue+"']");
    but i get an error if i try 'spr.text' or 'spr.nodevalue'. So, any spr.text/nodevalue==null is wrong.
  • 12-28-2005 12:58 PM In reply to

    • mar
    • Top 500 Contributor
    • Joined on 09-04-2005
    • Poland
    • Posts 37

    Re: How to check IXMLDOMNode for null value

    Ok, i've got it. Node!=null, not node.text!=null or node.nodevalue!=null.... Stupid mistake...
  • 12-29-2005 07:18 PM In reply to

    Re: How to check IXMLDOMNode for null value

    Also, you can just do this:

    if( Node )
    {
    // node is not null
    }

    ---------------
    Matt Faus
    InfoPath Dev Texas
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.