xml_feature.test 1.03 KB
var employees:XML =
	<employees>
		<employee ssn="123-123-1234"></employee>
	</employees>;

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

[
	["keyword", "var"],
	" employees",
	["punctuation", ":"],
	"XML ",
	["operator", "="],
	["xml", [
		["tag", [
			["tag", [
				["punctuation", "<"],
				"employees"
			]],
			["punctuation", ">"]
		]]
	]],
	["xml", [
		["tag", [
			["tag", [
				["punctuation", "<"],
				"employee"
			]],
			["attr-name", [
				"ssn"
			]],
			["attr-value", [
				["punctuation", "="],
				["punctuation", "\""],
				"123-123-1234",
				["punctuation", "\""]
			]],
			["punctuation", ">"]
		]]
	]],
	["xml", [
		["tag", [
			["tag", [
				["punctuation", "</"],
				"employee"
			]],
			["punctuation", ">"]
		]]
	]],
	["xml", [
		["tag", [
			["tag", [
				["punctuation", "</"],
				"employees"
			]],
			["punctuation", ">"]
		]]
	]],
	["punctuation", ";"]
]

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

Checks for XML variables in ActionScript.