Query: xml::stream::namespace
OS: suse
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
XML::Stream::Namespace(3) User Contributed Perl Documentation XML::Stream::Namespace(3)NAMEXML::Stream::Namespace - Object to make defining Namespaces easier in XML::Stream.SYNOPSISXML::Stream::Namespace is a helper package to XML::Stream. It provides a clean way of defining Namespaces for XML::Stream to use when connecting.DESCRIPTIONThis module allows you to set and read elements from an XML::Stream Namespace.METHODSSetNamespace("mynamespace"); SetXMLNS("http://www.mynamespace.com/xmlns"); SetAttributes(attrib1=>"value1", attrib2=>"value2"); GetNamespace() returns "mynamespace" GetXMLNS() returns "http://www.mynamespace.com/xmlns" GetAttributes() returns a hash ( attrib1=>"value1",attrib2=>"value2") GetStream() returns the following string: "xmlns:mynamespace='http://www.nynamespace.com/xmlns' mynamespace:attrib1='value1' mynamespace:attrib2='value2'"EXAMPLES$myNamespace = new XML::Stream::Namespace("mynamspace"); $myNamespace->SetXMLNS("http://www.mynamespace.org/xmlns"); $myNamespace->SetAttributes(foo=>"bar", bob=>"vila"); $stream = new XML::Stream; $stream->Connect(name=>"foo.bar.org", port=>1234, namespace=>"foo:bar", namespaces=>[ $myNamespace ]); # # The above Connect will send the following as the opening string # of the stream to foo.bar.org:1234... # # <stream:stream # xmlns:stream="http://etherx.jabber.org/streams" # to="foo.bar.org" # xmlns="foo:bar" # xmlns:mynamespace="http://www.mynamespace.org/xmlns" # mynamespace:foo="bar" # mynamespace:bob="vila"> #AUTHORWritten by Ryan Eatmon in February 2000 Idea By Thomas Charron in January of 2000 for http://etherx.jabber.org/streams/ Currently maintained by Darian Anthony Patrick.COPYRIGHTThis module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.1 2010-01-08 XML::Stream::Namespace(3)
Related Man Pages |
---|
xml::libxml::namespace(3) - mojave |
xml::libxml::namespace5.18(3) - mojave |
xml::stream::node(3) - suse |
xml::libxml::namespace(3pm) - debian |
xml::stream::namespace(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Help please awk or cut |
Advanced I/O |
Adaptive Overlays for Shared Stream Processing Environments |
VoDoo/Stream: Release 1.3 |
Extract string in square bracket |