allow for diffent namespace prefixes #140
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
=====
|
||||
|
||||
- support different ship to address
|
||||
- allow for diffent namespace prefixes #140
|
||||
|
||||
1.7.5
|
||||
=====
|
||||
|
||||
@@ -29,8 +29,8 @@ public class CustomXMLProvider implements IXMLProvider, IProfileProvider {
|
||||
|
||||
public void setXML(byte[] newData) {
|
||||
String zf = new String(newData);
|
||||
if (!zf.contains("<rsm:CrossIndustry")) {
|
||||
throw new RuntimeException("ZUGFeRD XML does not contain <rsm:CrossIndustry and can thus not be valid");
|
||||
if (!zf.contains("CrossIndustry")) {
|
||||
throw new RuntimeException("ZUGFeRD XML does not contain (<rsm:)CrossIndustry and can thus not be valid");
|
||||
}
|
||||
|
||||
zugferdData = newData;
|
||||
|
||||
Reference in New Issue
Block a user