Uses of Class
com.util.org.json.XMLParserConfiguration
-
Packages that use XMLParserConfiguration Package Description com.util.org.json -
-
Uses of XMLParserConfiguration in com.util.org.json
Fields in com.util.org.json declared as XMLParserConfiguration Modifier and Type Field Description static XMLParserConfigurationXMLParserConfiguration. KEEP_STRINGSOriginal configuration of the XML Parser except that values are kept as strings.static XMLParserConfigurationXMLParserConfiguration. ORIGINALOriginal Configuration of the XML Parser.Methods in com.util.org.json that return XMLParserConfiguration Modifier and Type Method Description XMLParserConfigurationXMLParserConfiguration. withcDataTagName(java.lang.String newVal)The name of the key in a JSON Object that indicates a CDATA section.XMLParserConfigurationXMLParserConfiguration. withConvertNilAttributeToNull(boolean newVal)When parsing the XML into JSON, specifies if values with attribute xsi:nil="true" should be kept as attribute(false), or they should be converted tonull(true)XMLParserConfigurationXMLParserConfiguration. withForceList(java.util.Set<java.lang.String> forceList)When parsing the XML into JSON, specifies that tags that will be converted to arrays in this configurationSet<String>to parse the provided tags' values as arraysXMLParserConfigurationXMLParserConfiguration. withKeepStrings(boolean newVal)When parsing the XML into JSON, specifies if values should be kept as strings (true), or if they should try to be guessed into JSON values (numeric, boolean, string)XMLParserConfigurationXMLParserConfiguration. withXsiTypeMap(java.util.Map<java.lang.String,XMLXsiTypeConverter<?>> xsiTypeMap)When parsing the XML into JSON, specifies that the values with attribute xsi:type will be converted to target type defined to client in this configurationMap<String, XMLXsiTypeConverter<?>>to parse values with attribute xsi:type="integer" as integer, xsi:type="string" as stringMethods in com.util.org.json with parameters of type XMLParserConfiguration Modifier and Type Method Description static JSONObjectXML. toJSONObject(java.io.Reader reader, XMLParserConfiguration config)Convert a well-formed (but not necessarily valid) XML into a JSONObject.static JSONObjectXML. toJSONObject(java.lang.String string, XMLParserConfiguration config)Convert a well-formed (but not necessarily valid) XML string into a JSONObject.static java.lang.StringXML. toString(java.lang.Object object, java.lang.String tagName, XMLParserConfiguration config)Convert a JSONObject into a well-formed, element-normal XML string.
-