In an XML document, how do I treat square brackets (] or [) ?
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>
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With