[MOBY-dev] [moby] Problems using serviceInputParser method whenthe mobyservice receives multiple Simple inputs
Martin Senger
martin.senger at gmail.com
Thu Mar 22 16:53:17 UTC 2007
This is how I do it in Perl/Moses code:
# return a value of an attribute named $name from an $element (an
# XML::LibXML type); try both with and without namespaces; return
# undef if no such sttribute found
sub getXMLAttribute {
my ($self, $element, $name) = @_;
return
$element->getAttribute ($name) ||
$element->getAttributeNS (MOBY_XML_NS, $name);
}
Martin
--
Martin Senger
email: martin.senger at gmail.com
skype: martinsenger
More information about the MOBY-dev
mailing list