Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 105
  • Last Modified:

XML validation issue

Hey there,

I'm trying to post an xml validation for our company.  I'm trying to stage a test to our staging server with 10 email addresses.  The error i'm getting is:   The processing instruction target matching "[xX][mM][lL]" is not allowed.

type:  well formed

loc:  2,6

attached is a screen shot.

please help!

Metalfubar
testcorefail.png
0
metalfubar
Asked:
metalfubar
  • 2
1 Solution
 
Geert BormansCommented:
That error indicates that the XML declaration is mistaken for a process instruction
<?xml ....

Most plausible reason is that there is something before it
- could be a double declaration
- could simply be the BOM
- could be some non allowed namespace
-... or you could have that declaration in the middle because you concatenated two XML documents

without a document, we can not help you better
0
 
metalfubarAuthor Commented:
Ok.  Here is the file to look at.  Once resolved I'll remove it and there's nothing really in there accept email accounts.

lmk?  

thx

metalfubar
PIE-2015-01-06NEW10.xml
0
 
Geert BormansCommented:
- No text is allowed before the root element, so you should cut the CSS part from the XML
- A document can only have one XML root, Feed in your case, that should be OK
- no whitespace or newline is allowed between "<" and the element name, wrong in about every start tag
(a new line is common right before the ">" in a start tag if you are afraid of long lines)

There are many errors in the document, send in again after you fixed the above
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now