Solved

Using Hexidecimal value in xml stream

Posted on 2011-02-10
3
571 Views
Last Modified: 2013-11-19
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
Comment
Question by:Mez4343
  • 2
3 Comments
 
LVL 10

Assisted Solution

by:Mez4343
Mez4343 earned 0 total points
ID: 34864818
sry I meant Red Gate db script
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 34870024
&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
 
LVL 10

Author Closing Comment

by:Mez4343
ID: 34904782
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now