Slick Forums

Discuss the Slick 2D Library
It is currently Wed May 22, 2013 9:27 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Annoying problem
PostPosted: Tue Sep 02, 2008 6:55 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1313
Location: Italy
Hi!
On tiled web site (http://www.mapeditor.org/) you can download lastest Tiled package.
Saving my map, i see an annoying problem: on xml of the map there are the address to dtd file to validate xml-map ..
The problem is that runtime, every time, slick is trying to connect to internet to validate this: how can i disable this?

My problem is that i work offline all the time, so it's really annoying to modify with a text-editor the xml of the map.. any idea?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 10:03 am 
Offline

Joined: Mon Aug 11, 2008 8:56 am
Posts: 3
Location: Adelaide, Australia
You can remove the dtd reference (by hand editing), it's not required for valid XML, only to validate the XML. I have done this with no problems


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 1:11 pm 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1313
Location: Italy
but what i asked is if is possible to remove this contronl runtime into slick, or when tiled save thins on my map


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 02, 2008 1:37 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
You can do it by setting an entity resolver on the DocumentBuilder. This isn't supported as an external API on TiledMap or XML in slick. Either code it up yourself and provide a patch or raise an RFE.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 11, 2008 6:33 pm 
Offline

Joined: Mon Jul 21, 2008 2:34 pm
Posts: 11
You can also write about your problem to the Tiled user mailing list, in which case I might have already provided an option not to include the DTD reference. For now, you're lucky that I'm reading your thread. You can probably expect such an option in the next release.

Or, since you're a Java coder too (right?), you write a patch for Tiled yourself, of course. :-)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 12, 2008 8:22 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1313
Location: Italy
Bjørn wrote:
You can also write about your problem to the Tiled user mailing list, in which case I might have already provided an option not to include the DTD reference. For now, you're lucky that I'm reading your thread. You can probably expect such an option in the next release.

Or, since you're a Java coder too (right?), you write a patch for Tiled yourself, of course. :-)


Hello!
Thanks for next release gift :P
I manually edit my map file, deleting dtd reference: is not a big problem, for my little project.

I'm java coder, but i don't have so much time to spend in bugfixing other projects, sorry :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group