You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Anoop Singh Saharan <an...@wipro.com> on 2001/03/06 10:31:57 UTC
Setting the DocType!!!!!
Hi,
I am using Oracle parser..******* i am not sure whether this is the right forum to ask this question or not...........
anyway*******
i am setting the DOCTYPE using XMLDocument method public void setDoctype(String rootname,String sysid,String pubid)
Sets the doctype URI for the document
Parameters:
root - The name of the root element
sysid - The system id of the doctype
pubid - The public id of the doctype
i am doing like this ****
XMLDocument xmlDoc;
xmlDoc.setDoctype("mapping", "mapping.dtd" , "SYSTEM" );
but it is giving the DOCTYPE as below.
<!DOCTYPE mapping PUBLIC "SYSTEM" "mapping.dtd">
Do you have any idea like how to avoid the PUBLIC and quotes around SYSTEM ?
i want it like this
<!DOCTYPE mapping SYSTEM "mapping.dtd">
i have searched in Oracle Parser API's there is no method other than this i guess to set the doctype
any help would be appreciated..
Thx * Regards
Anoop Singh ( ** I am not miles away just a mail away ** )
Wipro Technologies
EMail : anoop.singh@wipro.com
www.wipro.com
World's First SEI CMM Level 5 Company
Re: Setting the DocType!!!!!
Posted by Anoop Singh Saharan <an...@wipro.com>.
hi,
i got the solution.like this...
xmlDoc.setDoctype("mapping", "mapping.dtd" , null );
thanks.
anoop singh ** i am not miles away just a mail away **
----- Original Message -----
From: Anoop Singh Saharan
To: xerces-j-dev@xml.apache.org
Sent: Tuesday, March 06, 2001 3:01 PM
Subject: Setting the DocType!!!!!
Hi,
I am using Oracle parser..******* i am not sure whether this is the right forum to ask this question or not...........
anyway*******
i am setting the DOCTYPE using XMLDocument method public void setDoctype(String rootname,String sysid,String pubid)
Sets the doctype URI for the document
Parameters:
root - The name of the root element
sysid - The system id of the doctype
pubid - The public id of the doctype
i am doing like this ****
XMLDocument xmlDoc;
xmlDoc.setDoctype("mapping", "mapping.dtd" , "SYSTEM" );
but it is giving the DOCTYPE as below.
<!DOCTYPE mapping PUBLIC "SYSTEM" "mapping.dtd">
Do you have any idea like how to avoid the PUBLIC and quotes around SYSTEM ?
i want it like this
<!DOCTYPE mapping SYSTEM "mapping.dtd">
i have searched in Oracle Parser API's there is no method other than this i guess to set the doctype
any help would be appreciated..
Thx * Regards
Anoop Singh ( ** I am not miles away just a mail away ** )
Wipro Technologies
EMail : anoop.singh@wipro.com
www.wipro.com
World's First SEI CMM Level 5 Company
------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org