Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Removing/Switch off the DTD reference in iWay 5.5

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Removing/Switch off the DTD reference in iWay 5.5
 Login/Join
 
Member
posted
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.
 
Posts: 20 | Registered: April 11, 2011Report This Post
Member
posted Hide Post
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
 
Posts: 10 | Registered: November 02, 2010Report This Post
Member
posted Hide Post
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.
 
Posts: 20 | Registered: April 11, 2011Report This Post
Member
posted Hide Post
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.
 
Posts: 20 | Registered: April 11, 2011Report This Post
Member
posted Hide Post
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
 
Posts: 10 | Registered: November 02, 2010Report This Post
Member
posted Hide Post
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.
 
Posts: 20 | Registered: April 11, 2011Report This Post
Member
posted Hide Post
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
 
Posts: 10 | Registered: November 02, 2010Report This Post
Member
posted Hide Post
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.
 
Posts: 20 | Registered: April 11, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Removing/Switch off the DTD reference in iWay 5.5

Copyright © 1996-2020 Information Builders