ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DFDL - multiple seperators

Post new topic  Reply to topic
 DFDL - multiple seperators « View previous topic :: View next topic » 
Author Message
mb01mqbrkrs
PostPosted: Mon Sep 07, 2015 2:00 am    Post subject: DFDL - multiple seperators Reply with quote

Apprentice

Joined: 18 Nov 2011
Posts: 48

Hi All,
Probably an easy question, but I just can't figure it out!

I'm trying to parse the following text...
Code:

#header1
header2
Recorda
Linea1
end
Recordb
Lineb2
end


...so that I can represent in the following..
Code:

<header>
    <field1>header1</field1>
    <field1>header2</field1>
</header>
<Record>
    <field1>a</field1>
    <field1>Linea1</field1>
</Record>
<Record>
    <field1>b</field1>
    <field1>Lineb1</field1>
</Record>


My DFDL model looks like this....
Code:

message
   sequence (%NL Separator)
      header (# initiator)
         sequence (%NL Separator)
            field1 (discriminator: {fn:not( fn:starts-with(.,'Record'))})
      body (Record initiator)
         sequence (%NL Separator)   
            field1 (discriminator: {. ne 'end'})


When trying to parse my test message, I'm getting the following error....
Code:

fatal: CTDP3058E: Separator '%NL;' not found at offset '19'  for sequence within element  '/message[1]'.


Now, offset 19 is two characters after the standard "0d 0a" new line characters. This is occurring at the start of the "Record" stage. Is the parser expecting two new line indicators (one for the message sequence and one for the header sequence), or is it something totally different?
Back to top
View user's profile Send private message
timber
PostPosted: Mon Sep 07, 2015 7:05 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Which version of IIB are you using? ( please quote fix pack level as well ).
Quote:
Is the parser expecting two new line indicators (one for the message sequence and one for the header sequence), or is it something totally different?
What does the DFDL Trace tell you?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » DFDL - multiple seperators
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.