17 Replies Latest reply on Jun 14, 2007 8:22 AM by MCL97

    Test for null node in xml structure?

    brettskiii
      Hi,

      How do I test if a node in an xml document exists?

      doing this returns an error if it doesn't exist.

      x = myxmldoc["my-list"]["my-item] ["user-id"]["xmltext"];

      "Element user-id is undefined in a Java object of type class coldfusion.xml.XmlNodeList."

      Any help would be much appreciated..

      Many thanks.! :)