| 1 | package SOAP::WSDL::XSD::Typelib::Attribute; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | use base qw(SOAP::WSDL::XSD::Typelib::Element); | ||
| 6 | |||
| 7 | use version; our $VERSION = qv('3.00.0_2'); | ||
| 8 | |||
| 9 | sub start_tag { | ||
| 10 | # my ($self, $opt, $value) = @_; | ||
| 11 | return q{} if (@_ < 3); | ||
| 12 | my $ns = $_[0]->get_xmlns(); | ||
| 13 | if ($ns eq 'http://www.w3.org/XML/1998/namespace') { | ||
| 14 | return qq{ xml:$_[1]->{ name }="}; | ||
| 15 | } | ||
| 16 | return qq{ $_[1]->{ name }="}; | ||
| 17 | } | ||
| 18 | |||
| 19 | sub end_tag { | ||
| 20 | return q{"}; | ||
| 21 | } | ||
| 22 | |||
| 23 | 1; |