Skip to Content
0
Former Member
Apr 21, 2010 at 12:22 PM

XML Validation failing for empty value in Node

76 Views

Hi All,

In my incoming XML, the element may or may not have an value.

ie:- <ELEMENT1>abc</ELEMENT1>

<ELEMENT1></ELEMENT1>

I have found the regular expression , when the value is present. But when there is no value, I could not find a matching Regular Expression. So the XML validation fails, every time the value is not present.

Can some one suggest an Regular Expression for the second case?

Regards,

SS

Edited by: Subhendu Sahu on Apr 21, 2010 12:26 PM