Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 591
  • Last Modified:

Using Hexidecimal value in xml stream

How can I replace the '<=' in below xml snipet with its hexidecimal equivilent? Syntax must be compatible within xml stream. Im running a Reg Gate db script and I believe that the < is not being translated correctly on Chinese OS.

IF (@IsPortfolioDatabase = 1 AND @ReleaseVersion  <= @TargetVersion)

I tried 0x3c;= but doesnt work.
0
Mez4343
Asked:
Mez4343
  • 2
2 Solutions
 
Mez4343Author Commented:
sry I meant Red Gate db script
0
 
Ray PaseurCommented:
&lt; is the "entitized" version of the less-than sign <

This statement, when the entities are not present, would be like this:
IF (@IsPortfolioDatabase = 1 AND @ReleaseVersion  <= @TargetVersion)

The XML and HTML entities are discussed in detail here:
http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
0
 
Mez4343Author Commented:
It turns out that the &lt; is recongined correctly on chinese OS so that was not my problem but thanks for the wiki link. Should come in handy latter.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now