xml documentfragment namespaces

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • marfi95

    #1

    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 namespacemanage r, 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" />

Working...