05.12 2004 r., on 18:38 Wilbert van Dolleweerd wrote:
> [...]
>
>                 <File
>                     RelPath = "spin&blk.gif"
>                     BuildAction = "Content"
>                 />
> 
> I know there are ways to circumvent this behaviour, but shouldn't Nant
> handle this error more gracefully? 

No, it should not.
Your XML file above is invalid.
You can not use ampersand (&) character in 'character data',
as value of attribute or element. Similar situation
is with using less-than and greater-than characters (<, >)
inside character data.
If you need to use them, you should escape it using the &amp;
for ampersand character or &lt; and &gt; for < , > characters.
There are also defined other entities like &reg; or &copy;.

Those rules are XML rules and NAnt follows them.
So, I think NAnt works OK in this case. The problem is with this
XML file which seems to be not well-formed in XML meaning.

Best regards

-- 

Mateusz Łoskot
mateusz at loskot dot net


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to