dcsimg
reference external xml fragments
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   jonathan_guess
Posted On:   Wednesday, May 13, 2009 08:06 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"?> "-//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! hibernate-mapping [ <!ENTITY myentity SYSTEM "myentity.hbm.macro   More>>
			
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"?>

"-//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!


hibernate-mapping [ <!ENTITY myentity SYSTEM "myentity.hbm.macro">]
>
   <<Less
About | Sitemap | Contact