aspose file tools
The moose likes XML and Related Technologies and the fly likes XML Schema - Urgent help please Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "XML Schema - Urgent help please" Watch "XML Schema - Urgent help please" New topic
Author

XML Schema - Urgent help please

Ambrose Tati
Ranch Hand

Joined: Oct 03, 2000
Posts: 55
Dear all,
I've written an XML Schema document and an instance document. They both live in my C:\XML Schema directory.
1) In the XML document (test.xsd) what do I set this values to?
xmlns:xsd=
targetNamespace=
xmlns=
elementFormDefault=
2)In the instance document (test.xml) what do I set this values to?
xmlns =
xmlns:xsi =
xsi:schemaLocation =
Thanks in advance.
Ambrose Tati
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5781
In XML
<?xml version="1.0"?>
<RootElement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="my C:\XML\MySchema.xsd">

In XSD
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Hope that helps!
------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.


Open Group Certified Master IT Architect.
Sun Certified Architect(SCEA).
 
 
subject: XML Schema - Urgent help please
 
Threads others viewed
Basic XML question
Valid XML generation situation
Reading node values in specified datatype in schema( .XSD)
XML Namespace and schemalocation property?
using XSD to generate XML document
developer file tools