Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed xml package constraint #368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

christian-thiele
Copy link

Using the current excel version together with xml package below version 6.3.0 yields this error:

../../.pub-cache/hosted/pub.dev/excel-4.0.6/lib/src/parser/parse.dart:672:46: Error: The getter 'value' isn't defined for the class 'XmlText'.
 - 'XmlText' is from 'package:xml/src/xml/nodes/text.dart' ('../../.pub-cache/hosted/pub.dev/xml-5.4.1/lib/src/xml/nodes/text.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'value'.
        buffer.write(_normalizeNewLine(child.value));
                                             ^^^^^

See xml changelog:

Deprecate the ambiguous XmlNode.text: Replace with XmlNode.value to access the textual contents of the node, or XmlNode.innerText to access the textual contents of its descendants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant