The XML Feature contains operators that allow the processing of XML documents. Add de.uniol.inf.is.odysseus.server.xml.feature to your Odysseus in order to use this feature.
Table of Contents |
---|
Operators
...
Code Block |
---|
trans3 = XMLTRANSFORM({ dynamic = true }, input ) |
Wrapper
XML2 ProtocolHandler
This Protocol handler allows to load XML documents which will be represented as the KeyValueObject data type.
Code Block |
---|
inputXML2 = ACCESS({
source='xml',
protocol='XML2',
transport='File',
wrapper='GenericPull',
datahandler='KeyValueObject',
metaattribute = ['TimeInterval'],
options = [
['filename', '../document.xml']
]
} |
XML3 ProtocolHandler
This Protocol handler allows to load XML documents into the Odysseus system whereas the document will be represented by the XMLStreamObject data type. Furthermore, with the tag_to_strip
option it is possible to shorten the XML document and thus process only a part of the document. The option awaits an element name that is present in the document.
Code Block |
---|
input = ACCESS({
source='xml',
protocol='XML3',
transport='File',
wrapper='GenericPull',
datahandler='XMLStreamObject',
options=[
['filename', '../document.xml'],
['tag_to_strip', 'user']
]
}
) |