Creating XMLDoxument with namespace at roor but no namespace for children

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tutumon79
    New Member
    • Oct 2013
    • 1

    Creating XMLDoxument with namespace at roor but no namespace for children

    HI

    I am trying to generate an XML document like this through code.

    Code:
    <?xml version="1.0" encoding="windows-1252" ?>
    <TestRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="http://localhost:2292/RMSchema.xsd">
    	<Version>3</Version>
    	<ApplicationHeader>
    		<AppLanguage></AppLanguage>
    		<UserId>rmservice</UserId>
    	</ApplicationHeader>
    	<CustomerData>
    			<ExistingCustomerData>
    			<MTN>2084127182</MTN>
    			</ExistingCustomerData>
    	</CustomerData>
    </TestRequest>
    I tried some samples. But they create xmlns for the children, which i dont need. Any help is really appreciated.

    Thanks
    Tutu
    Last edited by Rabbit; Oct 15 '13, 06:49 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
Working...