Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

xml parsing using apache digester: protocol error  RSS feed

sridhar vedhanabatla
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using apache digester to parse the following string

<account name="a001">
<division name="A1" lastDate="08/03/2008"/>
<division name="A2" lastDate="07/29/2008"/>
<division name="A3" lastDate="06/26/2008"/>
<division name="A4" lastDate="12/06/2008"/>
<division name="A5" lastDate="11/26/2008"/>
<division name="A6" lastDate="09/16/2008"/>
<division name="A7" lastDate="11/06/2008"/>
<account name="b0045">
<division name="Macy's A1 Store" lastDate="08/03/2008"/>
<division name="B1" lastDate="07/29/2008"/>
<division name="C3 Store" lastDate="06/26/2008"/>
<division name="D4 Store" lastDate="12/06/2008"/>
<division name="E5 Store" lastDate="11/26/2008"/>
<division name="F6 Store" lastDate="09/16/2008"/>
<division name="G7 Store" lastDate="11/06/2008"/>

but then i am encountering the following error no protocol:

I have prefixed the xmlstring with header

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

still it didnt work. I guess there is some metadata I might need to specify, maybe protocol or version or charset. not sure.

I wish somebody help me..

Thanks in advance.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!