Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in Reading .txt file using XSD  RSS feed

 
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]
 
Sheriff
Posts: 23507
47
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.
 
I can't beleive you just said that. Now I need to calm down with this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!