I would like to extend the functionality of XmlDocument and XmlElement to make it easier to add new children, multiple values at once, etc, for example this function would be useful:
Public Function AddValues(paramarray NameThenValue() as object)
Dim x as XmlElement
OK I know this isn't supposed to be possible, because you can't be sure the object is really of the derived class (can't cast a mammal as a cat because it might be a dog, etc).
The thing is, I have a legitimate need to achieve this somehowand see no problem in this circumstance. I'm writing a...
I recently joined a new development team (developing mission critical financial services systems) and was horrified to find that they created XML using StringBuilder, and even worse sometimes, by string arrays & increments. Adjustments to XML were sometimes as terrible as stripping of last...
Weird. This code produces Nothing instead of "":
Public Function get_value(Optional ByVal alternative_value As String = "") As Object
dim d as object = get_value()
Why ideas why? It should return "" instead of Nothing as that's the parameter's...