Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: updates to schema and unionMemberSchema

...

DFDL InfosetDaffodil's JDOM XML InfosetScala scala.xml.Node Infoset
Document Information ItemJDOM DocumentThe document is represented by the root element. There is no separate document item.
rootgetRootElement()none
dfdlVersion

attribute daf:dfdlVersion on the root element.

(Not yet implemented)

none
schema (reserved for future use)

daf:schema attribute. Same as for ElementInformationItem. (See below.)

(No implementation)

nonesame attribute scheme as JDOM

unicodeByteOrderMark

attribute daf:unicodeByteOrderMark on the root element.

(Not yet implemented)

same attribute scheme as JDOM
Element Information ItemJDOM Elementscala.xml.Elem
namespacegetNamespace(): org.jdom.Namespacedef namespace: String
namegetName(): Stringdef name: String
documentgetDocument()none (see parent)
datatype

attribute xsi:type with value one of the set of XML Schema simple type QNames that are in the DFDL subset of XML Schema.

For example: xsi:type='xs:string'

By convention, the prefix 'xsi' and 'xs' denote here the usual standard namespace URIs.

If the Infoset Element's type is an anonymous simple type, then its base type is used.

If the Infoset Element's type is complex, then the attribute will not appear.

(Not yet implemented)

same attribute scheme as JDOM
dataValue

For simple types other than xs:string, the cannonical XML representation of the value, as returned by getText().

For type xs:string, the DFDL Infoset allows representation of characters that are illegal in XML.

These are represented by replacing them with characters in the Unicode Private Use Area by a scheme described below.

def text: String to obtain canonical text.

Values containing XML-illegal characters use the same scheme.

nilledxsi:nil='true' attribute on element. Absence of this attribute implies 'false'Same attribute xsi:nil
childrengetChildren()def child: Node*
parentgetParent()

none

Scala XML nodes are immutable, and do not have parent references.

This allows nodes to be shared.

schema

A special attribute daf:schemaComponentID schema has a value which can be used to retrieve the associated schema component.

(Not yet implemented. Note: requires a means to create a standard Schema Component Designator  or SCD)

Same attribute scheme
valid

daf:valid='true' means the data has been tested and is valid, daf:valid="false" means the data has been tested and is invalid. The absence of the attribute means that no position is taken on the validity of the data.

(Not yet implemented)

Same attribute scheme
unionMemberSchema

A special attribute daf:unionMemberSchema has a value which can be used to retrieve the associated schema component.

(Not yet implemented. Note: requires a means to create a standard Schema Component Designator  or SCD)

(not yet implemented)
"No Value"A JDOM Element with no children (not even Text node children)  is the representation of an element with "No Value".A scala.xml.Elem with no children.
Augmented Infoset

A JDOM Element with a special marker attribute: dafint:hidden='true' signifies that the element is part of the augmented infoset.

This attribute is can be used to identify and filter out elements when the un-distinguish augmented infoset elements from un-augmented in the case where the augmented infoset is neededconverted to JDOM.

Same attribute scheme, but on scala.xml.Elem element.

...