I woudlike to write each event of xml file without namespace :
StringBuilder strBuilderEvent = new StringBuilder(""); while (eventReader.hasNext()) { //Evènement courant XMLEvent event = eventReader.nextEvent(); strBuilderEvent.append(event); }
I want to remove : ['http://aaa.en/ccc']:
<['http://aaa.en/ccc']::idObjet>ABC</['http://aaa.en/ccc']::idObjet> <['http://aaa.en/ccc']::thematique>10</['http://aaa.en/ccc']::thematique>
XML file :
<?xml version="1.0" encoding='UTF-8'?> <idObjet>ABC</idObjet> <thematique>10</thematique>
https://stackoverflow.com/questions/67051341/java-event-how-to-get-value-without-namespace-using-stax April 12, 2021 at 08:22AM
没有评论:
发表评论