Greetings!

I'm looking for any assistance in developing a DFDL schema which handles a 
particular use case. The schema needs to process a data block which is 
primarily fixed format binary data, but also has embedded XML content of a 
known fixed length within it.

We are looking to develop a DFDL schema which is capable of parsing and 
un-parsing a mixed format data block so that the embedded XML content is output 
as straight XML when parsing, and then serialized back to character data when 
being un-parsed.

In the example below, we want to convert "TEXT" into an integer value, "DATA" 
into an integer value, and then simply leave 
"<element1><element2>3</element2></element1>" as XML. Note that the XML content 
is a known fixed length string.

For example:
Given the following input data...
TEXTDATA<element1><element2>3</element2></element1>


Create a DFDL schema that outputs the following XML...
<?xml version="1.0" encoding="UTF-8"?>
<ns1:INTEGER1>1413830740</ns1:INTEGER1>
<ns1:INTEGER2>1145132097</ns1:INTEGER2>
<element1>
<element2>3</element2>
</element1>


What we currently can do...
At the moment we can parse the entire embedded XML content into a string, but 
the problem is that DFDL is outputting the XML as escaped XML, and we want it 
to output un-escaped XML. For example we want it to output

This:
<element1><element2>3</element2></element1>

Instead of this:
&lt;element1&gt;&lt;element2&gt;3&lt;/element2&gt;&lt;/element1&gt;


Thanks,
Brandon Busuttil
The Boeing Company | BDS | Autonomous Systems
Software Engineer, Maritime Undersea

** This transmission is intended only for the use of the individual(s), firm, 
or company to whom it is addressed and may contain information that is 
privileged and/or confidential. If the reader of this message is not the 
intended recipient, you are hereby notified that any disclosure, distribution, 
dissemination, downloading, or copying of the information is strictly 
prohibited. If you have received this transmission in error, please contact me 
for directions.

Reply via email to