Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ask a simple question

 
david dai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,javaRancher,
Here is my xml:

question:
when I use xercer2.0 parser parse the xml file,
the content of <family>,<given> and <email> are null,or empty.
but if I change the xml file to :

every thing is OK !
could some one give me the reason ?
Thanks
David

[CODE tags added by Val]
[ January 03, 2003: Message edited by: Valentin Crettaz ]
 
John Lee
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only reason seems that you can't leave space at the beginning of the content of the lowest level tag, if you want to have space, you have to use escape.
I think this may also have something to do with specific parser requirement.
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess is the encoding GBK was the culprit.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic