-
Notifications
You must be signed in to change notification settings - Fork 2
xmlns
Doug Bird edited this page Oct 23, 2015
·
31 revisions
#Flat XML Schema An XML Namespace
Namespace for flat XML documents.
All examples in this specification assume this namespace has been declared with the tag "fx"; ie: xmlns:fx="https://github.com/katmore/flat/wiki/xmlns".
-
xml version: 1.0
-
character encoding must be UTF-8
-
Top level node:
-
Other suggested namespace declarations:
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:extxs="https://github.com/katmore/flat/wiki/xmlns-extxs"
- xmlns="https://github.com/katmore/flat/wiki/xmlns-object"
- xmlns:fx="https://github.com/katmore/flat/wiki/xmlns"
-
attributes:
- fx:flat-xml-version: specify version of flat-xmlns used in the document.
- fx:meta: indicate meta-data regarding document, such as an object type that was mapped.
- fx:created: ISO 8601 formatted time of document creation.
- fx:crc32: crc32 polynomial of a hypothetical object represented by the document; expressed as a base16 number.
- fx:md5: md5 hash of a hypothetical object represented by the document; expressed as a base16 number.
-
Attribute value:
- the encoded attribute value should be prefixed with "data:application/octet-stream;base64,".
- example usage, considering the value "hello"
<mynode myattr="data:application/octet-stream;base64,aGVsbG8=" />
-
example flat document `