How to add a Process node to an existing JDF document

Sep 29, 2011 at 5:31 PM

So far, all the examples I've seen build a JDF document from scratch. 

But suppose I want to flesh out an existing JDF document by adding process nodes into an intent node.  It seems the builder classes aren't accessible except when the nodes are being created, thus the fluent goodness (like managing resource links) is inaccessible when editing a pre-existing document.

Or did I miss something obvious?

 

Coordinator
Sep 29, 2011 at 9:26 PM

You can access the builder from any XElement using the appropriate extension method as follows:

//Builder for JDF node.  Throws exception if element is not JDF
element.ModifyJdfNode()...

//Builder for JMF node.  Throws exception if element is not JMF
element.ModifyJmfNode()...