How to write XML file from a variable structure?

  • Thread starter Peter van der veen
  • Start date
P

Peter van der veen

Hi

From a webservice i got some data and i can use that in my application
with the use of the WSDL file.
So i got an variable in with are the rest of the data.
lets say i got a structure like this in the var People

People.Name.Firstname = "peter"
people.Nama.lastname = "van der Veen"
people.adress.street = "street"
people.adress.number = "2"

Is there a simple way to write such to an XML file so i get

<people>
<Name>
<Firstname>Peter</Firstname>
<Lastname>ven der Veen</Lastname>
</Name>
etc.

without to write it out complete in code?


Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top