Skip to content

Commit 48faec2

Browse files
[FIX] Validation Module: Allow document nodes as input.
1 parent b0602b5 commit 48faec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

basex-core/src/main/java/org/basex/query/func/validate/ValidateXsd.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ void process(final ErrorHandler handler) throws IOException, SAXException, Query
9494

9595
final Validator v = s.newValidator();
9696
v.setErrorHandler(handler);
97-
final String url = in.url();
98-
v.validate(url.isEmpty() ? new StreamSource(in.inputStream()) : new StreamSource(url));
97+
v.validate(in instanceof IOContent || in instanceof IOStream ?
98+
new StreamSource(in.inputStream()) : new StreamSource(in.url()));
9999
}
100100
});
101101
}

0 commit comments

Comments
 (0)