[mapguide][MG385][Modified] Allow MdfParser to serialize without indentation

Ben Trumbore ben.trumbore at autodesk.com
Tue Sep 12 14:50:35 EDT 2006


You can view the artifact detail at the following URL:

    https://mapguide.osgeo.org/servlets/Scarab/id/MG385

Type:
Defect

Artifact ID:
MG385 (Allow MdfParser to serialize without indentation)

Modified by:
Ben Trumbore
bentrumbore (ben.trumbore at autodesk.com)

The following modifications were made to this artifact:
---------------------------------------------------------------------

-- Target milestone set to new value:
1.0.1
-- Component set to new value:
All
-- Operating system set to new value:
All
-- Status Explanation set to new value:
A DisableTabs method was added to MdfParser's SAX2Parser class, and a disableTabs method in IOUtility supports it.  The default behavior (used by MapGuide) is to perform indentation.  Map will call DisableTabs on each parser it creates to eliminate indentation.

While this is not a very flexible solution, it required the smallest code change.  A better implementation might involve a property for the number of spaces to indent.  The default value could be two, and setting the property to zero would eliminate indentation.
-- Artifact Status changed:
Old value:
New
New value:
Resolved
-- Resolution set to new value:
Submitted
-- Platform set to new value:
All



---------------------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Mapguide_issues mailing list