[Expat-bugs] [ expat-Bugs-1526052 ] '<' char in argument string?

SourceForge.net noreply at sourceforge.net
Tue Aug 8 16:48:55 CEST 2006


Bugs item #1526052, was opened at 2006-07-20 13:56
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1526052&group_id=10127

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 7
Submitted By: Davar Learn (davarlearn)
Assigned to: Nobody/Anonymous (nobody)
Summary: '<' char in argument string?

Initial Comment:
This may be a problem with the parser, or it may be me
trying to go further than XML Standards?

im trying to store keyboard mapping data in arguments.   

Here is some sample XML code using test data:

<?xml version="1.0" ?>
<keymap>
  <desc lang="En" />
  <sort type="non" />
  <mappings>
    <map src="b" dest="2" />
    <map src="<" dest="6" />      # problem here
    <map src="bc" dest="$1" />
    <map src="e" dest="3" />
    <map src="abd" dest="*" />
    <map src="ad" dest="@" />
    ...
    ...
    ...
    <map src="abd" dest="*" />
    <map src="ad" dest="@" />
  </mappings>
</keymap>

In this line the parser takes the '<' char to be the
start of the next tag, all further tags are mis aligned
and my handler ignores them as invalid data format.

<map src="<" dest="6" />

this may be how the program is ment to operate? If it
is, are there any other ways i can store a string
containing '<' characters. I need to be able to use all
asci(possibly some non asci) char's to store font
conversion mappings.

Im working on a sourceforge project and would be
greatfull of some feadback.

thanks for youre help

James


----------------------------------------------------------------------

>Comment By: Karl Waclawek (kwaclaw)
Date: 2006-08-08 10:48

Message:
Logged In: YES 
user_id=290026

Not a bug, just an error in the document. Closing this issue.

----------------------------------------------------------------------

Comment By: Myron Turner (turnermm)
Date: 2006-07-20 22:59

Message:
Logged In: YES 
user_id=771029

The parser expects  src="&lt;"  This will  be converted back
to '<' by the parser in the output. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1526052&group_id=10127


More information about the Expat-bugs mailing list