Escaping special characters for Augeas XML

asked 2015-09-18 13:38:53 -0600

gin gravatar image


I have a variable ${XML_block} that holds a large XML block from template('cluster.erb'). The XML block never changes and is an overkill to configure with Augeas. Is it possible to insert this XML block into XML node as a text using Augeas?

"set ${NodePath}/#text '${XMLblock}'"]

I get parsing errors. Escaping <, >, / and double quotes does not solve the issue. Any clues?

Thanks, Gin

edit retag flag offensive close merge delete