By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,054 Members | 1,327 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,054 IT Pros & Developers. It's quick & easy.

Creating XMLDoxument with namespace at roor but no namespace for children

P: 1

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

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="windows-1252" ?>
  2. <TestRequest xmlns:xsi=""xsi:noNamespaceSchemaLocation="http://localhost:2292/RMSchema.xsd">
  3.     <Version>3</Version>
  4.     <ApplicationHeader>
  5.         <AppLanguage></AppLanguage>
  6.         <UserId>rmservice</UserId>
  7.     </ApplicationHeader>
  8.     <CustomerData>
  9.             <ExistingCustomerData>
  10.             <MTN>2084127182</MTN>
  11.             </ExistingCustomerData>
  12.     </CustomerData>
  13. </TestRequest>
I tried some samples. But they create xmlns for the children, which i dont need. Any help is really appreciated.

Oct 15 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.