SOAP::...n::XSD(3pm)

πŸ’– NAME πŸ’–

SOAP::WSDL::Generator::Template::Plugin::XSD β€” bestie, it's the Template plugin for the XSD generator πŸŽ€


✨ METHODS ✨

🌸 perl_name

XSD.perl_name(element.get_name);

Okay so what this does: it takes an XML name and turns it into a valid perl name β€” like, valid for subroutines, variables, or whatever else needs a legal perl identifier. πŸ’…

And ngl, perl_name is out here taking a crude approach: it literally just swaps . and - (dot and dash, yes, the whole entire strategy) for an underscore _. That's it. That's the move. πŸ™ˆ

⚠️ Heads up bestie: this may or may not be sufficient, and it may or may not provoke collisions in your XML names. So like… vibe check your names before you commit, fr fr. 😭

Copyright 2008 Martin Kutter. 🫢

This file is part of SOAP-WSDL. You may distribute/modify it under the same terms as perl itself. periodt. ✨


πŸ¦‹ AUTHOR πŸ¦‹

Martin Kutter <martin.kutter fen-net.de> πŸ’œ


πŸŽ€ REPOSITORY INFORMATION πŸŽ€

$Rev: 564 $
$LastChangedBy: kutterma $
$Id: ComplexType.pm 564 2008-02-23 13:31:39Z kutterma $
$HeadURL: http://soap-wsdl.svn.sourceforge.net/svnroot/soap-wsdl/SOAP-WSDL/trunk/lib/SOAP/WSDL/XSD/Typelib/ComplexType.pm $

Okay that's the whole page, no cap. πŸ’– This little gem is living under perl v5.36.0, dated 2022-10-14, and it came to you courtesy of the User Contributed Perl Documentation crew β€” SOAP::...n::XSD(3pm), slay, bye bestie! 🌈✨🫢

πŸ“¦ where this page comes from