• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in Reading .txt file using XSD  RSS feed

 
Prabhash Mishra
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • 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]
 
Paul Clapham
Sheriff
Posts: 22697
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!