File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes How can I validate the XML schema with XML files using localpath? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How can I validate the XML schema with XML files using localpath?" Watch "How can I validate the XML schema with XML files using localpath?" New topic
Author

How can I validate the XML schema with XML files using localpath?

luo luo
Ranch Hand

Joined: Dec 09, 2003
Posts: 36
I'm just starting to learn XML schema, I met a problem, how could I validate it with a XML files just under my localpath? THANKS!


Let it snow~
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Hi Anne,
I'm afraid you'll have to be a bit more specific about what you're trying to do... For example, what tools or APIs are you using?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
luo luo
Ranch Hand

Joined: Dec 09, 2003
Posts: 36
Sorry, maybe I didn't make any sense here, but what I was trying to figure out is : what if I don't have a URL (or default namespace? ) to store the schema and its instance xml files but just store them on my localmachine, how can I validate it? What should I put in the
<class xmlns="x-schema:xxxxxxxx.xml"> ?
I don't know if this's a feasible way in doing it?
Thanks.
luo luo
Ranch Hand

Joined: Dec 09, 2003
Posts: 36
Here is a validator from the msdn tutorial about XML, does anyone ever use it?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/xmtuttut6authoringschemas.asp
luo luo
Ranch Hand

Joined: Dec 09, 2003
Posts: 36
Oh, btw, I'm using SAX parser to read the XML files. Must I write some code to validate the XML files against the schema? :roll:
luo luo
Ranch Hand

Joined: Dec 09, 2003
Posts: 36
Got it, I could use the MSV to do that, thanks anyway
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I validate the XML schema with XML files using localpath?
 
Similar Threads
XML Schema Help
Howto validate xml schema?
how to find schema of an xml from dom program at run time
writing xml document using xml schema using Eclipse
Validating an XML File