anydoby / protobuf-java-format

Automatically exported from code.google.com/p/protobuf-java-format
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

XML parser doesn't allow comments #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a valid XML file representing a protobuf object. You could call 
XmlFormat.print on a protobuf object, for instance.
2. Add a valid XML comment to the file
3. Call XmlFormat.merge with that file and you'll get an exception

What is the expected output? What do you see instead?
I'd expect it to create the protobuf object. Instead it causes an exception of 
the form:

com.google.protobuf.XmlFormat$ParseException: 4:4: Expected identifier. -!
 at com.google.protobuf.XmlFormat$Tokenizer.parseException(XmlFormat.java:662)

What version of the product are you using? On what operating system?
1.1 on Mac OS X.

Please provide any additional information below.

Original issue reported on code.google.com by duetj...@gmail.com on 10 Mar 2011 at 9:54

GoogleCodeExporter commented 9 years ago

Original comment by eliran.bivas on 21 Apr 2011 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by eliran.bivas on 3 May 2011 at 1:36