Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » CMDocument for an internal subset?
CMDocument for an internal subset? [message #757916] Sat, 19 November 2011 10:15 Go to next message
Florian Thienel is currently offline Florian Thienel
Messages: 17
Registered: July 2009
Junior Member
Hi,

how can I create a CMDocument for a XML document that contains an
internal subset:

<!DOCTYPE section [
<!ELEMENT section (#PCDATA)>
<!-- ... -->
]>

and a little bit more interesting: how can I combine both:

<!DOCTYPE section PUBLIC "-//BLAH/DE" "blah.dtd" [
<!ELEMENT section (#PCDATA | blah)*>
]>

Any ideas?

Florian
Re: CMDocument for an internal subset? [message #758338 is a reply to message #757916] Tue, 22 November 2011 15:24 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2238
Registered: July 2009
Senior Member
On 11/19/2011 10:15 AM, Florian Thienel wrote:
> Hi,
>
> how can I create a CMDocument for a XML document that contains an
> internal subset:
>
> <!DOCTYPE section [
> <!ELEMENT section (#PCDATA)>
> <!-- ... -->
> ]>
>
> and a little bit more interesting: how can I combine both:
>
> <!DOCTYPE section PUBLIC "-//BLAH/DE" "blah.dtd" [
> <!ELEMENT section (#PCDATA | blah)*>
> ]>
>
> Any ideas?

That would require some hacking on
org.eclipse.wst.dtd.core.internal.saxparser.DTDParser and
org.eclipse.wst.dtd.core.internal.emf.util.DTDUtil to support building a
DTD CMDocument from something other than files. All of that's internal,
though, and doing it in a way that lets it be used by the editor has
been a large enough task that it's not yet been done.

Volunteering? :)

---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:URL exception
Next Topic:Timeout calling webservice
Goto Forum:
  


Current Time: Fri Aug 01 22:46:14 EDT 2014

Powered by FUDForum. Page generated in 0.05507 seconds