Project

General

Profile

« Previous | Next » 

Revision 1431

Added by Jing Tao almost 22 years ago

Does not setting namepaces-prefix feature true for sax parser. If set it true, namespace will be treat as both namespace and attribute.

View differences:

src/edu/ucsb/nceas/metacat/DocumentImpl.java
1868 1868
        // turn on schema validation feature
1869 1869
        parser.setFeature(VALIDATIONFEATURE, true);
1870 1870
        parser.setFeature(NAMESPACEFEATURE, true);
1871
        parser.setFeature(NAMESPACEPREFIXESFEATURE, true);
1871
        //parser.setFeature(NAMESPACEPREFIXESFEATURE, true);
1872 1872
        parser.setFeature(SCHEMAVALIDATIONFEATURE, true);
1873 1873
        // From DB to find the register external schema location
1874 1874
        String externalSchemaLocation = null;
......
1898 1898
          // turn on schema validation feature
1899 1899
          parser.setFeature(VALIDATIONFEATURE, true);
1900 1900
          parser.setFeature(NAMESPACEFEATURE, true);
1901
          parser.setFeature(NAMESPACEPREFIXESFEATURE, true);
1901
          //parser.setFeature(NAMESPACEPREFIXESFEATURE, true);
1902 1902
          parser.setFeature(SCHEMAVALIDATIONFEATURE, true);
1903 1903
          // From DB to find the register external schema location
1904 1904
          String externalSchemaLocation = null;

Also available in: Unified diff