Combine Nokogiri XML Builders

Viewed 2666

I like the Nokogiri::XML::Builder construct, but it would be easier to assemble large XML documents if I could modularize the building process further by splitting the job among several builders.

Does anybody see a way to get multiple builders to cooperate? (for instance, a parent builder calling functions that set child builders to create smaller portions of the document)

Or is there a way to modify a builder after its block terminates? (---short of outputting XML, then parsing it into a Nokogiri::XML::Document, then adding nodes, then outputting XML again)

1 Answers
Related