"Evert Haasdijk" <[EMAIL PROTECTED]> writes:
> Thanks for your suggestion, although I'm not sure how to 'build the
> <!DOCTYPE ...> myself' Could you illustrate with some (pseudo)code ?
You just want to build a string piece by piece, then read in the dtd,
then close the doctype;
I'm Sorry Evert, but I'm really the Xerces-Perl maintainer, so I do
all my string manipulations using Perl strings, which are a lot easier
to deal with than DOMString's or XMLCh*'s. So I'll just give you the
basic idea.
DOMString doctype_open("<!DOCTYPE ");
doctype_open += DOMString("your_doc_name_here");
doctype_open += DOMString(" SYSTEM");
doctype_open += DOMString("your_doc_path_here");
doctype_open += DOMString("[");
DOMString doctype_close("]]>");
Then read your DTD into another string:
DOMString my_dtd;
And then piece them all together with my_dtd between doctype_open and
doctype_close:
doctype_open += my_dtd;
doctype_open += doctype_close;
I'm sure I've screwed up the syntax.
jas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]