{
    "content": [
        {
            "type": "text",
            "text": "# XML::LibXML::Schema (perldoc)\n\n## NAME\n\nXML::LibXML::Schema - XML Schema Validation\n\n## SYNOPSIS\n\nuse XML::LibXML;\n$doc = XML::LibXML->new->parsefile($url);\n$xmlschema = XML::LibXML::Schema->new( location => $filenameorurl );\n$xmlschema = XML::LibXML::Schema->new( string => $xmlschemastring );\neval { $xmlschema->validate( $doc ); };\n\n## DESCRIPTION\n\nThe XML::LibXML::Schema class is a tiny frontend to libxml2's XML Schema implementation.\nCurrently it supports only schema parsing and document validation. As of 2.6.32, libxml2 only\nsupports decimal types up to 24 digits (the standard requires at least 18).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n- **AUTHORS**\n- **VERSION**\n- **COPYRIGHT**\n- **LICENSE**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::LibXML::Schema",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::LibXML::Schema - XML Schema Validation",
        "synopsis": "use XML::LibXML;\n$doc = XML::LibXML->new->parsefile($url);\n$xmlschema = XML::LibXML::Schema->new( location => $filenameorurl );\n$xmlschema = XML::LibXML::Schema->new( string => $xmlschemastring );\neval { $xmlschema->validate( $doc ); };",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 23,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "VERSION",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::LibXML::Schema - XML Schema Validation\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use XML::LibXML;\n$doc = XML::LibXML->new->parsefile($url);\n\n$xmlschema = XML::LibXML::Schema->new( location => $filenameorurl );\n$xmlschema = XML::LibXML::Schema->new( string => $xmlschemastring );\neval { $xmlschema->validate( $doc ); };\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The XML::LibXML::Schema class is a tiny frontend to libxml2's XML Schema implementation.\nCurrently it supports only schema parsing and document validation. As of 2.6.32, libxml2 only\nsupports decimal types up to 24 digits (the standard requires at least 18).\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new\n$xmlschema = XML::LibXML::Schema->new( location => $filenameorurl );\n$xmlschema = XML::LibXML::Schema->new( string => $xmlschemastring );\n\nThe constructor of XML::LibXML::Schema may get called with either one of two parameters. The\nparameter tells the class from which source it should generate a validation schema. It is\nimportant, that each schema only have a single source.\n\nThe location parameter allows one to parse a schema from the filesystem or a URL.\n\nThe string parameter will parse the schema from the given XML string.\n\nNote that the constructor will die() if the schema does not meed the constraints of the XML\nSchema specification.\n\nvalidate\neval { $xmlschema->validate( $doc ); };\n\nThis function allows one to validate a (parsed) document against the given XML Schema. The\nargument of this function should be a XML::LibXML::Document object. If this function\nsucceeds, it will return 0, otherwise it will die() and report the errors found. Because of\nthis validate() should be always evaluated.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Matt Sergeant, Christian Glahn, Petr Pajas\n",
                "subsections": []
            },
            "VERSION": {
                "content": "2.0134\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "2001-2007, AxKit.com Ltd.\n\n2002-2006, Christian Glahn.\n\n2006-2009, Petr Pajas.\n",
                "subsections": []
            },
            "LICENSE": {
                "content": "This program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            }
        }
    }
}