Relfos / LunarParser

XML/JSON/YAML/CSV parsers for C#
MIT License
47 stars 3 forks source link

CDATA error #5

Closed dodaeche closed 6 years ago

dodaeche commented 6 years ago

When using ReadFromString with CDATA and '<', '>' an error occured.

            string test = String.Format(@"
                                <message>
                                    <content><![CDATA[test<>me]]>
                                    </content>
                                </message>");

            var root = XMLReader.ReadFromString(test);
            var msg = root["message"];
            var content = msg.GetString("content");
            Console.WriteLine("Message: " + content);

Thanks.

Relfos commented 6 years ago

Thanks for the report, I'm already writing a fix, will be out today!

Relfos commented 6 years ago

Issue fixed. New package already in Nuget.