VirtualBox

Changeset 36405 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Mar 24, 2011 3:57:03 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70760
Message:

IPRT/xml: add optional parameter for adding a comment to the created xml file. Used by VirtualBox.xml and the VM config files to include a "do not edit" notice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r36395 r36405  
    5252
    5353/*
    54  * Copyright (C) 2007-2010 Oracle Corporation
     54 * Copyright (C) 2007-2011 Oracle Corporation
    5555 *
    5656 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    864864    m->pDoc = new xml::Document;
    865865
    866     m->pelmRoot = m->pDoc->createRootElement("VirtualBox");
     866    m->pelmRoot = m->pDoc->createRootElement("VirtualBox",
     867                                             "\n"
     868                                             "** DO NOT EDIT THIS FILE.\n"
     869                                             "** If you make changes to this file while any VirtualBox related application\n"
     870                                             "** is running, your changes will be overwritten later, without taking effect.\n"
     871                                             "** Use VBoxManage or the VirtualBox Manager GUI to make changes.\n"
     872);
    867873    m->pelmRoot->setAttribute("xmlns", VBOX_XML_NAMESPACE);
    868874
Note: See TracChangeset for help on using the changeset viewer.

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