To rephrase what Niphlod is saying. generic.xml contains code (web2py 
template language) used to generate XML but it does not contain XML. 
Eclipse thinks it should contain XML and complains. I guess there is some 
Eclipse settings to make it ignore this file validation.

On Wednesday, 14 January 2015 13:51:32 UTC-6, Niphlod wrote:
>
> if you have set up eclipse to be foolish you can't follow the warnings it 
> outputs. It's treating "generic.xml" as something with valid XML markup 
> inside, while web2py's generic.xml is filled with templating functions that 
> are NOT static xml. 
>
> On Tuesday, January 13, 2015 at 10:38:00 AM UTC+1, Carl Hunter Roach wrote:
>>
>> In today's Web2py source I get a "" for the contents of 
>> applications/x/views/generic.xml
>> with the default content: {{from gluon.serializers import 
>> xml}}{{=XML(xml(response._vars,quote=False))}}
>>
>> The error is: Content is not allowed in prolog
>>
>> This error doesn't prevent the application from working but I'd like to 
>> get to the IDE to a zero error, zero warning state.
>>
>> Any suggestions?
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to