Ric Gupta

Greenhorn
+ Follow
since Aug 08, 2003
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ric Gupta

Hi
Does anyone know how to implement Microsoft Project Central Server (used for mpp files) using java.
Thanks
18 years ago
Hi,
Does anyone know how to implement Microsoft Project Central (used for mpp files) using j2ee trchnologies.
Thanks,
Ric
18 years ago
Getting no error message but the XML is not getting validated against Schema. for eg. I added type for one element as "date"
<element name="value" minOccurs="1" maxOccurs="1" type="date"/>
If I write a String in XML file like
<value>aa</value>
I am not getting any parse exception or error. The XML file is sucessfully parsed.
Hi,
I am trying to validate an XML file using Schemas at parsing time using DOM Parser. Set the following features of DOM parser:
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setFeature("http://apache.org/xml/features/validation/schema", true);
parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
parser.setFeature("http://apache.org/xml/features/allow-java-encodings", true);
parser.setFeature("http://apache.org/xml/features/validation/warn-on-undeclared-elemdef", true);
parser.setFeature("http://apache.org/xml/features/validation/dynamic", true);
After setting all of these features also, the XML is not validated againt schema.
Schema declaration contains header as:
<schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="qualified">
XML header is :
<customer-order-status
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:SchemaLocation="XMLSchema.xsd">
Also tried to give full path to Schema and also namespace but of no use.
Can anybody help?
Ric