Creating RELML Content
Aside from studying the DTD for hours on end, the best way to understand how to create residential RELML content is to take a look at a complete RELML document. Listing 38.2 contains XML code for an RELML document that is based upon the residential DTD.
Listing 38.2. A Sample RELML Document for a Residential Real Estate Listing
<?xml version="1.0"?> <RESIDENTIAL-LISTING VERSION="02241999"> <REMARKS>Price:329900 Size (SqFt):3230 :Everything - This 1-1/2 story home features 5 bedrooms, 3 baths, fireplace, over 3,000 sq. ft. living area. 2-1/2 acres of landscaping. 157 ft. of sandy West Grand Traverse Bay and is only 3 miles from Traverse City.</REMARKS> <GENERAL> <IMAGE FORMAT="JPEG" WIDTH="150" HEIGHT="150" SRC="http://www.nmre.net/search/homes/137343.jpg"/> ... |
Get XML Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.