Processing Instruction support

Sep 17, 2007 at 2:55 AM
I have an r2ml (xml) document that I want to 'extend' by adding metadata. As I want to keep the r2ml valid to the schema I plan to use Processing Instructions. I was wondering if the serialization/deserialization part of this library supports extracting the processing instructions.

Processing instructions (PIs) allow documents to contain instructions for applications. PIs are not part of the document's character data, but must be passed through to the application.

Currently I am not using this library to serialize/deserialize (using .NET framework stuff) however if it supports the extraction of Processing Instructions through serialization or even by just parsing the document then I would be interested in knowing how to do this with this library.

Note:
See Section 2.6 of http://www.w3.org/TR/2000/REC-xml-20001006#sec-pi for more info on Processing Instruction

Thanks
Richard
Coordinator
Oct 11, 2007 at 4:12 AM
This post contains an overview of how Json.NET handles converting XML.

http://james.newtonking.com/archive/2006/07/11/656.aspx