File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using BizTalk Schema for cXML

 
Ryan Bailey
Ranch Hand
Posts: 134
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if someone might be able to help me out. I have been stumped on this for over a day now and figured I would open a thread on the issue.
We have decided to exchange data with our clients using cXML as the standard data format. cXML provided me with a DTD to use so we can make sure the data being exchanged is in the right format. One of our clients has decided to use a BizTalk Schema for validating rather than a DTD. I am using xmlspy to generate a BizTalk Schema from the DTD. Generating the BizTalk Schema works great but then when I try to validate a sample xml file I get an error. Below is a sample of some of my generated BizTalk Schema and sample xml file.
Schema:

xml:

The Error that I'm getting is this:
Required attribute 'xml:lang' of parent element 'Name' expected before first child element.
What does this mean? It is before the first child element. I have noticed if I change the xml:lang to xml_lang in the BizTalk Schema and in the sample xml file, it works great. If it is a namespace issue I would expect an error in my BizTalk Schema but it validates without any problems. I had a similar issue when I generated a W3C Schema but I resolved that issue. I realize what the xml:lang is used for but why is it not validating against my BizTalk Schema? Has anyone ran across this issue or does anyone have any suggestions? I can provide more code sniplets if need be.
Thanks in advance for your time,
Ryan
[ December 17, 2003: Message edited by: Ryan Bailey ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic