Ed Leafe wrote: > On Aug 22, 2008, at 12:33 AM, Paul McNett wrote: > >> It's ambiguous, highlighted by this case. dControlItem Values can be >> any >> type, including strings, so saying Value="1" in the xml is >> ambiguous: is >> it meant to be a string or an int? > > Years ago I was concerned about that very issue when I first started > creating the cdxml format, and considered adding a type clarifier of > some sort (e.g.: Value="i1" vs. Value="u1"). It turned out that it > never seemed to be necessary, so I never followed up on it. But it > would be pretty simple to implement by modifying dicttoxml.
I solved a similar problem in rfxml by simply requiring quotes around string values. So in this example, it would be: Value = "'1'" for the string, and: Value = "1" for the int. Consistency and no ambiguity. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
