use strict; use warnings; use Test::More tests => 2; #qw(no_plan); use_ok qw(SOAP::WSDL::XSD::Attribute); use SOAP::WSDL::Expat::WSDLParser; my $parser = SOAP::WSDL::Expat::WSDLParser->new(); my $xml = q{ }; my $schema = $parser->parse($xml); is $schema->find_element('urn:HelloWorld', 'sayHello') ->first_complexType() ->first_attribute()->get_name(), 'testAttr', 'found attribute';