Arabica: operator<< for the DOM

Just committed DOM/Utils/Stream.h to CVS. This provides one of Arabica’s most requested features - an operator<< from DOM::Nodes. It is, as ever, fully parameterised, so it should be possible to serialise DOM trees with an arbitrary string type down any stream, so long as the string and stream char types match, and there’s an operator<< for the string type. If you’re using std::string or std::wstring, it’ll just work.

SAX2DOM::Parser<std::string> domParser;
SAX::wInputSource is;

... load instance from somewhere ...

domParser.parse(is);
DOM::Document<std::string> doc = domParser.getDocument();

... manipulate doc ...

// dump out to console
std::cout << doc;

Tagged code, arabica, xml, and c++


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired



Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired


Jez Higgins

Freelance software grandad
software created
extended or repaired