Author |
Message
|
Harsha_AS |
Posted: Wed Apr 08, 2015 8:41 pm Post subject: IIB9 XML Prolog while mapping |
|
|
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 |
|
 |
fjb_saper |
Posted: Wed Apr 08, 2015 8:53 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20763 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 |
|
 |
Harsha_AS |
Posted: Wed Apr 08, 2015 9:22 pm Post subject: IIB9 XML Prolog while mapping |
|
|
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 |
|
 |
smdavies99 |
Posted: Wed Apr 08, 2015 9:43 pm Post subject: |
|
|
 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 |
|
 |
martinb |
Posted: Thu Apr 09, 2015 1:28 am Post subject: |
|
|
Master
Joined: 09 Nov 2006 Posts: 210 Location: UK
|
|
Back to top |
|
 |
|