XmlElement.writeTo stdout?

I am using JUCE to do some XML manipulation and while its very easy to save the resulting XML to a file using the writeTo method, I can’t seem to figure out easy way to save it to stdout.

this is a command line tool and stdout would be useful in that context. XmlElement uses juce::File to save to a file, but I can’t seem to find a way for juce:File to be stdout instead of an actual file…

any suggestions?

XmlElement::toString()?

2 Likes