parameter entity with msxml

Patrice Bonhomme Patrice.Bonhomme at loria.fr
Thu Sep 4 21:38:05 BST 1997


Hi there,

I am using msxml to read/parse my XML documents within a Java application. I 
wondered if msxml takes care of parameter entity. This example doesn't work :

<?XML version="1.0" encoding="UTF-8" ?>
<!DOCTYPE tei.2 [

<!ENTITY % ISOtech SYSTEM "/users/autoinfo/bonhomme/XML/ISOtech.pen" >
<!ENTITY % ISOlat1 SYSTEM "/users/autoinfo/bonhomme/XML/ISOlat1.pen" >
<!ENTITY % ISOlat2 SYSTEM "/users/autoinfo/bonhomme/XML/ISOlat2.pen" >
<!ENTITY % ISOgrk1 SYSTEM "/users/autoinfo/bonhomme/XML/ISOgrk1.pen" >
<!ENTITY % ISOgrk2 SYSTEM "/users/autoinfo/bonhomme/XML/ISOgrk2.pen" >
<!ENTITY % ISOgrk3 SYSTEM "/users/autoinfo/bonhomme/XML/ISOgrk3.pen" >
<!ENTITY % ISOgrk4 SYSTEM "/users/autoinfo/bonhomme/XML/ISOgrk4.pen" >

%ISOtech;
%ISOlat1;
%ISOlat2;
%ISOgrk1;
%ISOgrk2;
%ISOgrk3;
%ISOgrk4;
]>
<tei.2>
<p>
<s>J'ai d&eacute;cide d'&eacute;crire un livre sur l'Espace et le Temps 
&agrave; l'intention du grand public apr&egrave;s les conf&eacute;rences Loeb 
que j'ai donn&eacute;es &agrave; Harvard en 1982.</s></p>
</tei.2>

I've got this exception :
Error: test-ent.xml(21,17)
Context:  - <null> - <TEI.2> - <P> - <S>
com.ms.xml.ParseException: Missing entity eacute
        at com.ms.xml.Parser.error(Parser.java:110)
        at com.ms.xml.Parser.scanEntityRef(Parser.java:440)
        at com.ms.xml.Parser.scanText(Parser.java:395)
        at com.ms.xml.Parser.parseText(Parser.java:1223)
        at com.ms.xml.Parser.parseElement(Parser.java:1081)
        at com.ms.xml.Parser.parseDocument(Parser.java:643)
        at com.ms.xml.Parser.parse(Parser.java:47)
        at com.ms.xml.Document.load(Document.java:171)
        at msxml.main(msxml.java:50)

Thanks for any help...

Pat.
  ==============================================================
  bonhomme at loria.fr               |      Office : B.228
  http://www.loria.fr/~bonhomme   |      Phone  : 03 83 59 20 37
  --------------------------------------------------------------
    * Projet Aquarelle    
          http://aqua.inria.fr
    * Serveur Silfide     
          http://www.loria.fr/Projet/Silfide
    * Multilingual Concordancing
          http://www.loria.fr/~bonhomme/lingua/
  ==============================================================





xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa at ic.ac.uk)




More information about the Xml-dev mailing list