ruby - Inline DTD with Builder -


how create this...

<!doctype root-element[   <!entity % w3centities public   "-//w3c//entities combined set//en//xml"   "w3centities.ent"   >   %w3centities; ]> 

...using builder?

i can manage everying apart "%w3centities;" in second last line following code:

xml.declare! :doctype, "root-element"    xml.declare! :entity, "%", :w3entities, :public,       "-//w3c//entities combined set//en//xml",      "w3centities.ent" end 

thanks

here's did work...

xml.target! << "<!doctype root-element[     <!entity % w3centities public     \"-//w3c//entities combined set//en//xml\"     \"w3centities.ent\"     >     %w3centities;   ]>" 

Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -