cancel
Showing results for 
Search instead for 
Did you mean: 

missing namespace in the DTD ?

Former Member
0 Kudos

Hi Guys,

I have converted the xml into DTD and i see there is no namespace. It is not allowing to add the namespace.

How can i get the namespace added to my DTD ?

Thanks,

k s reddy

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hey

how are u converting XML to DTD?are u using Altova or some tool?

also why do u want to convert XML to DTD

also see if this helps u specify namespace in DTD

http://bobcat.webappcabaret.net/javachina/faq/xml_01.htm#dtd_Q25

thanx

ahmad

Message was edited by:

Ahmad

Former Member
0 Kudos

Hi Ahmad,

I configured for HTTP-RFC and when we send the data from 3rd aprty we r getting an error in 3rd party system saying missing namespace. we have conver all the incloming xmls to dtd and using in PI.

we found the namespace is missing in dtd. I am looking at this issue

Thanks.

srini

Former Member
0 Kudos

Hey

why did u convert all the XML's to DTD?is there any specific reason for that,may be company policy or anything?

thanx

ahmad

Former Member
0 Kudos

Hi Ahmad,

I have tried to add the namespace and i am getting the following error

Unable to convert imported document to WSDL

Reason: Wrong declaration: "<!ATTLIST biztalk_1

first CDATA #FIXED "xmlns="urn:biztalk-org:biztalk:biztalk_1">"

>"

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

<!DOCTYPE biztalk_1 [

<!ELEMENT biztalk_1 (header, body)>

<!ATTLIST biztalk_1

first CDATA #FIXED "xmlns="urn:biztalk-org:biztalk:biztalk_1">"

>

<!ELEMENT header (delivery)>

<!ELEMENT delivery (message, to, from)>

<!ELEMENT message (messageID, sent, subject)>

<!ELEMENT messageID (#PCDATA)>

<!ELEMENT sent (#PCDATA)>

<!ELEMENT subject (#PCDATA)>

<!ELEMENT to (address)>

<!ELEMENT from (address)>

<!ELEMENT address (#PCDATA)>

<!ELEMENT body (BACUSTOMER.CheckIn)>

<!ELEMENT BACUSTOMER.CheckIn (BACustomer)>

]>

Former Member
0 Kudos

hey

but why do u want a DTD from XML in first place?

usually if we get DTD we import that to use as data type,why r u doing the reverse?

thanx

ahmad

Former Member
0 Kudos

Hi Ahmad,

I have the DTD, but it dosent have any namespace defined. I need to add the namespace manually to the DTD.

any help about the examples would be appreciated

Thanks,

srini

Former Member
0 Kudos

Hi Ahmad,

what is diff between xsd and dtd ?

do i get the namespace added if i go for a XSD

Thanks,

srini