divnoob
05-13-2009, 07:51 PM
I have 2 xml files that share a set of common code, the code itself doesn't form a well formed xml by itself, I want to use macro to avoid the duplicate so that I don't have to type the common code into both files.
I was told to use entity, however, the entity has to exist in doctype tag. however the doctype has the following:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
>
I am not not sure how to incorporate the following, tried many variations, can't get it to work. please help, thanks!
<!DOCTYPE
hibernate-mapping [<!ENTITY myentity SYSTEM "myentity.hbm.macro">]
>
I was told to use entity, however, the entity has to exist in doctype tag. however the doctype has the following:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"
>
I am not not sure how to incorporate the following, tried many variations, can't get it to work. please help, thanks!
<!DOCTYPE
hibernate-mapping [<!ENTITY myentity SYSTEM "myentity.hbm.macro">]
>