dcsimg
replace task: How do I replace '' '' '&' in source code?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   A_Vander
Posted On:   Thursday, January 30, 2003 02:41 AM

Hi all, I'd like to use Ant to convert C source code into xml ( in order to generate documentation in html but that's another story :), but I get into trouble using the task like in the example below : < < " value=" < < "/> < " value=" < "/> > " value=" >> "/> " value=" > "/> <= " value=" <= "/> = " value=" >= "/> <" value=" <"/> */" value=">"/> <" value=" <"/> <&   More>>

Hi all,

I'd like to use Ant to convert C source code into xml ( in order to generate documentation in html but that's another story :), but I get into trouble using the task like in the example below :

			




< < " value=" < < "/>
< " value=" < "/>
> " value=" >> "/>
" value=" > "/>


<= " value=" <= "/>
= " value=" >= "/>


<" value=" <"/>
*/" value=">"/>
<" value=" <"/>


<" value=" "/>
" value=".h "/>
"/>
"/>



Ant tell's me that I cannot use <, > or & in the token and value attributes...

Any suggestions on how to achieve these substitutions would be appreciated, TIA!

Avander    <<Less

Re: replace task: How do I replace '' '' '&' in source code?

Posted By:   Chris_Green  
Posted On:   Thursday, January 30, 2003 10:35 AM

Try using & (&) > (>) and < (<)

For a complete list of character entities, check out http://www.evolt.org/article/ala/17/21234/

About | Sitemap | Contact