XMLParserConfiguration

Default parser configuration. Does not keep strings (tries to implicitly convert values), and the CDATA Tag Name is "content".


open fun XMLParserConfiguration(keepStrings: Boolean)

Deprecated

Configure the parser string processing and use the default CDATA Tag Name as "content".

Deprecated

This constructor has been deprecated in favor of using the new builder pattern for the configuration. This constructor may be removed in a future release.

Parameters

keepStrings

true to parse all values as string. false to try and convert XML string values into a JSON value.


open fun XMLParserConfiguration(cDataTagName: String)

Deprecated

Configure the parser string processing to try and convert XML values to JSON values and use the passed CDATA Tag Name the processing value. Pass null to disable CDATA processing

Deprecated

This constructor has been deprecated in favor of using the new builder pattern for the configuration. This constructor may be removed in a future release.

Parameters

cDataTagName

null to disable CDATA processing. Any other value to use that value as the JSONObject key name to process as CDATA.


open fun XMLParserConfiguration(keepStrings: Boolean, cDataTagName: String)

Deprecated

Configure the parser to use custom settings.

Deprecated

This constructor has been deprecated in favor of using the new builder pattern for the configuration. This constructor may be removed in a future release.

Parameters

keepStrings

true to parse all values as string. false to try and convert XML string values into a JSON value.

cDataTagName

null to disable CDATA processing. Any other value to use that value as the JSONObject key name to process as CDATA.


open fun XMLParserConfiguration(keepStrings: Boolean, cDataTagName: String, convertNilAttributeToNull: Boolean)

Deprecated

Configure the parser to use custom settings.

Deprecated

This constructor has been deprecated in favor of using the new builder pattern for the configuration. This constructor may be removed or marked private in a future release.

Parameters

keepStrings

true to parse all values as string. false to try and convert XML string values into a JSON value.

cDataTagName

null to disable CDATA processing. Any other value to use that value as the JSONObject key name to process as CDATA.

convertNilAttributeToNull

true to parse values with attribute xsi:nil="true" as null. false to parse values with attribute xsi:nil="true" as {"xsi:nil":true}.