.NET and XML
.NET and XML Contents
Summary An example to check if the XML elelemt is empty or not.
What do I mean with an empty element? Simple, an empty element doesn't have a closing tag. These elements opens and closes in one tag. To close the tag you have to use / at the end of the tag. The following is an empty element. Notice the / at the end of the tag.
So how do you check whether this is an empty element or not with the XmlTextReader class? Luckily the XmlTextReader provides a property called IsEmptyElement. It will return true if it is an empty element and false if it isn't.
Partners
Dream.In.Code dotNet Slackers dotNet Spider Your HTML Source VisualBuilder.com DevGuru Planet Source Code ZVON.ORG Web Design ASPAlliance XML Pitstop Scripts
The Spot 4 SAP Bitshop Web Hosting