• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

ask a simple question

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 2545
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My guess is the encoding GBK was the culprit.
 
reply
    Bookmark Topic Watch Topic
  • New Topic