{
    "content": [
        {
            "type": "text",
            "text": "# XML::Node (perldoc)\n\n## NAME\n\nXML::Node - Node-based XML parsing: a simplified interface to XML::Parser\n\n## SYNOPSIS\n\nuse XML::Node;\n$xmlnode = new XML::Node;\n$xmlnode->register( $nodetype, $callbacktype => \\&callbackfunction );\n$xmlnode->register( $nodetype, $callbacktype => \\$variable );\nopen(FOO, 'xmlgenerator |');\n$p3->parse(*FOO);\nclose(FOO);\n$xmlnode->parsefile( $xmlfilename );\n\n## DESCRIPTION\n\nIf you are only interested in processing certain nodes in an XML file, this module can help you\nsimplify your Perl scripts significantly.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **EXAMPLE**\n- **SEE ALSO**\n- **NOTE**\n- **AUTHORS**\n- **LAST MODIFIED**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "XML::Node",
        "section": "",
        "mode": "perldoc",
        "summary": "XML::Node - Node-based XML parsing: a simplified interface to XML::Parser",
        "synopsis": "use XML::Node;\n$xmlnode = new XML::Node;\n$xmlnode->register( $nodetype, $callbacktype => \\&callbackfunction );\n$xmlnode->register( $nodetype, $callbacktype => \\$variable );\nopen(FOO, 'xmlgenerator |');\n$p3->parse(*FOO);\nclose(FOO);\n$xmlnode->parsefile( $xmlfilename );",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "Examples \"test.pl\" and \"parseorders.pl\" come with this perl module."
        ],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 41,
                "subsections": []
            },
            {
                "name": "EXAMPLE",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "NOTE",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "LAST MODIFIED",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "XML::Node - Node-based XML parsing: a simplified interface to XML::Parser\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use XML::Node;\n\n$xmlnode = new XML::Node;\n$xmlnode->register( $nodetype, $callbacktype => \\&callbackfunction );\n$xmlnode->register( $nodetype, $callbacktype => \\$variable );\n\nopen(FOO, 'xmlgenerator |');\n$p3->parse(*FOO);\nclose(FOO);\n\n$xmlnode->parsefile( $xmlfilename );\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "If you are only interested in processing certain nodes in an XML file, this module can help you\nsimplify your Perl scripts significantly.\n\nThe XML::Node module allows you to register callback functions or variables for any XML node. If\nyou register a call back function, it will be called when the nodes of the type you specified\nare encountered. If you register a variable, the content of a XML node will be appended to that\nvariable automatically.\n\nSubroutine register accepts both absolute and relative node registrations.\n\nHere is an example of absolute path registration:\n\n1. register(\">TestCase>Name\", \"start\" => \\&handleTestCaseNamestart);\n\nHere are examples of single node name registration:\n\n2. register( \"Name\", \"start\" => \\&handleNamestart);\n3. register( \"Name\", \"end\"   => \\&handleNameend);\n4. register( \"Name\", \"char\"  => \\&handleNamechar);\n\nHere is an example of attribute registration:\n\n5. register(\">TestCase:Author\", \"attr\" => \\$testcaseauthor);\n\nAbsolute path trigger condition is recommended because a \"Name\" tag could appear in different\nplaces and stands for different names.\n\nExample:\n\n1  <Testcase>\n2     <Name>Something</Name>\n3     <Oracle>\n4         <Name>Something</Name>\n5     </Oracle>\n6  </Testcase>\n\nStatement 1 causes &handleTestCaseNamestart to be called when parsing Line 2. Statements\n2,3,4 cause the three handler subroutines to be called when parsing both Line 2 and Line 4.\n\nThis module uses XML::Parser.\n",
                "subsections": []
            },
            "EXAMPLE": {
                "content": "Examples \"test.pl\" and \"parseorders.pl\" come with this perl module.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "XML::Parser\n",
                "subsections": []
            },
            "NOTE": {
                "content": "When you register a variable, XML::Node appends strings found to that variable. So please be\nsure to clear that variable before it is used again.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Chang Liu <liu@ics.uci.edu>\n",
                "subsections": []
            },
            "LAST MODIFIED": {
                "content": "$Date: 2001/12/10 11:38:28 $\n",
                "subsections": []
            }
        }
    }
}