Tutorial: How To Dynamically Generate XML Elements
Step 1 of 3    
 

If you haven't read the tutorial 'How to Create Dynamically Generate an XML Document' you might want to take a look at it first.

When dealing with more sophisticated documents, it's often the case that we want dynamic content generation to occur at the level of the individual element. Tectonic enables this by allowing arguments to be passed into elements in the same way they can be passed into documents.

 
 
 
Once a parameter value is passed in, it can be placed in an element's content using the "tnwrite" keyword.  
 
 
 

Note: The sample code in this tutorial makes use of the Tectonic programming language
(featured in the Delve SOA Fast-Prototyping Toolkit)



   

Not sure exactly what the heck XML is? 
Get started with this
excellent wikipedia article:
> Click Here!

Want to learn
the XML basics? 

We recommend
great books like:
> "XML in a Nutshell"

> "XML Crash Course"
Sponsors
Our primary sponsor is Cretaceous Software: 
Check out Cretaceous Software products!
> Click Here

 

 
 

© Copyright 2007 All Rights Reserved. XML How-To (xmlhowto.org)