[Mono-bugs] [Bug 74279][Maj] Changed - XML parsing Bug in MiniParser

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 1 Apr 2005 13:36:58 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gnauck@ag-software.de.

http://bugzilla.ximian.com/show_bug.cgi?id=74279

--- shadow/74279	2005-03-31 12:18:13.000000000 -0500
+++ shadow/74279.tmp.11134	2005-04-01 13:36:58.000000000 -0500
@@ -1,15 +1,15 @@
 Bug#: 74279
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
-Priority: Wishlist
+Severity: Unknown
+Priority: Major
 Component: Mono.Security
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: gnauck@ag-software.de               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
@@ -33,6 +33,35 @@
 
 
 How often does this happen? 
 
 
 Additional Information:
+
+------- Additional Comments From gnauck@ag-software.de  2005-04-01 13:36 -------
+The Miniparser cant parse mixed content. It raises always a XML error
+on mixed content.
+
+eg:
+<book>
+ <title>My First XML</title>
+ <prod id='33-657' media='paper'></prod>
+ <chapter>here is the problem
+  <para>What is HTML</para>
+  <para>What is XML</para>
+ </chapter>
+ <chapter>XML Syntax
+  <para>Elements must have a closing tag</para>
+  <para>Elements must be properly nested</para>
+ </chapter>
+</book>
+
+here is a small sample to reproduce the bug:
+
+string xml ="<book><title>My First XML</title><prod id='33-657'
+media='paper'></prod><chapter>here is the problem<para>What is
+HTML</para><para>What is XML</para></chapter><chapter>XML
+Syntax<para>Elements must have a closing tag</para><para>Elements must
+be properly nested</para></chapter></book>";
+			
+Mono.Xml.SecurityParser sp = new Mono.Xml.SecurityParser();
+sp.LoadXml(xml);