Uisng less than (<) and greater than (>) signs in an XML configuration
B
Bashar Nassar
创建话题
将近2年 以前
I am getting an error "The character '<' cannot be used in an attribute value" when I use the "<" operator.
最佳答案
S
SystemWeaver Support
说
超过1年 以前
In the SystemWeaver Path Language, one can do an expression similar to below, using less than (<), greater than (>), etc.:
However, when adding the same expression to an XML configuration, we get an error:
The reason is because some characters are reserved in XML/HTML, e.g., less than (<) and greater than (>) signs. So when using these reserved signs in an XML configuration, e.g., report, graph, chart, etc., you need to replace them with HTML character entities. Below is a table with three commonly used signs. Find more HTML character entities here https://oinam.github.io/entities/
So, replacing (<) with (<) in the script will resolve the error.
<Report> <Text>#{? value:=3; value < 2}</Text> </Report>
In the SystemWeaver Path Language, one can do an expression similar to below, using less than (<), greater than (>), etc.:
However, when adding the same expression to an XML configuration, we get an error:
The reason is because some characters are reserved in XML/HTML, e.g., less than (<) and greater than (>) signs. So when using these reserved signs in an XML configuration, e.g., report, graph, chart, etc., you need to replace them with HTML character entities. Below is a table with three commonly used signs. Find more HTML character entities here https://oinam.github.io/entities/
So, replacing (<) with (<) in the script will resolve the error.
<Report> <Text>#{? value:=3; value < 2}</Text> </Report>
Bashar Nassar
I am getting an error "The character '<' cannot be used in an attribute value" when I use the "<" operator.
In the SystemWeaver Path Language, one can do an expression similar to below, using less than (<), greater than (>), etc.:
However, when adding the same expression to an XML configuration, we get an error:
The reason is because some characters are reserved in XML/HTML, e.g., less than (<) and greater than (>) signs. So when using these reserved signs in an XML configuration, e.g., report, graph, chart, etc., you need to replace them with HTML character entities. Below is a table with three commonly used signs. Find more HTML character entities here https://oinam.github.io/entities/
So, replacing (<) with (<) in the script will resolve the error.
<Report>
<Text>#{? value:=3; value < 2}</Text>
</Report>
- 最早在前
- 热门
- 最新在前
Sorted by 最早在前Stacey Hwasser
Thanks for sharing Bashar!
SystemWeaver Support
In the SystemWeaver Path Language, one can do an expression similar to below, using less than (<), greater than (>), etc.:
However, when adding the same expression to an XML configuration, we get an error:
The reason is because some characters are reserved in XML/HTML, e.g., less than (<) and greater than (>) signs. So when using these reserved signs in an XML configuration, e.g., report, graph, chart, etc., you need to replace them with HTML character entities. Below is a table with three commonly used signs. Find more HTML character entities here https://oinam.github.io/entities/
So, replacing (<) with (<) in the script will resolve the error.
<Report>
<Text>#{? value:=3; value < 2}</Text>
</Report>
-
Conditional rows in Tables and Grids
-
Dynamic columns in tables and grids
-
Graphical all references
-
Controlling what columns to show in Grids and Tables
-
Custom version compare using the Script Language
-
Requirements don't show up on test views (Requirements and Coverage view)
-
How to attach an Error log to a test case
-
Using the path language to get the latest version of an item
-
How to show the SystemWeaver xID as a column in SystemWeaver
-
/back:: vs Context:/back::
查看所有24话题