-Documentation
This commit is contained in:
@@ -19,11 +19,20 @@
|
||||
<listItem><para>Single child text nodes are a value directly against an element, otherwise they are accessed via #text.</para></listItem>
|
||||
<listItem><para>The XML declaration and processing instructions are prefixed with ?.</para></listItem>
|
||||
<listItem><para>Charater data, comments, whitespace and significate whitespace nodes are accessed via
|
||||
#cdata-section, #comment, #whitespace and #significate-whitespace respectively. </para></listItem>
|
||||
#cdata-section, #comment, #whitespace and #significate-whitespace respectively.</para></listItem>
|
||||
<listItem><para>Multiple nodes with the same name at the same level are grouped together into an array.</para></listItem>
|
||||
<listItem><para>Empty elements are null.</para></listItem>
|
||||
</list>
|
||||
|
||||
<para>If the XML created from JSON doesn't match what you want then you will need to convert it manually.
|
||||
The best approach to do this is to load your JSON into a LINQ to JSON object like JObject or JArray and then use LINQ to create
|
||||
an XDocument. The opposite process, using LINQ with an XDocument to create a JObject or JArray, also works.
|
||||
Find out more about using LINQ to JSON with LINQ <externalLink>
|
||||
<linkText>here</linkText>
|
||||
<linkUri>QueryingLINQtoJSON.htm</linkUri>
|
||||
<linkTarget>_self</linkTarget>
|
||||
</externalLink>.</para>
|
||||
|
||||
<alert class="note">
|
||||
<para>The version of Json.NET being used in your application will change what XML conversion methods are available.
|
||||
SerializeXmlNode/DeserializeXmlNode are available when the framework supports XmlDocument,
|
||||
|
||||
Reference in New Issue
Block a user