Old Proxomitron Forums
October 24, 2016, 05:35:31 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: No activity here! This forum is read-only. Go to http://prxbx.com/forums/index.php.
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Removing XML prolog statement  (Read 3168 times)
Jr. Member
Posts: 75

View Profile WWW Email
« on: June 12, 2002, 08:02:15 PM »

I recently ran into a problem with the following web page:
where I got an error saying "The XML page cannot be displayed"
and "Cannot have a DOCTYPE declaration outside of a prolog".
The problem appears to be that the page starts with an XML prolog statement
that looks like:
<?xml version="1.0" encoding="iso-8859-1"?>
and Proxomitron filters that had matched on <start> had placed stuff before
this line. Apparently MSIE doesn't like it if the XML prolog statement
isn't at the beginning of the page. Since the XML prolog statement is
an optional thing, I ended up removing it from the page in order to
get around the problem:

Name = "Remove XML prolog"
Active = TRUE
URL = "$TYPE(htm)"
Bounds = "$NEST(<?xml, ?>)"
Limit = 256
Match = "*"

Opera doesn't seem to have this problem.


Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!