S
steve_marjoribanks
How can I use SAX to parse an XML document which has been selected
using a file chooser? I want to use an InputSource for the XMLReader to
parse as this allows the parser to resolve relative paths within the
XML document (ie. paths of schemas etc). However, as far as I can
understand from what I've read (and I'm new to this so it probably
isn't very far!), the InputSource takes a URI string as an input but
the JFileChooser class outputs a File object. How can I load an XML
document using the JFileChooser class and then parse it using an
InputSource?
Thanks in advance for any help,
Steve
using a file chooser? I want to use an InputSource for the XMLReader to
parse as this allows the parser to resolve relative paths within the
XML document (ie. paths of schemas etc). However, as far as I can
understand from what I've read (and I'm new to this so it probably
isn't very far!), the InputSource takes a URI string as an input but
the JFileChooser class outputs a File object. How can I load an XML
document using the JFileChooser class and then parse it using an
InputSource?
Thanks in advance for any help,
Steve