This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML" Watch "XML" New topic
Author

XML

A SaiRam
Greenhorn

Joined: Feb 16, 2005
Posts: 3
Hi,
I send the following XML (see end )using IE 6.0. I am using Tomcat 4.0.6 for running my application. I get the following message in the browser.

Element type "faml" must be followed by either attribute specifications, ">" or "/>".

In the Tomcat console i see the following stack trace
org.xml.sax.SAXParseException: Element type "faml" must be followed by either attribute specifications, ">" or "/>".

at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)

at com.iflex.fcat.xml.XmlSchemaParser4J321.parse(XmlSchemaParser4J321.java:175)


--------------------------------------------------------------------------


http://localhost:8080/netbanking/merchant?<?xml version="1.0" encoding="UTF-8"?><faml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=".\eshoprequestresponse.xsd"><txndata><sellerlist>ABCD</sellerlist></txndata></faml>


Can you please help me in this.

Regards
SaiRam
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Your XML document is not well formed, specifically you have left a tag open. Every opening "<" must be closed by a ">" or a "/>".


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XML