@@ -174,7 +174,7 @@ private Sequence toxml(Sequence json, String handleDuplicates, JsonFactory facto
174
174
final MemTreeBuilder builder = context .getDocumentBuilder ();
175
175
builder .startDocument ();
176
176
factory .configure (JsonParser .Feature .ALLOW_BACKSLASH_ESCAPING_ANY_CHARACTER , false );
177
- jsonToXml (context , builder , parser , handleDuplicates );
177
+ jsonToXml (builder , parser );
178
178
return builder .getDocument () == null ? Sequence .EMPTY_SEQUENCE : builder .getDocument ();
179
179
} catch (IOException e ) {
180
180
throw new XPathException (this , ErrorCodes .FOJS0001 , e .getMessage ());
@@ -292,14 +292,12 @@ private static Item readValue(XQueryContext context, JsonParser parser, Item par
292
292
/**
293
293
* Generate an XML from the tokens delivered by the JSON parser.
294
294
*
295
- * @param context the XQueryContext
295
+ * @param builder the memtree builder
296
296
* @param parser parser to use
297
- * @param handleDuplicates string indicating how to handle duplicate property names
298
- * @return the top item read
299
- * @throws IOException
300
- * @throws XPathException
297
+ *
298
+ * @throws IOException if an I/O error occurs
301
299
*/
302
- public static void jsonToXml (XQueryContext context , MemTreeBuilder builder , JsonParser parser , String handleDuplicates ) throws IOException , XPathException {
300
+ public static void jsonToXml (MemTreeBuilder builder , JsonParser parser ) throws IOException {
303
301
JsonToken token ;
304
302
305
303
while ((token = parser .nextValue ()) != null ) {
0 commit comments