dart xml with external files -


i've been able follow examples of dart-xml dart file containing xml in variable. how parse , create external xml files?

if try , import xml file directly dart gets stuck on first character of xml file '<'.

how write given example dart-xml https://github.com/renggli/dart-xml? can print shell using

print(bookshelfxml.tostring()); 

but how save || pipe external file? i've tried use dart:io little not having success @ moment.

this should want:

import 'dart:io';  ...  var file = new file('path/to/file.xml'); file.writeasstring(bookshelfxml.tostring()); 

see also:


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -