xml documentfragment namespaces  
Author Message
DeanMay





PostPosted: Top

Visual Basic [VB] >> xml documentfragment namespaces

I am creating a fragment for my xml and trying to insert it into my
xmldocument.

however, some of the child elements in the fragment need to have a
namespace prefix, yet when I assign this to the innerxml property, I
get an error saying that the prefix is not a namespace (or something
similar).

I've tried using the namespacemanager, adding this prefix as a
namespace. I finally had to resort to creating it with the
CreateElement method. I'd prefer to use the fragment since its easier
to use.

Has anyone use namespaces within a document fragment successfully.
This is vb.net 2003.

i.e. <xi:include href="xxxxx" />

Visual Studio356