The application can set a variety of ManekiNeko settings to more
precisely control the behavior of the parser. These settings
can be set directly on the JingConfiguration class
or on the supplied parser classes by calling the
setFeature and setProperty methods.
For example:
// settings on JingConfiguration org.apache.xerces.xni.parser.XMLParserConfiguration config = new org.cyberneko.relaxng.JingConfiguration(); config.setFeature("http://xml.org/sax/features/namespaces", true); config.setFeature("http://xml.org/sax/features/validation", true); config.setProperty("http://cyberneko.org/xml/properties/relaxng/schema-location", "data/relaxng/personal.rng"); // settings on DOMParser org.cyberneko.relaxng.parsers.DOMParser parser = new org.cyberneko.relaxng.parsers.DOMParser(); parser.setFeature("http://xml.org/sax/features/namespaces", true); parser.setFeature("http://xml.org/sax/features/validation", true); parser.setProperty("http://cyberneko.org/xml/properties/relaxng/schema-location", "data/relaxng/personal.rng");