In an XML document, how do I treat square brackets (] or [) ?
+2
A:
There is probably a better solution. But this works:
]
as in:
<blah value="]"></blah>
then again, so does (see Kirtan's answer):
<blah value="]"></blah>
Cannonade
2009-04-14 06:46:09
+9
A:
Square brackets do not need a specific notation in XML but they have a special meaning when used in XPath expressions for XSL transformations.
<root>
<el attrib="[">[</el>
</root>
Kirtan
2009-04-14 06:47:47
+1 from me for the more informed answer :P.
Cannonade
2009-04-14 06:53:35