allow for diffent namespace prefixes #140

This commit is contained in:
Jochen Stärk
2019-12-07 19:46:18 +01:00
parent d4f11a2e23
commit 7ee6d91d70
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
===== =====
- support different ship to address - support different ship to address
- allow for diffent namespace prefixes #140
1.7.5 1.7.5
===== =====

View File

@@ -29,8 +29,8 @@ public class CustomXMLProvider implements IXMLProvider, IProfileProvider {
public void setXML(byte[] newData) { public void setXML(byte[] newData) {
String zf = new String(newData); String zf = new String(newData);
if (!zf.contains("<rsm:CrossIndustry")) { if (!zf.contains("CrossIndustry")) {
throw new RuntimeException("ZUGFeRD XML does not contain <rsm:CrossIndustry and can thus not be valid"); throw new RuntimeException("ZUGFeRD XML does not contain (<rsm:)CrossIndustry and can thus not be valid");
} }
zugferdData = newData; zugferdData = newData;