removing the "my" from the tag , when saving the form data as an xml file. - InfoPath Dev
in

InfoPath Dev

removing the "my" from the tag , when saving the form data as an xml file.

Last post 09-19-2012 10:26 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-19-2012 10:10 AM

    removing the "my" from the tag , when saving the form data as an xml file.

    Hi, 

    I have designed a blank form. Put some frames and fields in it . Did a preview of the form , and filled out the values. Now I save the data with "Save As" and give it a name "Text.xml"  . Now when I open the xml in a editor , it looks as below. My question is how do I remove the "my:" from each tag . I could not find any properties or optins to do that . Any clues ?

     so instead of <my:Header>, it should be <Header>  and I want to remove the xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-09-19T16:39:22" xml:lang="en-us" from inside <PurchaseRequisitionMessage> and put version="1.0" , it should look like <PurchaseRequisitionMessage version="1.0">

    Thanks 

     <?xml version="1.0" encoding="UTF-8"?>
    <?mso-infoPathSolution solutionVersion="1.0.0.1" productVersion="12.0.0" PIVersion="1.0.0.0" href="file:///C:\Documents%20and%20Settings\feroz\Local%20Settings\Application%20Data\Microsoft\InfoPath\Designer2\61b5f0a411df4c3a\manifest.xsf" ?>
    <?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.2"?>
    <my:PurchaseRequisitionMessage xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-09-19T16:39:22" xml:lang="en-us">
        <my:Header>
            <my:MessageId>2012091909:57:23</my:MessageId>
            <my:Timestamp>2012091909:57:23</my:Timestamp>
            <my:Authentication>
                <my:Identity>USC30000659</my:Identity>
                <my:SharedSecret>uscPRimport</my:SharedSecret>
            </my:Authentication>
        </my:Header>
    </my:PurchaseRequisitionMessage>

  • 09-19-2012 10:26 AM In reply to

    Re: removing the "my" from the tag , when saving the form data as an xml file.

    When you design a form in InfoPath starting from a blank form, InfoPath will add the "my" namespace and prefix.

    You can either transform your XML to remove the namespace prefix (this would not be out of the box) or you could recreate your form and base it off XML that has the structure you desire, including the lack of namespace. I just tried a quick test, and if the XML I based my form off of didn't have a namespace, neither did my saved XML.

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.