We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Having written a simple xml example using the xmlWriter, how to write the dom to string or file?
val xmlWriter = xmlStreaming.newWriter() xmlWriter.apply { startDocument("3.1", "utf-8", true) startTag(null, "root", null) attribute(null, "id", null, "123") startTag(null, "child", null) attribute(null, "name", null, "John Doe") text("This is a child node") endTag(null, "child", null) endTag(null, "root", null) endDocument() }
The text was updated successfully, but these errors were encountered:
Basically you want a newWriter instance that takes an Appendable parameter. For files there is the ability to specify the Writer as output.
newWriter
Appendable
Writer
Sorry, something went wrong.
No branches or pull requests
Having written a simple xml example using the xmlWriter, how to write the dom to string or file?
The text was updated successfully, but these errors were encountered: