tags:

views:

19

answers:

1

Hello all,

I'm using VB.NET to generate some XML files from a Dataset. Now when I have an empty field in the dataset, the resulting XML element for it is like:

<Example1 />

The problem is that I don't want the tag to look like this! if it's empty, I want it to look like:

<Example1></Example1>

Any ideas ???

A: 

I could suggest you look into using the Regex.Replace method to search your generated XML and replace strings of pattern with pattern

Shawn de Wet