tags:

views:

49

answers:

1

Hi,

How would I create this...

<!DOCTYPE root-element[
  <!ENTITY % w3centities PUBLIC
  "-//W3C//ENTITIES Combined Set//EN//XML"
  "w3centities.ent"
  >
  %w3centities;
]>

...using Builder?

I can manage everying apart from the "%w3centities;" in the second to last line with the following code:

xml.declare! :DOCTYPE, "root-element" do
   xml.declare! :ENTITY, "%", :w3entities, :PUBLIC, 
     "-//W3C//ENTITIES Combined Set//EN//XML",
     "w3centities.ent"
end

Thanks

A: 

Here's what I did to get it to work...

xml.target! << "<!DOCTYPE root-element[  
  <!ENTITY % w3centities PUBLIC  
  \"-//W3C//ENTITIES Combined Set//EN//XML\"  
  \"w3centities.ent\"  
  >  
  %w3centities;  
]>"
blogofsongs