XML generating from xsd (Full Version)

All Forums >> [Ask XML questions here] >> .NET programming discussions



Message


whoknow -> XML generating from xsd (26 September 2007)

Hi everybody,
Can anyone please show me if there is a way (in VB6 or C#) to generate an XML as described below: [;)]

quote:

xmlSource.xml
<Customer>
   <FName>Smith</FName>
   <OAddress>123</OAddress>
   <MPhone>9582536</MPhone>
</Customer>


xmlDest.xml
<User>
   <FirstName>Smith</FirstName>
   <OfficeAddress>123</OfficeAddress>
   <MobilePhone>9582536</MobilePhone>
</User>


What I want here is generate xmlDest.xml from xmlSource.xml with different xml tags (base on xsd file). I dont want to read the xmlSource.xml file and match them tags by tags in xmlDest.xml

any help is appreciate [8D]




jkmyoung -> RE: XML generating from xsd (27 September 2007)

I'd suggest either a scripting language, or XSLT.
http://msdn2.microsoft.com/en-us/library/aa735784(VS.71).aspx

www.w3schools.com/xsl




whoknow -> RE: XML generating from xsd (1 October 2007)

Hi jkmyoung,
  thx for you help, will give it a try :)




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875