POLITECHNIKA RZESZOWSKA - Wydział Elektrotechniki i Informatyki
■ XMLStreamReader
XMLInputFactory factory = XMLInputFactory.newlnstanae(); try <
XMLStreamReader streamReader = factory.oreateXMLStreamRaader(
new FileInputStream(ntest.xml"));
while(streamReader.hasNext()){
streamReader.next(); if(streamReader.getEventType() ==
XMLStreamReader.START_ELEMENT)( System.out.println(streamReader.getLocalName());
}
>
} catch (XMLS t re amE xcept i on e) { e.printStackTrace();
Copyright <£> 201i Jan PROKOP