~ubuntu-branches/ubuntu/precise/xerces-c/precise-updates

« back to all changes in this revision

Viewing changes to samples/src/SAX2Count/SAX2Count.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jay Berkenbilt
  • Date: 2009-12-05 14:58:32 UTC
  • mfrom: (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091205145832-378dg3x72mdzfzup
Tags: 3.1.0~rc1-1
* New upstream release; public release candidate uploaded at request of
  upstream.
* Updated source format to '3.0 (quilt)'

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * The ASF licenses this file to You under the Apache License, Version 2.0
6
6
 * (the "License"); you may not use this file except in compliance with
7
7
 * the License.  You may obtain a copy of the License at
8
 
 * 
 
8
 *
9
9
 *      http://www.apache.org/licenses/LICENSE-2.0
10
 
 * 
 
10
 *
11
11
 * Unless required by applicable law or agreed to in writing, software
12
12
 * distributed under the License is distributed on an "AS IS" BASIS,
13
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
 */
17
17
 
18
18
/*
19
 
 * $Id: SAX2Count.cpp 471735 2006-11-06 13:53:58Z amassari $
 
19
 * $Id: SAX2Count.cpp 833057 2009-11-05 15:25:10Z borisk $
20
20
 */
21
21
 
22
22
 
161
161
        {
162
162
             // Get out the end of line
163
163
             strncpy(localeStr, &(argV[argInd][8]), sizeof localeStr);
164
 
        }                       
 
164
        }
165
165
        else
166
166
        {
167
167
            XERCES_STD_QUALIFIER cerr << "Unknown option '" << argV[argInd]
211
211
    SAX2XMLReader* parser = XMLReaderFactory::createXMLReader();
212
212
    parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, doNamespaces);
213
213
    parser->setFeature(XMLUni::fgXercesSchema, doSchema);
 
214
    parser->setFeature(XMLUni::fgXercesHandleMultipleImports, true);
214
215
    parser->setFeature(XMLUni::fgXercesSchemaFullChecking, schemaFullChecking);
215
216
    parser->setFeature(XMLUni::fgXercesIdentityConstraintChecking, identityConstraintChecking);
216
217
    parser->setFeature(XMLUni::fgSAX2CoreNameSpacePrefixes, namespacePrefixes);
343
344
        return 0;
344
345
 
345
346
}
346