Posts

Showing posts with the label XML

XSLT example cheat sheet

Image
A cheat sheet demonstrating an XSLT example for a number of commonly used transformation technuiques. For reference a link to a free online XSLT formatter . Shortcuts to each XSLT example covered in this cheat sheet are listed as follows: 1. Using for-each to create a table 2. Tokenizing a delimited string using XSLT versions 1.0/2.0 3. Using apply-template to apply template to the element or element’s child nodes 4. Using the normalize-space function to remove unwanted spaces 5. Convert string to upper case or lower case 1. using for-each to create a table (Back to top) An XSLT example to create a simple table XML [code language="xml"] <?xml version = "1.0"?> <class> <student id= "393"> <firstname>Andrew</firstname> <lastname>Jones</lastname> <marks>85</marks> </student> <student id= "593"> <firstname>Den...

Getting Started with TinyXml

Image
Step 1: Download and install TinyXML Download and extract the library from http://www.grinninglizard.com/tinyxml/ TinyXML source files as shown: