replacing default namespace - InfoPath Dev
in

InfoPath Dev

replacing default namespace

Last post 01-31-2006 11:14 PM by tatopitta. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-31-2006 09:09 AM

    replacing default namespace

    Hi all,
    how can i change the default namespace "my:" with something else like "ns0:"?I tried replacing all my: with ns0 but it doesn't work!
  • 01-31-2006 10:30 AM In reply to

    Re: replacing default namespace

    Hi,
    when you want to change default namespace "my" , you have to do some changes to schema.xsd file manually

    Before changing,
    <xsd:schema targetNamespace="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-01-31T18:02:35" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-01-31T18:02:35" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    When you want change “my” to “ns0”,

    Ns0 namespace and targetnamespace should be same and you want apply this to elements you have to put elementFormDefault="qualified" and for not attributes you have to put attributeFormDefault="unqualified" ,

    After changing
    <xsd:schema targetNamespace="http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" xmlns:ns0="http://xxxxxxxxxxxxxxxxxxxxxxxxxxx" xmlns:xsdhttp://www.w3.org/2001/XMLSchema elementFormDefault="qualified" attributeFormDefault="unqualified">

    I hope this will help you,

    K.Ramana Reddy
    Infopath Dev India
    K.Ramana Reddy / http://www.ggktech.com
    India.
  • 01-31-2006 11:14 PM In reply to

    Re: replacing default namespace

    Thank u K.Ramana Reddy.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.