$parser = XML::Rules->new( rules => [ 'SOAP-ENV:Envelope' => ..., 'job:Location' => ... ... ], namespaces => { 'http://schemas.xmlsoap.org/soap/envelope/' => 'SOAP-ENV', 'http://www.foo.com/schemas/job.xsd' => 'job', ... }, );