-
Notifications
You must be signed in to change notification settings - Fork 0
ReSTful Low Level XML versus System.Xml.Linq, DTD, XSD, DOM, RDF
System.Xml.Linq has significant higher-level functionality for XML formats and streams. In form versus functionality, we can combine that library with System.Reflection and simulate the disabled ".class" assembly instruction in source code. See LINQ to XML Events for one alternative to strictly typed "class" structures.
Ideally, we want low-level XHTML data protocols or XML streams without any extra DTD, XSD, DOM wraps, or RDF serialization. Whereas, HTML5 has microdata (see also schema.org, but specifications were left incomplete on how to boilerplate DAE or MathML formats to HTML5 forms or XML streams. Therefore, accept XHTML, DAE, and MathML either wrapped or unwrapped in well-formed XML with or without microdata.
Based on standards, lets replace "class" structures with XHTML tables:
<table itemscope itemtype="object" id="101">
<td itemprop="Name">Somebody</td>
<td itemprop="Grade">Twelve</td>
<td itemprop="Subject">History</td>
</table>
That is overly-simplified, but it does not use any custom DTD. We could ReSTfully use "get /101/Name" to ldstr "Somebody" (load string onto stack).