Jump to content

XML problem


Recommended Posts

Hi all, I have the following problem, this is the tester.xml<?xml version="1.0" standalone="no"?> <!DOCTYPE document SYSTEM "vali.dtd" [<!ENTITY resource SYSTEM "test.xml" notation><!ELEMENT document (content)><!ELEMENT content ANY> ]> <document> <content> &resource; </content></document> This is the test.xml <?xml version="1.0" encoding="UTF-8"?> <hello> <bye> I have a car! </bye></hello> This is the vali.dtd <!ELEMENT hello (bye)><!ELEMENT bye (#PCDATA)> The problem is that the tester.xml when I drag to firefox to test he doesn't show the content on &resource; and I don't know what to do, I already searched but every website that I find it's explaining the same structure that I made.This is the result of the firefox: <?xml version="1.0"?> <!DOCTYPE document SYSTEM "vali.dtd">- <document> <content></content> </document> Thanks

  • Like 1
Link to post
Share on other sites

I don't think firefox supports custom entities. I seem to remember trying once and looking it up. I can't remember about other browsers but they might not support it either.

  • Like 1
Link to post
Share on other sites

Hi all, Thanks FoxyMod for your help, you are absolutely right, it's because the parser of firefox and IE are non-validating parsers so they don't validate external DTD's. I found a solution, and that solution is to install Opera browser then go to opera:config and search for xml external entities and turn on or 1, and voilá! It works! Thanks

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...