Menu

#1 Bug in ParseXML.py with multi-line text values

open
nobody
None
5
2013-02-19
2000-02-14
No

There are 2 bugs in ParseXML.py where multi line text values are not being
returned properly from the parser.

****************************************************************************************
1. When there is an embedded "\n" in the tex, it should be replaced with
"\s". Also, when there is an embedded "\s\s"in the text, it should be replaced with "\s".

The reason for this is that to make XML readable it should be easy
to retain the indenting style and for the same reason you don't generally
want 9K byte strings on one line.

<book>
<desc>
The red fern grows is a story about
a selfish young boy who sneaks away
from home to go pick up some dogs
which his family didn't need and didn't
want but it became o.k. since he
trained them and made some money.
</desc>
</book>

The <book><desc> tag would currently be returned to the program
with the leading spaces and \n in the text string when it should be
returning a single line of text.

*******************************************************************************************
2. The command line parser is not converting the
augument values to lower case. -DUMP should come
out of the parser as -dump to make things case
insensitive.

****************************************************************************************

Discussion


Log in to post a comment.