homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

XML won't validate.
White spaces are required between publicId and systemId.

 2:08 am on Jul 9, 2008 (gmt 0)

For starters I apologize at my small XML knowledge, I'm just not sure why this XML file won't work. Here's my error message.

Malformed XML in file http://www.example.com/test/filetest.xml: White spaces are required between publicId and systemId. At: (1,50)

I'm not sure what that error means or what those coordinates mean for finding the error. Here's my XML file.

<?xml version="1.0" encoding="UTF-8" ?>
<ModulePrefs title="-removed-"
<Require feature="opensocial-0.7" />
<Locale lang="ALL" />
<Content type="html">

<form name="vote" action="http://www.example.com/test/test.php" method="post"><input type="hidden" name="tester" value="1136">
<a href="javascript:document.vote.submit();">Loading...</a>

<script language="JavaScript">


-removed- means a link or info was there. This is driving me crazy at this code used to validate properly and now it doesn't.

[edited by: StoutFiles at 2:08 am (utc) on July 9, 2008]



 1:31 pm on Jul 9, 2008 (gmt 0)

you usually see that error when you omit the whitespace between parts of a DOCTYPE declaration. I've never seen that one emerge from XML validation.

But I'd be willing to wager there's a bit of whitespace missing that needs to be there, perhaps between your attributes?

I use a text editor where hidden+whitespace characters (like space, tab, and newline) are indicated in a faint grey color. They don't interfere with visual appreciation of the text, but you can tell they're there. If your editor has an option to show hidden characters, it can help you to find these kinds of whitespace problems.

FYI, rogue whitespace in XSLT can be exceptionally hazardous


 2:50 am on Jul 10, 2008 (gmt 0)

Thanks for your feedback, I'll keep messing around with it. I have this urge to always build with Notepad...I'll move to a better editor.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved