I have the below xml header, then would like to get the xsi:schemaLocation value..
<?xml version="1.0" encoding="UTF-8"?>
<ksj:Dataset gml:id="C33Dataset" xmlns:abc="http://abc.com/abc/schemas/abc-app"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://abc.com/abc/schemas/abc-app AbcAppSchema-C33.xsd">
I am thinking of 2 options:
1) use SAX, XMLReader.parse and implement ContentHandler, then obtain it via startElement().
2) use FileReader and Regex to search the string.
please guide me on how to obtain it in a fastest way..
thanks