Revision 652aebcf
Von Johannes Grassler vor etwa 1 Jahr hinzugefügt
SL/XMLInvoice/CrossIndustryInvoice.pm | ||
---|---|---|
9 | 9 |
|
10 | 10 |
=head1 NAME |
11 | 11 |
|
12 |
SL::XMLInvoice::FakturX - XML parser for UN/CEFACT Cross Industry Invoice
|
|
12 |
SL::XMLInvoice::CrossIndustryInvoice - XML parser for UN/CEFACT Cross Industry Invoice
|
|
13 | 13 |
|
14 | 14 |
=head1 DESCRIPTION |
15 | 15 |
|
... | ... | |
54 | 54 |
|
55 | 55 |
=cut |
56 | 56 |
|
57 |
sub supported { |
|
58 |
my @supported = ( "UN/CEFACT Cross Industry Invoice (urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100)" ); |
|
59 |
return @supported; |
|
60 |
} |
|
61 |
|
|
62 |
sub check_signature { |
|
63 |
my ($self, $dom) = @_; |
|
64 |
|
|
65 |
my $rootnode = $dom->documentElement; |
|
66 |
|
|
67 |
foreach my $attr ( $rootnode->attributes ) { |
|
68 |
if ( $attr->getData =~ m/urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100/ ) { |
|
69 |
return 1; |
|
70 |
} |
|
71 |
} |
|
72 |
|
|
73 |
return 0; |
|
74 |
} |
|
75 |
|
|
57 | 76 |
# XML XPath expressions for global metadata |
58 | 77 |
sub scalar_xpaths { |
59 | 78 |
return { |
Auch abrufbar als: Unified diff
XMLInvoice: Formaterkennung umgebaut