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 » IIB9 XML Prolog while mapping

Post new topic  Reply to topic
 IIB9 XML Prolog while mapping « View previous topic :: View next topic » 
Author Message
Harsha_AS
PostPosted: Wed Apr 08, 2015 8:41 pm    Post subject: IIB9 XML Prolog while mapping Reply with quote

Apprentice

Joined: 04 Dec 2011
Posts: 26

Hello,

I am working on IIB9 and i am converting IDOC to XML message using mapping node. I am not able to get the XML Prolog in the out XML generated. Could anyone please let me if this can achieved. Please find the mapping information below.

I am getting XML output like below.

OutXML:
<Order>
<OrderNumber>40002230</OrderNumber>
<Material>
<ItemNumber>000010</ItemNumber>
</Material>
</Order>

Expected XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<Order>
<OrderNumber>40002230</OrderNumber>
<Material>
<ItemNumber>000010</ItemNumber>
</Material>
</Order>
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Wed Apr 08, 2015 8:53 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20697
Location: LI,NY

You need to explicitly create it using the corresponding declaration type for the parser. (XMLDecl, XMLDeclaration, etc...) You will find examples in the infocenter.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Harsha_AS
PostPosted: Wed Apr 08, 2015 9:22 pm    Post subject: IIB9 XML Prolog while mapping Reply with quote

Apprentice

Joined: 04 Dec 2011
Posts: 26

I am using DFDL for both Input and output of the mapping. How do i specify this in the DFDL XSD? Please find the below output XML DFDL xsd. Pls let me know where should i specify this. And also is there a specific sample which i can refer?

<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Order" type="Order"></xsd:element>
<xsd:complexType name="Order">
<xsd:sequence>
<xsd:element name="OrderNumber" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Material" >
<xsd:sequence>
<xsd:element name="ItemNumber" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Wed Apr 08, 2015 9:43 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

ISO-8859-1?

Well I just hope that you don't encounter any Euro Symbols in your data.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
martinb
PostPosted: Thu Apr 09, 2015 1:28 am    Post subject: Reply with quote

Master

Joined: 09 Nov 2006
Posts: 210
Location: UK

The Mapping node provides facilities to read and write content modeled in XML schema.

The XML prolog ( or XML declaration) is not part of the schema model and as such currently can't be created within the Mapping node.

There is an RFE that covers this, see http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=30057
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 » IIB9 XML Prolog while mapping
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.