I'm trying to create a Document from scratch and add
some DTD entities at the top of the document.

For example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE webpage SYSTEM
"/opt/website-2.1b1/website.dtd"
[
ENTITY linking SYSTEM "olink.xml" NDATA XML
]>

I've tried setting the external declarations(I'm
pretty sure I don't need internal declarations but I'm
not a DTD/XML expert), but when I write the document
to an xml file it doesn't appear.  I've looked through
some of the source code but can't find where it
actually get obtained, printed, etc.

example code:

ExternalEntityDecl entity =
    new
ExternalEntityDecl("linking",null,"olink.xml");
List declarations = new ArrayList();
declarations.add(entity);
docType.setExternalDeclarations(declarations);

I get the following:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE webpage SYSTEM
"/opt/website-2.1b1/website.dtd">

Any ideas?  I have a feeling I'm missing a concept.

Thanks,
Warren.

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to