01: package net.xoetrope.xml;
02:
03: import java.io.Reader;
04:
05: import net.xoetrope.xui.XProjectManager;
06:
07: /**
08: * <p>A simple wrapper for an XML data source, hiding details of
09: * how the XML is loaded </p>
10: * <p> Copyright (c) Xoetrope Ltd., 1998-2003<br>
11: * License: see license.txt
12: * @version $Revision: 1.17 $
13: */
14: public class XmlSource {
15: public static XmlElement read(Reader input) {
16: return XProjectManager.getXmlParserFactory().parse(input);
17: }
18:
19: public static XmlElement read(Reader input, String schemaSource) {
20: return XProjectManager.getXmlParserFactory().parse(input,
21: schemaSource);
22: }
23: }
|