Hi,

> (a)
> 
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
> <!DOCTYPE ia SYSTEM "ia.dtd">
> <FirstElement/>

something like this

    fDocumentType = (DOMDocumentTypeImpl *) 
fDocument->createDocumentType(elemDecl.getFullName(), publicId, systemId);
    fDocument->setDocumentType(fDocumentType);

> 
> (b)
> 
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
> <!DOCTYPE ia SYSTEM "ia.dtd"
> [
>    <!ELEMENT FirstElement EMPTY>
> ]>
> <FirstElement/>

There is a setInternalSubset method on DOMDocumentTypeImpl. If you want an 
example of how this is created from a XML document with an internal subset 
in then take a look at parsers/AbstractDOMParser. This builds up and 
internal subset.

Gareth


-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to