This project has moved and is read-only. For the latest updates, please go here.

Processing Instruction support

Sep 17, 2007 at 3: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.

See Section 2.6 of for more info on Processing Instruction

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