RE: [libxml++] Bug in escaping of characters



Yes, that does seem odd. Here is a simpler test case:


#include "libxml++/libxml++.h"

int main()
{
  xmlpp::Document doc;
  xmlpp::Element* root = doc.create_root_node("root");
  root->add_child_text("\"quoted\"");
  doc.write_to_file("output.xml");
}


Which produces

<?xml version="1.0"?>
<root>"quoted"</root>


Maybe " and ' don't _need_ to be quoted. Hopefully someone else can
comment.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]