Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create xml using a path

Status
Not open for further replies.

Triion

Programmer
Sep 20, 2005
6
BE
Hi,

Can anyone tell me if it's possible to create a xml-document (with any kind of xml-framework) using a path and a value?

Something like this:
Code:
doc.AddElement('person/telephone', '555-23589');
doc.addElement('person/address', 'street 1');
doc.addElement('companyGroup/company/name', 'Joe\'s');
should create:
Code:
<person>
  <telephone>555-23589</telephone>
  <address>Street 1</address>
</person>
<companyGroup>
  <company>
     <name>Joe's</name>
  </company>
</companyGroup>
Attributes are not necessary, just plain Elements...

Anything like this already exists? Or do I need to construct something like this myself?

Thanks in advance !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top