Focal Point
Removing/Switch off the DTD reference in iWay 5.5

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/2987060206

April 13, 2011, 11:06 AM
Gopal_mys
Removing/Switch off the DTD reference in iWay 5.5
Hi,

I am running a p- flow inside a channel,which takes a xml file with a DTD reference in it .

This DTD reference is causing the problem.

The iWay components like transforms are failing to parse the XML file and is giving the error as
Unexpected exception: XD[FAIL] cause: 2 subcause: 0 message: IO exception while parsing document java.net.UnknownHostException: xml.cxml.org.
The xml file has a DTD reference in it and contains this xml.cxml.org.
As of now i have removed the dtd reference manually and have built a transform.
But when I deploy all the components in a channel and when listener(File listener and accepts flat files) picks up message, the same error is still thrown when the message enters the transform object.
Even after accepting the file as flat and if i try to remove the DTD with a service object(XDConstantAgent) with a _flatof() function to is not working and still results in the same error.
Even having a XLST file to remove the DTD reference is too not working, as the XLST still try to parse the file first before accepting.

Is there any way to remove/switch off the DTD from the file?
Please help..


iWay ISM 5.5/iWay ISM 6.0 on Windows.
April 13, 2011, 12:01 PM
TommyKnocker
Hi Gopal,

Have you tried to run the pflow in Run Test Tool inside Designer or iIT? Did it work?
Could you send us the file with the XML you are using for the tests?

Cheers,

TK


DS 7.6.11
iSM 5.5, 5.6, 6.0.X
WXP, Ubuntu 10.04 LTS
April 13, 2011, 05:16 PM
Gopal_mys
Hi Tommy,

<?xml version="1.0" encoding="ISO-8859-1"?>
< !DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.017/cXML.dtd">
<cXML>
.
.
.
.
</cXML>

The DTD part of the xml,causing the problem.
Also as mentioned earlier, I am using a file listener to accept this XML as a flat file and then apply the functions to remove the DTD reference. What ever function I use, iWay still tries to parse the XML and results in a error.

Is there any way to bypass the XML parsing and remove the DTD content from the original XML.
April 13, 2011, 05:31 PM
Gopal_mys
quote:
Originally posted by Gopal_mys:
Hi Tommy,

I tried test run in Run Test Tool--inside Designer with no success..
<?xml version="1.0" encoding="ISO-8859-1"?>
< !DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.017/cXML.dtd">
<cXML>
.
.
.
.
</cXML>

The DTD part of the xml,causing the problem.
Also as mentioned earlier, I am using a file listener to accept this XML as a flat file and then apply the functions to remove the DTD reference. What ever function I use, iWay still tries to parse the XML and results in a error.

Is there any way to bypass the XML parsing and remove the DTD content from the original XML.



iWay ISM 5.5/iWay ISM 6.0 on Windows.
April 14, 2011, 04:31 AM
TommyKnocker
Hi Gopal,

I tried a PFLOW with a similar XML document and maybe the problem is the whitespace at the start of the < !DOCTYPE sentence; try to remove that and test again.

Cheers,


DS 7.6.11
iSM 5.5, 5.6, 6.0.X
WXP, Ubuntu 10.04 LTS
April 14, 2011, 09:07 AM
Gopal_mys
Thanks for the reply Tommy,

Even after removing that white space after "<" in the input is also not working .

That was a typo from myside...

Any other way?


iWay ISM 5.5/iWay ISM 6.0 on Windows.
April 14, 2011, 10:02 AM
TommyKnocker
YAW Gopal,

OK, I suppose that in the transform you have configured the validation against a DTD in the input or output properties. Could you try to select "None" option and try again? But instead testing inside a channel try the test transform tool.

iWay Transformer --> .gpx --> properties --> input/output --> validation(TAB)

Regards,


DS 7.6.11
iSM 5.5, 5.6, 6.0.X
WXP, Ubuntu 10.04 LTS
April 15, 2011, 09:42 AM
Gopal_mys
Ya Tommy,

First I tested everything in Tranformer tool.

Validation has been selected as none in the my transformation file.

As this didnt work, I thought of accepting the xml as a flat file and was trying to remove DTD reference and feed that to the Transform.


iWay ISM 5.5/iWay ISM 6.0 on Windows.