Select to view content in your preferred language

Error in Enhanced Draw widget

3783
22
10-21-2010 04:00 PM
City_of_Port_Angeles_GIS
Occasional Contributor
Robert,
   I followed your instructions for integrating your enhanced draw widget into my Flex Viewer app
but I'm getting the following error:
Fault info: Error #1090: XML parser failure: element is malformed.
   I have not changed anything in your code. All search results on google refer to Action Script 3.
The problems window in Flash Builder 4 does not display any errors at all. Any ideas what could be causing this?
Bill
Tags (2)
0 Kudos
22 Replies
MattGiles
Deactivated User
 <widget label="Draw / Measure"
                 icon="assets/images/i_measure.png"
                 config="widgets/eDraw/DrawWidget.xml"
                 url="widgets/eDraw/DrawWidget.swf"/>
         
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Nope... I want to see if you have a syntax error in the WHOLE config.xml
0 Kudos
MattGiles
Deactivated User
OK here is my config.xml. Alot of my layers could not be shown on public forums so I removed them - everything that i removed i commented out and the errors still exist so they are not the problem. Thanks!

<?xml version="1.0" ?>

<configuration>
    <title>Northern Data Atlas</title>
    <subtitle></subtitle>
    <logo>assets/images/logo.png</logo>
    <style>
        <colors>0xCEE7F4,0x39628C,0x355D89,0x294867,0xCEE7F4</colors>
        <alpha>0.7</alpha>
    </style>
    
    <geometryservice url="http://xxxxxx/arcgis/services/Geometry/GeometryServer" />

    <!-- UI elements -->
    <widget right="15"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
    <widget left="10"  bottom="2"  config="widgets/Coordinate/CoordinateWidget.xml" url="widgets/Coordinate/CoordinateWidget.swf"/>
    <widget left="-25" top="60" config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>


   
 <map scalebarvisible="true" wraparound180="true"  initialextent="-2830000 320000 2510000 5300000" fullextent="-2830000 320000 2510000 5300000" top="40" >

        <basemaps>   
      
       <layer label="Modis 250m Land Cover" type="dynamic" visible="true" alpha="1.0"
                         url="http://xxxxxxx/ArcGIS/rest/services/landcover/modis250m_mxd/MapServer"/>     
                          
        </basemaps>
        
        
        <operationallayers>


        </operationallayers>
    </map>


    <!-- THIS CONTAINER HOLDS LEGEND ONLY (ON LEFT SIDE) -->
    <widgetcontainer layout="float" top="45" left="2">
   <widget label="Layer Manager" left="5" top="45"
     preload="open"
     icon="assets/images/i_layers.png"
     config="widgets/MyLegend/MyLegend.xml"
     url="widgets/MyLegend/MyLegend.swf"/>
    </widgetcontainer>
    
    <!-- THIS CONTAINER HOLDS ALL OTHER WIDGETS (ON BOTTOM) -->
    <widgetcontainer layout="horizontal" bottom="5" left="420">
        
        <!-- MAP CONTROLS -->
        <widgetgroup label="Map" icon="assets/images/i_globe.png">
         
         <widget label="Bookmark"
           preload="close"
              icon="assets/images/i_bookmark.png"
              config="widgets/Bookmark/BookmarkWidget.xml"
              url="widgets/Bookmark/BookmarkWidget.swf"/>
              
         <widget label = "Swipe / Spotlight" 
           preload="close"
           icon="assets/images/i_swipe.png"
           url="widgets/SwipeSpotlight/SwipeSpotlightWidget.swf" />
        
        </widgetgroup>     
        
        <!-- MAP TOOLS -->
       <widgetgroup label="Tools" icon="assets/images/GeoprocessingTool48.png">
         
         <widget label="Draw / Measure"
                 icon="assets/images/i_measure.png"
                 config="widgets/eDraw/DrawWidget.xml"
                 url="widgets/eDraw/DrawWidget.swf"/>
         
         <widget label="Find"
                 icon="assets/images/i_zoomfull.png"
                 url="widgets/MyFind/MyFindWidget.swf"/>
         
         <widget label="Query"
                 icon="assets/images/i_pin3.png"
                 config="widgets/Selection/SelectionWidget.xml"
                 url="widgets/Selection/SelectionWidget.swf"/>       
        
         <widget label="Edit Features"
           icon="assets/images/i_edit.png"
           config="widgets/Edit/EditWidget.xml"
           url="widgets/Edit/EditWidget.swf"/>
           
         <widget label="Time Slider"
           icon="assets/images/i_clock.png"
           config="widgets/eTime/eTimeWidget.xml"
           url="widgets/eTime/eTimeWidget.swf"/>
           
         <widget label="Proximity"
           icon="assets/images/i_pin2.png"
           config="widgets/MyProximity/MyProximityWidget.xml"
           url="widgets/MyProximity/MyProximityWidget.swf"/>
             
         
        </widgetgroup>
        
        <!-- MAP UTILITIES -->
        <widgetgroup label="Utilities" icon="assets/images/i_options.png">
    <widget label="Print"
                  icon="assets/images/i_print.png"
                  config="widgets/Print/PrintWidget.xml"
                  url="widgets/Print/PrintWidget.swf"/>
          
          <!-- only dynamic / tiles map services supported -->
          <widget label="Export Shapefile"    
            icon="widgets/Export2Shp/assets/images/i_exportToShp.png"
      config="widgets/Export2Shp/Export2ShpWidget.xml"
      url="widgets/Export2Shp/Export2ShpWidget.swf"/> 

    <widget label="Screenshot"
      icon="assets/images/i_camera.png"
      config="widgets/Snapshot/SnapshotWidget.xml"
      url="widgets/Snapshot/SnapshotWidget.swf"/>
      
    <widget label="Export Map"
      icon="lu_assets/images/adv_print.jpg"
      url="lu/etat/pch/gis/widgets/pchPrintWidget/PchPrintWidget.swf" 
      config="lu/etat/pch/gis/widgets/pchPrintWidget/PchPrintWidget.xml" />                              
        </widgetgroup>
                     
    </widgetcontainer>

</configuration>
0 Kudos