{
    "content": [
        {
            "type": "text",
            "text": "# XML::Writer::String (perldoc)\n\n## NAME\n\nXML::Writer::String - Capture output from XML::Writer.\n\n## SYNOPSIS\n\nuse XML::Writer;\nuse XML::Writer::String;\nmy $s = XML::Writer::String->new();\nmy $writer = new XML::Writer( OUTPUT => $s );\n$writer->xmlDecl();\n$writer->startTag('root');\n$writer->endTag();\n$writer->end();\nprint $s->value();\n\n## DESCRIPTION\n\nThis module implements a bare-bones class specifically for the purpose of capturing data from\nthe XML::Writer module. XML::Writer expects an IO::Handle object and writes XML data to the\nspecified object (or STDOUT) via it's print() method. This module simulates such an object for\nthe specific purpose of providing the required print() method.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **NOTES**\n- **AUTHOR**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::Writer::String",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::Writer::String - Capture output from XML::Writer.",
        "synopsis": "use XML::Writer;\nuse XML::Writer::String;\nmy $s = XML::Writer::String->new();\nmy $writer = new XML::Writer( OUTPUT => $s );\n$writer->xmlDecl();\n$writer->startTag('root');\n$writer->endTag();\n$writer->end();\nprint $s->value();",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::Writer::String - Capture output from XML::Writer.\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use XML::Writer;\nuse XML::Writer::String;\n\nmy $s = XML::Writer::String->new();\nmy $writer = new XML::Writer( OUTPUT => $s );\n\n$writer->xmlDecl();\n$writer->startTag('root');\n$writer->endTag();\n$writer->end();\n\nprint $s->value();\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This module implements a bare-bones class specifically for the purpose of capturing data from\nthe XML::Writer module. XML::Writer expects an IO::Handle object and writes XML data to the\nspecified object (or STDOUT) via it's print() method. This module simulates such an object for\nthe specific purpose of providing the required print() method.\n\nIt is recommended that $writer->end() is called prior to calling $s->value() to check for\nwell-formedness.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "XML::Writer::String provides three methods, \"new()\", \"print()\" and \"value()\":\n\n\"$s = XML::Writer::String-\"new([list]);>\nnew() returns a new String handle.\n\n\"$count = $s-\"print([list]);>\nprint() appends concatenated list data and returns number of items in list.\n\n\"$val = $s-\"value([list]);>\nvalue() returns the current content of the object as a scalar. It can also be used to\ninitialize/overwrite the current content with concatenated list data.\n",
                "subsections": []
            },
            "NOTES": {
                "content": "This module is designed for the specific purpose of capturing the output of XML::Writer objects,\nas described in this document. It does not inherit form IO::Handle. For an alternative solution\nlook at IO::Scalar, IO::Lines, IO::String or Tie::Handle::Scalar.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Simon Oliver <simon.oliver@umist.ac.uk>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (C) 2002 Simon Oliver\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "XML::Writer, IO::Handle, IO::Scalar\n",
                "subsections": []
            }
        }
    }
}