Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parse Error

Status
Not open for further replies.

nikol

Programmer
Apr 12, 2005
126
US
When I run
<?xml version="1.0" encoding="utf-8"?>
<records schema_revision="301_252" xmlns:xsi="xsi:noNamespaceSchemaLocation="sp.xsd">
<clients>
<firstname>Tho Quang</firstname>
<firstname>Thanh Van</firstname>
<lastname>Huynh</lastname>
<lastname>Nguyen</lastname>
</clients>
</records> in cmd. Its giving me the following error..

S:\IT Dept\CIS Administrator\xml_kit3>"C:\Program Files\Java\j2re1.4.2_08\bin\ja
va.exe" -cp .;.\jars\xercesImpl.jar;.\jars\xerces.jar;.\jars\xml-apis.jar;.\jars
\xmlParserAPIs.jar validator clients.xml
Exception in thread "main" org.xml.sax.SAXParseException: The content of element
s must consist of well-formed character data or markup.
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1139)
at validator.main(validator.java:35)
Plzzz.. Help me I'm very new to XML..
 
Well, I'll bite. This
Code:
<clients>
  <firstname>Tho Quang</firstname> 
  <firstname>Thanh Van</firstname> 
  <lastname>Huynh</lastname> 
  <lastname>Nguyen</lastname> 
</clients>
makes no sense. What are you trying to do?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top