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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -