Hi I'm parsing xml with xerces-J1.4.1 with external general entities declared and referenced ( ie other chuncks of xml in other files included dynamically at parse time.)
I notice that xerces performs these insertions correctly if the xml is validated against a DTD, but if it's validated against an equivalent schema it doesn't work. I've got around this problem by writing a simple pre-processor to parse the file and do the insertions and then pass the expanded xml file as an input stream to xerces, but I'm wondering if there is another way or if my xml syntax is incorrect. I notice that these kind of entities are not mentioned in the w3c schema recommendation, which suprises me as I understood the schema spec was xml 1.0 compliant. Here a snippet of what my xml looks like Regards Kev <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE bdfwk_context [ <!ENTITY operational_data SYSTEM "operational_tier_data.xml"> ]> <bdfwk_context xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///C:/weblogic/myserver/properties/bdfwk_operational_tier.xsd" context_name="operational_tier"> <product product_name="Framework"> &operational_data; </product> </bdfwk_context> -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]