Cor,
What I wound up doing:
Len(lXMLDoc.SelectSingleNode("myxml/element1").InnerXml) > 0
This doesn't check to see if any of the other elements are empty, but
in the case that I'm trying to trap for if element1 is empty, the
other elements are empty as well.
It seems like there would be some built-in property that would let me
do this.
-Eric
"Cor Ligthert" <no**********@planet.nl> wrote in message news:<uY**************@TK2MSFTNGP11.phx.gbl>...
Eric,
I think that I would do it by looping through the String char by char, set a
switch when the char is ">" and than see if the next char is "<" when not I
would probably set a switch and exit the loop.
(probably I would not use a switch however to tell you).
\\\something like this not tested typed here, Dim CharOpen as Boolean
For i As Integer = 0 To myStr.Length - 1
If CharOpen = True
If myStr.Char(i) <> "<"c Then
'Is not empty
end if
If myStr.Chars(i) = ">"c Then
CharOpen = True
Else
CharOpen = False
end if
Next
////
It can as well with a for each mychar as char in mystr
I hope this helps?
Cor