[Rets-dev] Data definition -- queries or objects?

Matt Lavallee matt at pmptechnology.com
Fri Feb 9 16:15:25 CST 2007


Hi everyone,

As I peruse the RETS Commons DTD, I'm curious about some of the
conflicting uses of elements vs. attributes.

For an easy example, bathrooms.  Currently, the spec defines the
following relevant complex types (displayed as a tree for simplicity's
sake):

Property
	Baths
		BathsTotal
		BathsFull
		BathsHalf
		BathsThreeQuarter
		BathWainscotMaterials
	Bathroom
		isMainFloor
		bathroomSize

>From a clean inheritance model perspective, Bathroom should inherit the
attribute list of Room, and just add those attributes that are unique.
Redone, you'd see:

Property
	Baths
		Bathroom
			<inherit Room>
			BathSizeClass  (Full/Half/ThreeQuarter)

Also, the count of baths being summed under Baths.BathsTotal runs
contrary to the Rooms/Bedrooms syntax of Property.TotalRooms,
Property.TotalBedrooms.  Personally, I think it should be
Property.Baths.Total, or something to that effect that respects the data
structure while querying.

Anyone else with thoughts on this?

-Matt


Matt Lavallee
Manager of Web Services
PMPTechnology.com

phone: 630-598-2301 
fax: 630-982-6641
 






More information about the Rets-dev mailing list