Retrieving a Namespace from a URN String

The code below takes a string variable (NodeName) and parses out the Namespace. Creating a xmlnode(Activexml). This node could then be maipulated further or appended to a XMLDOC. --example Nodename = http://myschemaname:mypropname would produce activexml.xml --example Nodename = DAV:contentclass would produce activexml.xml

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish