allow for diffent namespace prefixes #140
This commit is contained in:
@@ -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
|
||||||
=====
|
=====
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user