JSON-java/org/json/XMLParserConfiguration.html
2020-10-06 15:23:44 -05:00

658 lines
35 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_05) on Tue Oct 06 15:22:53 CDT 2020 -->
<title>XMLParserConfiguration</title>
<meta name="date" content="2020-10-06">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="XMLParserConfiguration";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../org/json/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../org/json/XML.html" title="class in org.json"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../org/json/XMLTokener.html" title="class in org.json"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?org/json/XMLParserConfiguration.html" target="_top">Frames</a></li>
<li><a href="XMLParserConfiguration.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.json</div>
<h2 title="Class XMLParserConfiguration" class="title">Class XMLParserConfiguration</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.json.XMLParserConfiguration</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">XMLParserConfiguration</span>
extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Configuration object for the XML parser. The configuration is immutable.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#KEEP_STRINGS">KEEP_STRINGS</a></span></code>
<div class="block">Original configuration of the XML Parser except that values are kept as strings.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#ORIGINAL">ORIGINAL</a></span></code>
<div class="block">Original Configuration of the XML Parser.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#XMLParserConfiguration--">XMLParserConfiguration</a></span>()</code>
<div class="block">Default parser configuration.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#XMLParserConfiguration-boolean-">XMLParserConfiguration</a></span>(boolean&nbsp;keepStrings)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">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.</span></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#XMLParserConfiguration-boolean-java.lang.String-">XMLParserConfiguration</a></span>(boolean&nbsp;keepStrings,
<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;cDataTagName)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">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.</span></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#XMLParserConfiguration-boolean-java.lang.String-boolean-">XMLParserConfiguration</a></span>(boolean&nbsp;keepStrings,
<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;cDataTagName,
boolean&nbsp;convertNilAttributeToNull)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">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.</span></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#XMLParserConfiguration-java.lang.String-">XMLParserConfiguration</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;cDataTagName)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">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.</span></div>
</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>protected <a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#clone--">clone</a></span>()</code>
<div class="block">Provides a new instance of the same configuration.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#getcDataTagName--">getcDataTagName</a></span>()</code>
<div class="block">The name of the key in a JSON Object that indicates a CDATA section.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../org/json/XMLXsiTypeConverter.html" title="interface in org.json">XMLXsiTypeConverter</a>&lt;?&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#getXsiTypeMap--">getXsiTypeMap</a></span>()</code>
<div class="block">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 configuration
<code>Map&lt;String, XMLXsiTypeConverter&lt;?&gt;&gt;</code> to parse values with attribute
xsi:type="integer" as integer, xsi:type="string" as string</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#isConvertNilAttributeToNull--">isConvertNilAttributeToNull</a></span>()</code>
<div class="block">When parsing the XML into JSON, specifies if values with attribute xsi:nil="true"
should be kept as attribute(<code>false</code>), or they should be converted to
<code>null</code>(<code>true</code>)</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#isKeepStrings--">isKeepStrings</a></span>()</code>
<div class="block">When parsing the XML into JSON, specifies if values should be kept as strings (<code>true</code>), or if
they should try to be guessed into JSON values (numeric, boolean, string)</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#withcDataTagName-java.lang.String-">withcDataTagName</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;newVal)</code>
<div class="block">The name of the key in a JSON Object that indicates a CDATA section.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#withConvertNilAttributeToNull-boolean-">withConvertNilAttributeToNull</a></span>(boolean&nbsp;newVal)</code>
<div class="block">When parsing the XML into JSON, specifies if values with attribute xsi:nil="true"
should be kept as attribute(<code>false</code>), or they should be converted to
<code>null</code>(<code>true</code>)</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#withKeepStrings-boolean-">withKeepStrings</a></span>(boolean&nbsp;newVal)</code>
<div class="block">When parsing the XML into JSON, specifies if values should be kept as strings (<code>true</code>), or if
they should try to be guessed into JSON values (numeric, boolean, string)</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/json/XMLParserConfiguration.html#withXsiTypeMap-java.util.Map-">withXsiTypeMap</a></span>(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../org/json/XMLXsiTypeConverter.html" title="interface in org.json">XMLXsiTypeConverter</a>&lt;?&gt;&gt;&nbsp;xsiTypeMap)</code>
<div class="block">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 configuration
<code>Map&lt;String, XMLXsiTypeConverter&lt;?&gt;&gt;</code> to parse values with attribute
xsi:type="integer" as integer, xsi:type="string" as string</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="ORIGINAL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ORIGINAL</h4>
<pre>public static final&nbsp;<a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a> ORIGINAL</pre>
<div class="block">Original Configuration of the XML Parser.</div>
</li>
</ul>
<a name="KEEP_STRINGS">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>KEEP_STRINGS</h4>
<pre>public static final&nbsp;<a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a> KEEP_STRINGS</pre>
<div class="block">Original configuration of the XML Parser except that values are kept as strings.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="XMLParserConfiguration--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XMLParserConfiguration</h4>
<pre>public&nbsp;XMLParserConfiguration()</pre>
<div class="block">Default parser configuration. Does not keep strings (tries to implicitly convert
values), and the CDATA Tag Name is "content".</div>
</li>
</ul>
<a name="XMLParserConfiguration-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XMLParserConfiguration</h4>
<pre><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;XMLParserConfiguration(boolean&nbsp;keepStrings)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">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.</span></div>
<div class="block">Configure the parser string processing and use the default CDATA Tag Name as "content".</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keepStrings</code> - <code>true</code> to parse all values as string.
<code>false</code> to try and convert XML string values into a JSON value.</dd>
</dl>
</li>
</ul>
<a name="XMLParserConfiguration-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XMLParserConfiguration</h4>
<pre><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;XMLParserConfiguration(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;cDataTagName)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">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.</span></div>
<div class="block">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 <code>null</code> to
disable CDATA processing</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cDataTagName<code>null</code></code> - to disable CDATA processing. Any other value
to use that value as the JSONObject key name to process as CDATA.</dd>
</dl>
</li>
</ul>
<a name="XMLParserConfiguration-boolean-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>XMLParserConfiguration</h4>
<pre><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;XMLParserConfiguration(boolean&nbsp;keepStrings,
<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;cDataTagName)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">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.</span></div>
<div class="block">Configure the parser to use custom settings.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keepStrings</code> - <code>true</code> to parse all values as string.
<code>false</code> to try and convert XML string values into a JSON value.</dd>
<dd><code>cDataTagName<code>null</code></code> - to disable CDATA processing. Any other value
to use that value as the JSONObject key name to process as CDATA.</dd>
</dl>
</li>
</ul>
<a name="XMLParserConfiguration-boolean-java.lang.String-boolean-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>XMLParserConfiguration</h4>
<pre><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;XMLParserConfiguration(boolean&nbsp;keepStrings,
<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;cDataTagName,
boolean&nbsp;convertNilAttributeToNull)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<span class="deprecationComment">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.</span></div>
<div class="block">Configure the parser to use custom settings.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>keepStrings</code> - <code>true</code> to parse all values as string.
<code>false</code> to try and convert XML string values into a JSON value.</dd>
<dd><code>cDataTagName</code> - <code>null</code> to disable CDATA processing. Any other value
to use that value as the JSONObject key name to process as CDATA.</dd>
<dd><code>convertNilAttributeToNull</code> - <code>true</code> to parse values with attribute xsi:nil="true" as null.
<code>false</code> to parse values with attribute xsi:nil="true" as {"xsi:nil":true}.</dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="clone--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clone</h4>
<pre>protected&nbsp;<a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a>&nbsp;clone()</pre>
<div class="block">Provides a new instance of the same configuration.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="isKeepStrings--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isKeepStrings</h4>
<pre>public&nbsp;boolean&nbsp;isKeepStrings()</pre>
<div class="block">When parsing the XML into JSON, specifies if values should be kept as strings (<code>true</code>), or if
they should try to be guessed into JSON values (numeric, boolean, string)</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="../../org/json/XMLParserConfiguration.html#keepStrings"><code>keepStrings</code></a> configuration value.</dd>
</dl>
</li>
</ul>
<a name="withKeepStrings-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withKeepStrings</h4>
<pre>public&nbsp;<a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a>&nbsp;withKeepStrings(boolean&nbsp;newVal)</pre>
<div class="block">When parsing the XML into JSON, specifies if values should be kept as strings (<code>true</code>), or if
they should try to be guessed into JSON values (numeric, boolean, string)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>newVal</code> - new value to use for the <a href="../../org/json/XMLParserConfiguration.html#keepStrings"><code>keepStrings</code></a> configuration option.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The existing configuration will not be modified. A new configuration is returned.</dd>
</dl>
</li>
</ul>
<a name="getcDataTagName--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getcDataTagName</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getcDataTagName()</pre>
<div class="block">The name of the key in a JSON Object that indicates a CDATA section. Historically this has
been the value "content" but can be changed. Use <code>null</code> to indicate no CDATA
processing.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="../../org/json/XMLParserConfiguration.html#cDataTagName"><code>cDataTagName</code></a> configuration value.</dd>
</dl>
</li>
</ul>
<a name="withcDataTagName-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withcDataTagName</h4>
<pre>public&nbsp;<a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a>&nbsp;withcDataTagName(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;newVal)</pre>
<div class="block">The name of the key in a JSON Object that indicates a CDATA section. Historically this has
been the value "content" but can be changed. Use <code>null</code> to indicate no CDATA
processing.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>newVal</code> - new value to use for the <a href="../../org/json/XMLParserConfiguration.html#cDataTagName"><code>cDataTagName</code></a> configuration option.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The existing configuration will not be modified. A new configuration is returned.</dd>
</dl>
</li>
</ul>
<a name="isConvertNilAttributeToNull--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isConvertNilAttributeToNull</h4>
<pre>public&nbsp;boolean&nbsp;isConvertNilAttributeToNull()</pre>
<div class="block">When parsing the XML into JSON, specifies if values with attribute xsi:nil="true"
should be kept as attribute(<code>false</code>), or they should be converted to
<code>null</code>(<code>true</code>)</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="../../org/json/XMLParserConfiguration.html#convertNilAttributeToNull"><code>convertNilAttributeToNull</code></a> configuration value.</dd>
</dl>
</li>
</ul>
<a name="withConvertNilAttributeToNull-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withConvertNilAttributeToNull</h4>
<pre>public&nbsp;<a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a>&nbsp;withConvertNilAttributeToNull(boolean&nbsp;newVal)</pre>
<div class="block">When parsing the XML into JSON, specifies if values with attribute xsi:nil="true"
should be kept as attribute(<code>false</code>), or they should be converted to
<code>null</code>(<code>true</code>)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>newVal</code> - new value to use for the <a href="../../org/json/XMLParserConfiguration.html#convertNilAttributeToNull"><code>convertNilAttributeToNull</code></a> configuration option.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The existing configuration will not be modified. A new configuration is returned.</dd>
</dl>
</li>
</ul>
<a name="getXsiTypeMap--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getXsiTypeMap</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../org/json/XMLXsiTypeConverter.html" title="interface in org.json">XMLXsiTypeConverter</a>&lt;?&gt;&gt;&nbsp;getXsiTypeMap()</pre>
<div class="block">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 configuration
<code>Map&lt;String, XMLXsiTypeConverter&lt;?&gt;&gt;</code> to parse values with attribute
xsi:type="integer" as integer, xsi:type="string" as string</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><a href="../../org/json/XMLParserConfiguration.html#xsiTypeMap"><code>xsiTypeMap</code></a> unmodifiable configuration map.</dd>
</dl>
</li>
</ul>
<a name="withXsiTypeMap-java.util.Map-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>withXsiTypeMap</h4>
<pre>public&nbsp;<a href="../../org/json/XMLParserConfiguration.html" title="class in org.json">XMLParserConfiguration</a>&nbsp;withXsiTypeMap(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../org/json/XMLXsiTypeConverter.html" title="interface in org.json">XMLXsiTypeConverter</a>&lt;?&gt;&gt;&nbsp;xsiTypeMap)</pre>
<div class="block">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 configuration
<code>Map&lt;String, XMLXsiTypeConverter&lt;?&gt;&gt;</code> to parse values with attribute
xsi:type="integer" as integer, xsi:type="string" as string</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>xsiTypeMap</code> - <code>new HashMap&lt;String, XMLXsiTypeConverter&lt;?&gt;&gt;()</code> to parse values with attribute
xsi:type="integer" as integer, xsi:type="string" as string</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The existing configuration will not be modified. A new configuration is returned.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../org/json/package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../org/json/XML.html" title="class in org.json"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../org/json/XMLTokener.html" title="class in org.json"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?org/json/XMLParserConfiguration.html" target="_top">Frames</a></li>
<li><a href="XMLParserConfiguration.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>