cancel
Showing results for 
Search instead for 
Did you mean: 

PDF to XML

Former Member
0 Kudos

Hi Experts,

I have scenario from PDF to XML file generation.

After content conversion agent the output of XML is created as

<?xml version="1.0" encoding="UTF-8" ?>

<MT_Balance xmlns="http://PDFtoXML.XX">

<Address>

<Name>XX</Name>

<Company>XXX</Company>

<Door>XXXX</Door>

<City>XXXX</City>

</Address>

</MT_Balance>

But in Message Mapping the output of XML structer is as below

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Balance xmlns:ns0="http://PDFtoXML.XX">

<Address>

<Name/>

<Company/>

<Door/>

<City/>

</Address>

</ns0:MT_Balance>

The difference is "ns0" addition.

Please help to solve the problem.

Regards,

Amit

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Amit,

In the mapping it adds the "ns0" at the beginning and end of the tags.

Thats not an issue to you, so you can proceed your development things.

Regards

Ramesh

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

Why you considering Message mapping output?? Try execute the scenario end to end check the output in Moni,

In message mapping XI will ad one name space NSO tags,just ignore it.

Regards,

raj

Former Member
0 Kudos

Hi,

Thanks for the response.

I executed the scenario end to end but the output of XML is blank and this is deu to ns0.

How to ignore the ns0.

Former Member
0 Kudos

Hi Amit,

Are you copied this structure from any other software component or other namespace?

If yes then these problems may come. so you will crete that data structures once again (DT, MT, MM)

Regards

Ramesh

Former Member
0 Kudos

Hi Ramesh,

Thanks for the response.

I have not copy any anything. I created the new interface.

Former Member
0 Kudos

Hi,

You are getting the error when you are testing the mapping in the test tab or when you are executing the whole scenario.

And paste here what error you are getting.

Ramesh

Former Member
0 Kudos

Hi,

I was testing whole scenario and there is no error but the output is blank.

The output as below:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_Balance xmlns:ns0="http://PDFtoXML.XX"></ns0:MT_Balance>

Former Member
0 Kudos

> I executed the scenario end to end but the output of XML is blank and this is deu to ns0.

> How to ignore the ns0.

You can ignorethe ns0 by keeping blank "XML namespace" in the Message type .

Former Member
0 Kudos

Hi

I don't think the problem is due to that, check the other things all are correct or not

Other wise follow the link what ravi mentioned to remove the namespace.

Regards

Ramesh

Former Member
0 Kudos

Hi,

If I remove the namespace from the message type then only <MT_Balance> is coming in XML.

i.e.

<?xml version="1.0" encoding="UTF-8"?>

<MT_Balance>

<Address>

<Name>XX</Name>

<Company>XX</Company>

<Door>D</Door>

<City>C</City>

</Address>

</MT_Balance>

But after conversion agent of PDF file the XML file is as below

<?xml version="1.0" encoding="UTF-8" ?>

<MT_Balance xmlns="http://PDFtoXML.pwc.com">

<Address>

<Name>XX</Name>

<Company>XX</Company>

<Door>D</Door>

<City>C</City>

</Address>

</MT_Balance>

Pls tell me how to remove the "xmlns="http://PDFtoXML.pwc.com" from the XML tag of conversion agent.