Changeset 16640 in josm


Ignore:
Timestamp:
2020-06-14T18:57:38+02:00 (4 years ago)
Author:
simon04
Message:

see #19282 - Add TaggingPresetSchemeWikiGenerator to generate wiki content from tagging-preset.xsd

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReader.java

    r16179 r16640  
    6565            "application/xml, text/xml, text/plain; q=0.8, application/zip, application/octet-stream; q=0.5";
    6666
     67    /**
     68     * The XML namespace for the tagging presets
     69     * @since 16640
     70     */
     71    public static final String NAMESPACE = Config.getUrls().getXMLBase() + "/tagging-preset-1.0";
     72
     73    /**
     74     * The internal resource URL of the XML schema file to be used with {@link CachedFile}
     75     * @since 16640
     76     */
     77    public static final String SCHEMA_SOURCE = "resource://data/tagging-preset.xsd";
     78
    6779    private static volatile File zipIcons;
    6880    private static volatile boolean loadIcons = true;
     
    183195
    184196        if (validate) {
    185             parser.startWithValidation(in, Config.getUrls().getXMLBase()+"/tagging-preset-1.0", "resource://data/tagging-preset.xsd");
     197            parser.startWithValidation(in, NAMESPACE, SCHEMA_SOURCE);
    186198        } else {
    187199            parser.start(in);
Note: See TracChangeset for help on using the changeset viewer.