crtxmlmsgs

来自「IBM的解析xml的工具Xerces的源代码」· 代码 · 共 650 行 · 第 1/5 页

TXT
650
字号
 /* * Copyright 1999-2000,2004 The Apache Software Foundation. *  * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *  *      http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /*                                                                   */ /* Copyright (c) 1999-2000 The Apache Software Foundation.  All      */ /* rights reserved.                                                  */ /*                                                                   */ /* Redistribution and use in source and binary forms, with or without*/ /* modification, are permitted provided that the following conditions*/ /* are met:                                                          */ /*                                                                   */ /* 1. Redistributions of source code must retain the above copyright */ /*    notice, this list of conditions and the following disclaimer.  */ /*                                                                   */ /* 2. Redistributions in binary form must reproduce the above copyrig*/ /*    notice, this list of conditions and the following disclaimer in*/ /*    the documentation and/or other materials provided with the     */ /*    distribution.                                                  */ /*                                                                   */ /* 3. The end-user documentation included with the redistribution,   */ /*    if any, must include the following acknowledgment:             */ /*       "This product includes software developed by the            */ /*        Apache Software Foundation (http://www.apache.org/)."      */ /*    Alternately, this acknowledgment may appear in the software    */ /*    itself if and wherever such third-party acknowledgments        */ /*    normally appear.                                               */ /*                                                                   */ /* 4. The names "Xerces" and "Apache Software Foundation" must       */ /*    not be used to endorse or promote products derived from this   */ /*    software without prior written permission. For written         */ /*    permission, please contact apache\@apache.org.                 */ /*                                                                   */ /* 5. Products derived from this software may not be called "Apache",*/ /*    nor may "Apache" appear in their name, without prior written   */ /*    permission of the Apache Software Foundation.                  */ /*                                                                   */ /* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED  */ /* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES */ /* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE       */ /* DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR  */ /* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  */ /* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT  */ /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF  */ /* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED & */ /* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,*/ /* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT*/ /* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF*/ /* SUCH DAMAGE.                                                      */ /* ==================================================================*/ /*                                                                   */ /* This software consists of voluntary contributions made by many    */ /* individuals on behalf of the Apache Software Foundation, and was  */ /* originally based on software copyright (c) 1999, International    */ /* Business Machines, Inc., http://www.ibm.com . For more information*/ /* on the Apache Software Foundation, please see                     */ /* <http://www.apache.org/>.                                         */ /*                                                                   */ /*                                                                   */ /* $Log: CrtXMLMsgs,v $ /* Revision 1.2  2004/09/08 13:56:34  peiyongz /* Apache License Version 2.0 /* /* Revision 1.1.1.1  2002/02/01 22:22:22  peiyongz /* sane_include /* /* Revision 1.3  2000/02/11 17:48:19  abagchi /* Message change for some Panic return codes /* /* Revision 1.2  2000/02/10 00:15:02  abagchi /* Added Apache Copyright notice /*                                  */ /* Revision 1.2  2000/02/06 07:48:23  swan                           */ /* Year 2K copyright swat.                                           */ /*                                                                   */ /*********************************************************************/ /*   The following CL source program creates a message file and      */ /*   adds to the message file the XML parser messages.  If the       */ /*   message file already exists, it just adds the parser messages.  */ /*                                                                   */ /*   Copy the stream file to an AS/400 source physical file using    */ /*        CPYFRMSTMF command.   Make sure the target source physical */ /*        file has record length of 200 to avoid truncation          */ /*        Use CRTSRCPF.                                              */ /*   After creating the CL program,  call it with two argument:      */ /*        1)  Message file name (recommend QXMLMSG)                  */ /*        2)  Message file library  (recommend your product library) */ /*   The XML MsgLoader support assumes parser messages are in:       */ /*        QXMLMSG   *LIBL                                            */ /*   If you specify a different target message file then QXMLMSG,    */ /*   you must update the following cpp source to reference the       */ /*   changed message file name. If you do not run with your product  */ /*   library in the library list you will also need to change the    */ /*   library qualifier.                                              */ /*                                                                   */ /*  <xml directory>/src/util/MsgLoaders/MsgFile/MsgLoader.cpp        */ /*  <xml directory>/src/util/Platforms/OS400/OS400PlatformUtils.cpp  */ /*********************************************************************/             PGM        PARM(&FILENAME &LIBNAME)             DCL        VAR(&FILENAME) TYPE(*CHAR) LEN(10)             DCL        VAR(&LIBNAME) TYPE(*CHAR) LEN(10)             MONMSG     MSGID(CPF0000)             CRTMSGF    MSGF(&LIBNAME/&FILENAME)             RMVMSGD    MSGID(XMLBE00) MSGF(&LIBNAME/&FILENAME)             ADDMSGD    MSGID(XMLBE00) MSGF(&LIBNAME/&FILENAME) MSG('Expected comment or CDATA') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB)             RMVMSGD    MSGID(XMLBE01) MSGF(&LIBNAME/&FILENAME)             ADDMSGD    MSGID(XMLBE01) MSGF(&LIBNAME/&FILENAME) MSG('Expected attribute name') SEV(10) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB)             RMVMSGD    MSGID(XMLBE02) MSGF(&LIBNAME/&FILENAME)             ADDMSGD    MSGID(XMLBE02) MSGF(&LIBNAME/&FILENAME) MSG('Expected notation name') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB)             RMVMSGD    MSGID(XMLBE03) MSGF(&LIBNAME/&FILENAME)             ADDMSGD    MSGID(XMLBE03) MSGF(&LIBNAME/&FILENAME) MSG('Repetition of individual elements is not legal for mixed content models') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) +                          ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB)             RMVMSGD    MSGID(XMLBE04) MSGF(&LIBNAME/&FILENAME)             ADDMSGD    MSGID(XMLBE04) MSGF(&LIBNAME/&FILENAME) MSG('Bad default attribute declaration') SEV(20) DMPLST(*NONE) LVL('12/03/99' 81) ALROPT(*NO) LOGPRB(*NO) CCSID(*JOB)             RMVMSGD    MSGID(XMLBE05) MSGF(&LIBNAME/&FILENAME)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?