/**
* Lazily parse the first element to obtain attribute values on it.
*/
private void parse() {
RootElementSniffer sniffer = new RootElementSniffer();
try {
bridge.marshal(jaxbObject,sniffer);
} catch (JAXBException e) {
// if it's due to us aborting the processing after the first element,
// we can safely ignore this exception.
//
// if it's due to error in the object, the same error will be reported
// when the readHeader() method is used, so we don't have to report
// an error right now.
nsUri = sniffer.getNsUri();
localName = sniffer.getLocalName();
atts = sniffer.getAttributes();
}
}