File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
How to call xsd file from xml file
Joined: Sep 21, 2009
Aug 30, 2010 08:07:07
My intention is when ever i invoke the xml file through browser, My xml file must be call and validated by xsd file. how can achive this. Which tag and attribute i need to write in xml file. I mentioned my file in the bellow.
<? xml version="1.0" encoding="UTF-8" ?>
<xs:element name="employees" type="xsd:string"/>
<!-- Here i want to mention emp.xsd file location -->
both files are placed inside D:\praneeth folder.
Thanks & Regards,
Joined: Jul 20, 2005
Aug 31, 2010 01:26:17
First, your xsd has to specify the namespace under which the elements will be available. And once you do that, the elements in your xml can then refer to that namespace. See if
I agree. Here's the link:
subject: How to call xsd file from xml file
How to add jsp-api.jar or servlet-api.jar file to my programm in editplus2.x
Xerces: Using the method sax.Counter in xercesSamples.jar from the command line
Overwriting a specific XML section
XSL Read element Problem
XML Schema Help
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015