Changeset 748

Show
Ignore:
Timestamp:
03/17/11 05:11:03 (2 years ago)
Author:
bbest
Message:

added xml declaration and root at top

Location:
WikiFiles/MgetTree
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • WikiFiles/MgetTree/MgetToolbox_XmlToJsTree.py

    r746 r748  
    1111tls = root.findall('.//toolset') 
    1212scr = root.findall('.//script') 
    13 all = [root]; all.extend(tls); all.extend(scr) 
     13all = tbx; all.extend(tls); all.extend(scr) 
    1414 
    1515# set names 
     
    3232 
    3333dump(tree) 
    34 tree.write(xml_out) 
     34tree.write(xml_out, encoding='UTF-8') 
    3535##<Element 'html' at 0xb77e6fac> 
    3636##>>> p = tree.find("body/p")     # Finds first occurrence of tag p in body 
  • WikiFiles/MgetTree/MgetToolbox_jsTree.xml

    r746 r748  
    1 <toolbox id="Marine Geospatial Ecology Tools 0.8a24"> 
    2     <toolset id="Connectivity Analysis" state="open"> 
     1<?xml version='1.0' encoding='UTF-8'?> 
     2<root> 
     3  <toolbox id="Marine Geospatial Ecology Tools 0.8a24"> 
     4    <toolset id="Connectivity Analysis"> 
    35        <toolset id="Coral Reef Larval Connectivity"> 
    46            <script id="Create Coral Reef Connectivity Simulation From ArcGIS Rasters" url="CoralReefConnectivity.CreateSimulationFromArcGISRasters.html"><content><name>Create Coral Reef Connectivity Simulation From ArcGIS Rasters</name></content></script> 
     
    810        <content><name>Coral Reef Larval Connectivity</name></content></toolset> 
    911    <content><name>Connectivity Analysis</name></content></toolset> 
    10     <toolset id="Conversion" state="open"> 
     12    <toolset id="Conversion"> 
    1113        <toolset id="To ArcGIS Raster"> 
    1214            <toolset id="From ArcInfo ASCII Grid"> 
     
    2224        <content><name>To ArcGIS Raster</name></content></toolset> 
    2325    <content><name>Conversion</name></content></toolset> 
    24 <content><name>Marine Geospatial Ecology Tools 0.8a24</name></content></toolbox> 
     26  <content><name>Marine Geospatial Ecology Tools 0.8a24</name></content></toolbox> 
     27</root> 
  • WikiFiles/MgetTree/MgetToolbox_simple.xml

    r746 r748  
    1 <toolbox id='Marine Geospatial Ecology Tools 0.8a24'> 
     1<root> 
     2  <toolbox id='Marine Geospatial Ecology Tools 0.8a24'> 
    23    <toolset id='Connectivity Analysis'> 
    34        <toolset id='Coral Reef Larval Connectivity'> 
     
    2223        </toolset> 
    2324    </toolset> 
    24 </toolbox> 
     25  </toolbox> 
     26</root> 
     27 
    2528