[jdom-interest] JDOMException: White space must not occur between elements declar
ed in an external parsed entity with element content in a standalone docu
ment.
Fitz Johannes jfi09
johannes.fitz at toveno.com
Mon Sep 3 01:39:58 PDT 2001
Hello!
I have some problems to validate the following xml (default.xml). I always
get the following Exception:
org.jdom.JDOMException: Error on line 5 of document
file:/W:/users/jfi09/java/html/gw/prj/lose/prj/vsa/help/de/default.xml:
White space must not occur between elements declared in an external parsed
entity with element content in a standalone document.
Does someone have how to solve that problem?
Johannes Fitz
-------------------------------------------------------------
default.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE blockhelp SYSTEM "../blockhelp.dtd">
<blockhelp vers="0.5">
<blockid>block.default</blockid>
<general>
<text>
<strong>Additional information</strong>
</text>
</general>
</blockhelp>
-------------------------------------------------------------
blockhelp.dtd
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT blockhelp (blockid, general, specific*)>
<!ATTLIST blockhelp
vers CDATA #REQUIRED>
<!ELEMENT blockid (#PCDATA)>
<!ELEMENT general ((text | image | link)+)>
<!ELEMENT image (#PCDATA)>
<!ELEMENT link (linktext, (blockid | url))>
<!ELEMENT linktext (#PCDATA)>
<!ELEMENT url (#PCDATA)>
<!ELEMENT specific ((brandingkey | textkey), text+, link*)>
<!ELEMENT textkey (#PCDATA)>
<!ELEMENT brandingkey (#PCDATA)>
<!ELEMENT text (strong | font | em | tt | br)+>
<!ELEMENT strong (#PCDATA)>
<!ELEMENT font (#PCDATA)>
<!ELEMENT em (#PCDATA)>
<!ELEMENT tt (#PCDATA)>
<!ELEMENT br EMPTY>
More information about the jdom-interest
mailing list