How can I expand the entities in a document using this library?

Globally:

XML.default_substitute_entities = true

Per parse run (only for 0.9.8 and higher):

parser = XML::Parser.string('...', :options => XML::Parser::Options::NOENT)

doc = parser.parse

See the rdocs for all the other parser options you can use.

Charlie

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to