hallo!
what can i do to create a document, that specifies the namespace alias for every element:
currently i get this:
<?xml version="1.0" encoding="UTF-8" ?>
<EpsProtocolDetails SessionLanguage="DE" xmlns="http://www.stuzza.at/namespaces/eps/protocol/20031001">
<BankResponseDetails>
<ClientRedirectUrl />
<ErrorDetails>
<ErrorCode>004</ErrorCode>
<ErrorMsg>Autorisierungsdaten sind fehlerhaft</ErrorMsg>
</ErrorDetails>
</BankResponseDetails>
</EpsProtocolDetails>
currently the marshalling is done like this:
[...]
Marshaller marshaller = new Marshaller(writer);
marshaller.setEncoding(encoding);
marshaller.marshal(obj);
[...]
the schema starts like this:
(for complete schema see: http://service.stuzza.at/EPS/Release2/XML-R2/FINAL%20V2-1/EPSProtocol-V21.xsd)
<xsd:schema targetNamespace="http://www.stuzza.at/namespaces/eps/protocol/20031001" xmlns:eps="http://www.stuzza.at/namespaces/eps/payment/20031001" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:epsp="http://www.stuzza.at/namespaces/eps/protocol/20031001" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:epi="http://www.ecbs.org/epi/15092003" xmlns:atrul="http://www.stuzza.at/namespaces/eps/austrianrules/20031001" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:import namespace="http://www.stuzza.at/namespaces/eps/payment/20031001" schemaLocation="EPSPayment-V21.xsd"/>
<xsd:import namespace="http://www.ecbs.org/epi/15092003" schemaLocation="ECBS_ePI_V1.0.xsd"/>
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="W3C-XMLDSig.xsd"/>
<xsd:element name="EpsProtocolDetails">
[...]
what can i do to get this?:
<?xml version="1.0" encoding="UTF-8" ?>
<epsp:EpsProtocolDetails SessionLanguage="DE" xmlns:epsp="http://www.stuzza.at/namespaces/eps/protocol/20031001">
<epsp:BankResponseDetails>
<epsp:ClientRedirectUrl />
<epsp:ErrorDetails>
<epsp:ErrorCode>004</ErrorCode>
<epsp:ErrorMsg>Autorisierungsdaten sind fehlerhaft</ErrorMsg>
</epsp:ErrorDetails>
</epsp:BankResponseDetails>
</epsp:EpsProtocolDetails>
thank you,
alexander pucandl.
