Skip to content

xmlDocument.writeToFile('document.xml') is not defined for the type XmlDocument #4

@Ztagdev

Description

@Ztagdev

Hi, I am using this plugin to write XML document, but the code is giving error at this line.

XmlDocument xmlDocument = XmlDocument([
XmlDeclaration(version: '1.0', encoding: 'UTF-8'),
XmlElement(
name: 'root',
children: menu,
),
]);
xmlDocument.writeToFile('document.xml');

This is the version of plugin I am using:

xml_parser: ^0.1.1

Anyone please help me.
Thankx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions