0

How to use $ symbol in xml file. I am facing little difficulties in that. Below is my xml schema

   <fieldname>ACCOUNT.NUMBER</fieldname>
   <fieldtype>NVARCHAR2</fieldtype>
   <fieldlength>30</fieldlength>

Kindly help me how to use $ symbol in my xml schema.

Krish R
  • 22,188
  • 7
  • 49
  • 57
user2742540
  • 45
  • 1
  • 7

2 Answers2

0

If you want to use $ in text, or in an attribute value, just use it directly. No escaping needed.

If you want to use $ in an element or attribute name, you're out of luck. You can't.

Michael Kay
  • 147,186
  • 10
  • 83
  • 148
-1

Use it with:

<fieldexample><![CDATA[$$$$$]]></fieldexample>

For explanation of the use of CDATA, this answer explains it well.

Community
  • 1
  • 1
Raptor
  • 51,208
  • 43
  • 217
  • 353