EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: Cmpro not import xml with character ">"  (Read 3568 times)

oddi

  • Member
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 193
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 55.0 Firefox 55.0
    • View Profile
Cmpro not import xml with character ">"
« on: 31 August 2017, 13:10 »

Hello Roman , have problem when import new softlist : apple2_cass.xml
Cmp say error line 41 :
<info name="usage" value="16K >Load" />, dont like character ">"
Attach xml for test.
Tnx :)
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 60.0.3112.113 Chrome 60.0.3112.113
    • View Profile
Re: Cmpro not import xml with character ">"
« Reply #1 on: 31 August 2017, 13:24 »

well... that depends a bit on the used XML parser if this is a valid entry or not.....generally < > & and other special characters should be escaped or the HTML encoding should be used when it is appearing in an xml attribute value, so e.g. &gt; instead of >

I will check if I can update the parser a bit....


...and before this discussion goes wild....yes...it is allowed in standard xml....
« Last Edit: 31 August 2017, 14:03 by Roman »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 113
  • Offline Offline
  • Posts: 3292
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 60.0.3112.113 Chrome 60.0.3112.113
    • View Profile
Re: Cmpro not import xml with character ">"
« Reply #2 on: 31 August 2017, 18:55 »

fixed in latest nighly build (see forum top link for download).

if you like you can mention that in that other forum, too ;-)
Logged

oddi

  • Member
  • *
  • Karma: 2
  • Offline Offline
  • Posts: 193
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 55.0 Firefox 55.0
    • View Profile
Re: Cmpro not import xml with character ">"
« Reply #3 on: 31 August 2017, 20:52 »

Your rock !!! :)
Logged
Pages: [1]   Go Up
 

Page created in 0.203 seconds with 19 queries.

anything