How to add namespace prefix like this - XML SOAP

This is a discussion on How to add namespace prefix like this - XML SOAP ; Hi there, I'm using VB6 by adding function to for modify xml file and I'd like to add namespace prefix in element node of xml like this... <TCDeGDEX:ExportCustomsDeclaration xmlns:TCDeGDEX="http:// ebxml.customs.go.th/schema/ExportDeclaration_3_11" xmlns:TDEDUNeDOC="http://ebxml.customs.go.th/schema/TDED_UNeDOCS.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:// ebxml.customs.go.th/schema/ExportDeclaration_3_11"> ..... ..... </TCDeGDEX:ExportCustomsDeclaration> You ...

+ Reply to Thread
Results 1 to 2 of 2

How to add namespace prefix like this

  1. Default How to add namespace prefix like this

    Hi there,

    I'm using VB6 by adding function to for modify xml file and I'd like
    to add namespace prefix in element node of xml like this...

    <TCDeGDEX:ExportCustomsDeclaration xmlns:TCDeGDEX="http://
    ebxml.customs.go.th/schema/ExportDeclaration_3_11"
    xmlns:TDEDUNeDOC="http://ebxml.customs.go.th/schema/TDED_UNeDOCS.xsd"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://
    www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
    ebxml.customs.go.th/schema/ExportDeclaration_3_11">
    .....
    .....

    </TCDeGDEX:ExportCustomsDeclaration>

    You will see that TCDeGDEX is a prefix of ExportCustomsDeclaration,
    but how to add from an existing xml file without errors.

    Please give me some example to solve this problem.

    Regards,

    Willow


  2. Default Re: How to add namespace prefix like this

    Uzytkownik "Willow" <rickyTH> napisal w wiadomosci
    news:1181028693.635513.172160@n15g2000prd.googlegroups.com...
    > Hi there,
    >
    > I'm using VB6 by adding function to for modify xml file and I'd like
    > to add namespace prefix in element node of xml like this...



    Adding a node you should add it in valid namespace. For examle (using DOM
    method): .createNode(1,'newNod','http://www.paranoja.org')

    --
    td
    www.paranoja.org



+ Reply to Thread

Similar Threads

  1. OpenXML with namespace and no prefix
    By Application Development in forum XML SOAP
    Replies: 2
    Last Post: 07-12-2007, 10:45 AM
  2. Specifying namespace prefix on WebMethod
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 12-28-2006, 05:27 PM
  3. XML Namespace Prefix
    By Application Development in forum XML SOAP
    Replies: 2
    Last Post: 11-01-2006, 01:49 PM
  4. Specifying namespace prefix?
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 10-16-2006, 12:23 PM
  5. Root Namespace Prefix and OpenXml
    By Application Development in forum XML SOAP
    Replies: 2
    Last Post: 06-27-2005, 09:34 AM