File Coverage

blib/lib/W3C/XMLSchema.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1 2     2   45557 use strict;
  2         6  
  2         70  
2 2     2   10 use warnings;
  2         4  
  2         132  
3              
4             package W3C::XMLSchema;
5             {
6             $W3C::XMLSchema::VERSION = '0.0.4';
7             }
8 2     2   798 use XML::Rabbit::Root 0.1.0;
  0            
  0            
9              
10             # ABSTRACT: Parser for W3C XML Schema Definition (XSD)
11              
12             use 5.008;
13              
14             add_xpath_namespace 'xsd' => 'http://www.w3.org/2001/XMLSchema';
15              
16              
17             has_xpath_value 'target_namespace' => './@targetNamespace';
18              
19              
20             has_xpath_object_list 'attribute_groups' => './xsd:attributeGroup' => 'W3C::XMLSchema::AttributeGroup';
21              
22              
23             has_xpath_object_list 'groups' => './xsd:group' => 'W3C::XMLSchema::Group';
24              
25              
26             has_xpath_object_list 'complex_types' => './xsd:complexType' => 'W3C::XMLSchema::ComplexType';
27              
28              
29             has_xpath_object_list 'elements' => './xsd:element' => 'W3C::XMLSchema::Element';
30              
31             finalize_class();
32             1;
33              
34             __END__