David: That works! Thank you very much for your help!
Shenxue -----Original Message----- From: David Jencks [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 12, 2005 1:06 PM To: [email protected] Subject: Re: How do I remove a DTD declaration in my xml file using xmlbean I use this code, from an XmlCursor positioned at the start of the document: XmlDocumentProperties xmlDocumentProperties = cursor.documentProperties(); xmlDocumentProperties.remove(XmlDocumentProperties.DOCTYPE_NAME); xmlDocumentProperties.remove(XmlDocumentProperties.DOCTYPE_PUBLIC_ID); xmlDocumentProperties.remove(XmlDocumentProperties.DOCTYPE_SYSTEM_ID); thanks david jencks On Jul 12, 2005, at 10:12 AM, Shenxue Zhou wrote: > I have an xml file which contains a DOCTYPE declaration like the > following: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE myApp > PUBLIC "-//MyApp//EN" > "http://www.myapp.com/myapp.dtd" > > <myApp> > ...... > </myApp> > > > I need to remove the DOCTYPE declaration and add schema definition > attributes to the myApp element. How do I do that using XmlBean API? > > Thanks, > > Shenxue > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
