Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » CMDocument for an internal subset?
CMDocument for an internal subset? [message #757916] Sat, 19 November 2011 15:15 Go to next message
Florian Thienel is currently offline Florian ThienelFriend
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 20:24 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
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 Web Tools Platform
Previous Topic:URL exception
Next Topic:Timeout calling webservice
Goto Forum:
  


Current Time: Tue Apr 16 13:27:43 GMT 2024

Powered by FUDForum. Page generated in 0.05859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top