Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading a schema

 
Senthil kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am having parent.xsd, which includes anothe schema called child.xsd

I need to validate the parent.xsd with an xml...

The problem I am facing is... when I read parent.xsd, itz not including child.xsd... hence, when I try to validate... it says that not able to identify child.xsd...

Could anyone help me out?

Thanks,
Senthil
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Senthil,
I need to validate the parent.xsd with an xml...

There's some loose language (technically speaking, not gramatically) in the way you describe the problem, forgive me for saying that. First, you don't validate a schema (you could, but that not what you are trying to do, if I understand this correctly). You validate an XML file, that confirms to a schema document, called an XML Instance (of the schema document).

The problem I am facing is... when I read parent.xsd, itz not including child.xsd...

Here again I am lost, not sure what you mean by read the parent.xsd. Could you clarify that please.

- m
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic