S
Steve Marshall
Hi All, I am working on a project which is based on XML data, with an
XML Schema also behind it in order to validate the data. In working
with the data I add and remove XML nodes all over the place, of
course. I've come across several situations where it would be really
nice to create a whole little subtree of empty XML elements without
having to build it up node by node. Surely there is a way to do
this? It occurred to me that I should be able to get the schema
object to generate such a thing if I give it an element name, since
the schema knows how the element and its descendants are all
structured. But thus far I haven't found a method that suggests this
is possible. Any tips? I'm using .NET 2.0 with Visual Studio 2005.
XML Schema also behind it in order to validate the data. In working
with the data I add and remove XML nodes all over the place, of
course. I've come across several situations where it would be really
nice to create a whole little subtree of empty XML elements without
having to build it up node by node. Surely there is a way to do
this? It occurred to me that I should be able to get the schema
object to generate such a thing if I give it an element name, since
the schema knows how the element and its descendants are all
structured. But thus far I haven't found a method that suggests this
is possible. Any tips? I'm using .NET 2.0 with Visual Studio 2005.