+++ /dev/null
-/** @file\r
- \r
- The file is used to config XML file format\r
- \r
- Copyright (c) 2006, Intel Corporation\r
- All rights reserved. This program and the accompanying materials\r
- are licensed and made available under the terms and conditions of the BSD License\r
- which accompanies this distribution. The full text of the license may be found at\r
- http://opensource.org/licenses/bsd-license.php\r
- \r
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
- \r
- **/\r
-\r
-package org.tianocore.frameworkwizard.common;\r
-\r
-import org.apache.xmlbeans.XmlCursor;\r
-import org.apache.xmlbeans.XmlOptions;\r
-\r
-public class XmlConfig {\r
- public static XmlCursor setupXmlCursor(XmlCursor cursor) {\r
- String uri = "http://www.TianoCore.org/2006/Edk2.0";\r
- cursor.push();\r
- cursor.toNextToken();\r
- cursor.insertNamespace("", uri);\r
- cursor.insertNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");\r
- cursor.pop();\r
- return cursor;\r
- }\r
- \r
- public static XmlOptions setupXmlOptions() {\r
- XmlOptions options = new XmlOptions();\r
- options.setCharacterEncoding("UTF-8");\r
- options.setSavePrettyPrint();\r
- options.setSavePrettyPrintIndent(2);\r
- return options;\r
- }\r
- \r
-}\r