Skip to content

Commit 6912cb3

Browse files
committed
[bugfix] fn:parse-xml-fragment('') should return an empty document
1 parent 6853791 commit 6912cb3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

exist-core/src/main/java/org/exist/xquery/functions/fn/ParsingFunctions.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ public Sequence eval(final Sequence[] args, final Sequence contextSequence) thro
103103
return Sequence.EMPTY_SEQUENCE;
104104
}
105105
final String xmlContent = args[0].itemAt(0).getStringValue();
106-
if (xmlContent.isEmpty()) {
107-
return Sequence.EMPTY_SEQUENCE;
108-
}
109-
110106
return parse(xmlContent, args);
111107
}
112108

0 commit comments

Comments
 (0)