• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error in Reading .txt file using XSD

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
   I want to convert .txt file into .xml using XSD.The Delimeter between words are pipline(|) in .txt file.When i am converting .txt into .xml using XSD the it is not able to recognize the pipline(|) separator.Can anybody help me out in rectifying error while reading .txt fron XSD.

.txt file:



XSD is:


output i am getting is:
Transformation-from-Text-to-XML.PNG
[Thumbnail for Transformation-from-Text-to-XML.PNG]
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe I'm out of touch, but I didn't know that you could use a schema to convert a text file to XML. I was always under the impression that a schema was solely for validating XML. But maybe you're using some other tool which you didn't mention in your post? It appears you are, since one of the windows in your screenshot says "Transformation was successful". You seem to disagree with that output, although you don't say what you expected to see and where you expected to see it.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic