perldoc > XML::DOM::XMLDecl

📄 NAME

XML::DOM::XMLDecl - XML declaration in XML::DOM

🚀 Quick Reference

Use CaseCommandDescription
Get XML version$decl->getVersion()Returns the XML version attribute
Set XML version$decl->setVersion($version)Sets the XML version (should be "1.0")
Get encoding$decl->getEncoding()Returns the encoding attribute (may be undef)
Set encoding$decl->setEncoding($encoding)Sets the encoding (undef allowed)
Get standalone$decl->getStandalone()Returns the standalone attribute (may be undef)
Set standalone$decl->setStandalone($standalone)Sets the standalone flag (undef allowed)

📖 DESCRIPTION

XML::DOM::XMLDecl extends XML::DOM::Node, but is not part of the DOM Level 1 specification.

It contains the XML declaration, e.g.

<?xml version="1.0" encoding="UTF-16" standalone="yes"?>

See also XML::DOM::Document::getXMLDecl.

🔧 METHODS

XML::DOM::XMLDecl
📄 NAME 🚀 Quick Reference 📖 DESCRIPTION
🔧 METHODS

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-17 15:43 @216.73.216.79
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!