public static void writeProducts(String src){
		XMLInputFactory xmlif = XMLInputFactory.newInstance();
		try { 
			XMLEventReader xmlr = xmlif.createXMLEventReader(new FileInputStream(new File(src)));									
			while (xmlr.hasNext()) {
				XMLEvent e = xmlr.nextEvent();
				if (e.isStartDocument()){
					System.out.println("Start StAX parsing");
				} else if (e.isStartElement())	{
					System.out.println("\n"+e.asStartElement().getName().getLocalPart()+": ");
					@SuppressWarnings("rawtypes")
					Iterator i = e.asStartElement().getAttributes();
					while (i.hasNext()){
						System.out.print("att: "+i.next().toString()+"; ");
					}	
					i = e.asStartElement().getNamespaces();								
					while (i.hasNext()){									
						System.out.print("ns: "+i.next().toString()+"; ");
					}
				} else if(e.isCharacters()) {
					System.out.print(e.asCharacters().getData().trim());
				} else if (e.isEndDocument()){ 
					System.out.println("Parsing ended");
				}
			}			
		} catch (FileNotFoundException ffe) {
			ffe.printStackTrace();
		} catch (XMLStreamException xmlse) {
			xmlse.printStackTrace();
		}
	}