}
}
public static void staxCoursorParse() throws ParserConfigurationException, SAXException, IOException, XMLStreamException
{
XMLStreamReader staxCoursorImpl = new XMLStreamReaderImpl(new FileInputStream(xmlFile), new PropertyManager(1));
int element = staxCoursorImpl.next();
getEventTypeString(element);
System.out.println(getEventTypeString(element));
System.out.println(staxCoursorImpl.getLocalName());
// staxCoursorImpl.getAttributeCount();
while(staxCoursorImpl.hasNext())
{
element = staxCoursorImpl.next();
System.out.println(getEventTypeString(element));
if(element == XMLEvent.START_ELEMENT)
System.out.println(staxCoursorImpl.getLocalName());
if(element == XMLEvent.CHARACTERS)
System.out.println(staxCoursorImpl.getText());
}
// Write file using StAX
// XMLStreamWriter writer = new XMLStreamWriterImpl(new FileWriter(new File("src/modified_shipto.xml")), new PropertyManager(2));
// writer.writeEmptyElement("EmtyTestElement");