VirtualBox

Ignore:
Timestamp:
Mar 13, 2008 2:33:18 PM (17 years ago)
Author:
vboxsync
Message:

Main: Applied SATA changes from #2406. Increased XML settings version format from 1.2 to 1.3.pre.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/VirtualBoxImplExtra.cpp

    r7387 r7442  
    3131#include "xml_SettingsConverter_xsl.h"
    3232
     33static const unsigned char g_ab_xml_VirtualBox_settings_root_xsd[] =
     34"<xsd:schema"
     35"  xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\""
     36"  xmlns=\"http://www.innotek.de/VirtualBox-settings\""
     37"  xmlns:vb=\"http://www.innotek.de/VirtualBox-settings\""
     38"  targetNamespace=\"http://www.innotek.de/VirtualBox-settings\""
     39"  elementFormDefault=\"qualified\""
     40">"
     41"<xsd:element name=\"VirtualBox\">"
     42"  <xsd:complexType>"
     43"    <xsd:complexContent>"
     44"      <xsd:extension base=\"TVirtualBox\">"
     45"        <xsd:attribute name=\"version\" type=\"xsd:token\" fixed=\"" VBOX_XML_VERSION_FULL "\" use=\"required\"/>"
     46"      </xsd:extension>"
     47"    </xsd:complexContent>"
     48"  </xsd:complexType>"
     49"</xsd:element>"
     50"</xsd:schema>";
     51
     52static const unsigned g_cb_xml_VirtualBox_settings_root_xsd =
     53    sizeof (g_ab_xml_VirtualBox_settings_root_xsd);
     54
    3355/**
    3456 * Resolves external entities while parting and validating XML settings files.
     
    4870            MemoryBuf ((const char *) g_ab_xml_VirtualBox_settings_common_xsd,
    4971                       g_cb_xml_VirtualBox_settings_common_xsd, aURI);
     72    }
     73
     74    if (strcmp (aURI, VBOX_XML_SCHEMA_ROOT) == 0)
     75    {
     76        return new settings::
     77            MemoryBuf ((const char *) g_ab_xml_VirtualBox_settings_root_xsd,
     78                       g_cb_xml_VirtualBox_settings_root_xsd, aURI);
    5079    }
    5180
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette