The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::MarkLogic::CIS::Result::Item - Part of the response returned after an XDBC query.

SYNOPSIS

  print $item->content;
  print $item->as_xml;

  $type = $item->content_type;
  $type = $item->x_type;
  

DESCRIPTION

Alpha. API will change.

This class represents a single part of a multipart XDBC response.

METHODS

content()

  print $part->content;

The content returned in this part, often XML or an XML snippit.

as_xml()

An XML representation of this part including content type and xml type. The part content is wrapped inside an entry node. The entry node contains two attributes, content_type and type.

content_type()

Content type, ex: text/xml

type

Schema type, Ex: node()

BUGS

Big time. Watch out for changing APIs.

AUTHOR

    Tony Stubblebine
    tonys@oreilly.com

COPYRIGHT

Copyright 2004 Tony Stubblebine

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

SEE ALSO