File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Using BizTalk Schema for cXML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Using BizTalk Schema for cXML" Watch "Using BizTalk Schema for cXML" New topic

Using BizTalk Schema for cXML

Ryan Bailey
Ranch Hand

Joined: Feb 26, 2002
Posts: 134
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.


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,
[ December 17, 2003: Message edited by: Ryan Bailey ]

Java: The power, elegance, and simplicity of a hand grenade
I agree. Here's the link:
subject: Using BizTalk Schema for cXML
jQuery in Action, 3rd edition