Join Bill Weinman for an in-depth discussion in this video Generating XML, part of Code Clinic: C++.
- Modern HTML is an application of XML.…So I've created a generic XML generator…for generating the HTML table and documents.…This is BWXML and it will be part…of my BW LID Library going forward.…This is really a very simple class.…It has a lot of methods…but they're all very small and very simple.…The general principle is to generate tags…using format strings with the format method of BWString.…
So up here at the top of the class,…we have some string constants…and these are format strings that are used…with the format method of BWString.…The first one here is for a tag with attributes.…The second one is for a tag with no attributes.…Then we have an empty element,…with attributes and without attributes.…Then we have the end_tag…and we have a format string…for generating the attribute strings,…which has the name of the attribute…followed by the value of the attribute in quotes.…
And you can see the escape quote marks…like this and like that.…Then we have the doctype and a format for comments.…You'll also notice there's a BWString property…
Bill introduces challenges and provides an overview of his solutions in C++. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Visit other courses in the series to see how to solve the exact same challenges in languages like C#, Java, PHP, Python, and Ruby.
Skill Level Intermediate
Problem One: Exploring Lake Pend Oreille
Solution overview2m 51s
Problem Two: Image Analysis
Problem Three: Eight Queens
Problem Four: Accessing Peripherals
Problem Five: Recursion and Directories
Problem Six: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.