[jdom-interest] DTD im XML-File and Element.getContent()
Brett McLaughlin
brett.mclaughlin at lutris.com
Tue Sep 19 17:32:17 PDT 2000
Marcus Breig wrote:
>
> Hi Brett,
>
> the XML-File (with DTD) in the attachment...
Ahhh, yes. We have some known problems with inline DOCTYPE definitions -
I will work on this soon, and report the fix. Thanks!
-Brett
>
> Marcus
>
> Brett McLaughlin schrieb:
>
> > Marcus Breig wrote:
> > > My problem: my sample XML-File contains a DTD for
> > > defining my XML-language. In this case the method
> > > Element.getContent() always returns an empty string.
> >
> > Can you post your XML document? I think I know what this is, but I want
> > to make sure.
> >
> > Thanks
> > Brett
>
> ------------------------------------------------------------------------
> <?xml version='1.0' encoding="ISO-8859-1" standalone="yes" ?>
>
> <!DOCTYPE users [
>
> <!ELEMENT users (groups, user+) >
>
> <!ELEMENT groups (group)+ >
> <!ELEMENT group (members, accessRights, commandRights)+ >
> <!ATTLIST group name CDATA #REQUIRED >
> <!ELEMENT members (member)+ >
> <!ELEMENT member (#PCDATA) >
> <!ELEMENT accessRights (table)+ >
> <!ELEMENT table EMPTY >
> <!ATTLIST table name CDATA #REQUIRED >
> <!ATTLIST table canRead (true|false) "false" >
> <!ATTLIST table canWrite (true|false) "false" >
> <!ELEMENT commandRights (tableCmds)+ >
> <!ELEMENT tableCmds (command)+ >
> <!ATTLIST tableCmds tablename CDATA #REQUIRED >
> <!ELEMENT command EMPTY >
> <!ATTLIST command name CDATA #REQUIRED >
> <!ATTLIST command allowed (true|false) "false" >
> <!ELEMENT user (config, accessRights*, commandRights*, information*) >
> <!ELEMENT config (nickname, top, store) >
> <!ELEMENT nickname (#PCDATA) >
> <!ELEMENT top (#PCDATA) >
> <!ELEMENT store (#PCDATA) >
> <!ELEMENT information (nachname, vorname, anschrift, plz, ort, telefon, telefax, email) >
> <!ELEMENT nachname (#PCDATA) >
> <!ELEMENT vorname (#PCDATA) >
> <!ELEMENT anschrift (#PCDATA) >
> <!ELEMENT plz (#PCDATA) >
> <!ELEMENT ort (#PCDATA) >
> <!ELEMENT telefon (#PCDATA) >
> <!ELEMENT telefax (#PCDATA) >
> <!ELEMENT email (#PCDATA) >
> ]>
>
> <!-- hier folgt die Beschreibung der Benutzergruppen, Zugriffsrechte und Benutzer -->
>
> <users>
>
> <groups>
>
> <group name="projektleiter">
> <members>
> <member>MB</member>
> <member>RS</member>
> </members>
> <accessRights>
> <table name="adressen" canRead="true" canWrite="true" />
> <table name="dokumente" canRead="true" canWrite="true" />
> <table name="projekte" canRead="true" canWrite="true" />
> </accessRights>
> <commandRights>
> <tableCmds tablename="adressen">
> <command name="new" allowed="true" />
> <command name="edit" allowed="true" />
> <command name="delete" allowed="true" />
> <command name="copy" allowed="true" />
> </tableCmds>
> <tableCmds tablename="dokumente">
> <command name="new" allowed="true" />
> <command name="edit" allowed="true" />
> <command name="export" allowed="true" />
> <command name="import" allowed="true" />
> <command name="lock" allowed="true" />
> <command name="copy" allowed="true" />
> <command name="release" allowed="true" />
> <command name="delete" allowed="true" />
> <command name="view" allowed="true" />
> </tableCmds>
> <tableCmds tablename="projekte">
> <command name="new" allowed="true" />
> <command name="edit" allowed="true" />
> <command name="delete" allowed="true" />
> <command name="copy" allowed="true" />
> </tableCmds>
> </commandRights>
> </group>
> </groups>
>
> <user>
> <config>
> <nickname>SM</nickname>
> <top>/</top>
> <store>/ENTWICKLUNG/SOURCE/SM</store>
> </config>
> <information>
> <nachname>Meisner</nachname>
> <vorname>Hans Georg-Stefan Andreas Bernhard</vorname>
> <anschrift>Lünener Str. 31</anschrift>
> <plz>40472</plz>
> <ort>Düsseldorf</ort>
> <telefon>0211-6011976</telefon>
> <telefax>-</telefax>
> <email>sm at i2ag.de</email>
> </information>
> </user>
> <user>
> <config>
> <nickname>ML</nickname>
> <top>/</top>
> <store>/ML</store>
> </config>
> <information>
> <nachname>Loges</nachname>
> <vorname>Marc</vorname>
> <anschrift>-</anschrift>
> <plz>00000</plz>
> <ort>Wuppertal</ort>
> <telefon>0202-???</telefon>
> <telefax>-</telefax>
> <email>ml at kbld.de</email>
> </information>
> </user>
> </users>
--
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc.
1200 Pacific Avenue, Suite 300
Santa Cruz, CA 95060 USA
http://www.lutris.com
http://www.enhydra.org
More information about the jdom-interest
mailing list