You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Miguel Perez <mi...@epicentric.com> on 2002/04/19 01:25:17 UTC

Creating a Document with DOMImplementation

I am trying to insert the DocType node into an XML document. I tried created
the Document with DOMImplementation and passing the DocType in as a
parameter. However, when I display the document, I get the following: 


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

When what I'm looking for is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE WebServices SYSTEM "webservices.dtd">


//Creation of doctype
DocumentType docType =
domImplementation.createDocumentType("ContentSyndicationWebService","content
syndicationwebservice","contentsyndicationwebservice.dtd");

//Creation of document
document =
domImplementation.createDocument(nameSpaceURI,"webservices",docType); 


Am I taking the right approach? Can anyone point me in the right direction? 

Your help is appreciated,

Miguel

Should we use SOAP from mail client applet?

Posted by Boris Garbuzov <bo...@marketingtips.com>.
Is it reasonable to use SOAP from applet for a serious mail client project
and what are resources to find it out? We are starting big project on
upgrade of existing special mail client application and we are kindly asking
experts' opinions on this list about possible architecture issues.
Interested in joining the team on contract basis can apply at
boris.garbuzov@marketingtips.com. Sincerely yours, Boris.