Subjects
Home
VOTE Move XML Commons to Xerces
Commented: (XERCESJ 589) Bug with pattern restriction on long strings
: Xerces J 2 8 1 Release on Wednesday, September 13th
: Xerces J 2 9 0 Release on Wednesday, November 22nd
Commented: (XERCESJ 1066) Restriction+choice+substitutionGroup error
Commented: (XERCESJ 1178) Error getting prefix for an attribute with no n
Updated: (XERCESJ 1244) XMLSchemaValidator does not contribute element 's
Some consideration about the xerces DOM implementation
Updated: (XERCESJ 1066) Restriction+choice+substitutionGroup error
Commented: (XERCESJ 1227) Poor performance / OutOfMemoryError for sequenc
retain exception stack traces
Updated: (XERCESJ 1193) NPE or hang when parsing using the "continue afte
Future of NekoHTML
Commented: (XERCESJ 1203) NPE in XMLDTDProcessor
DOM Level 3 APIs for Xalan J and a new Xalan release (2 7 1)
: xml commons external 1 3 04 Release on Wednesday, November 22nd
Commented: (XERCESJ 1247) Incorrect location information on SAX when usin
XInclude exceptions how to mirror Xerces J functionality into Xerces C++?
First proposal on SoC project "Add support for the StAX (JSR 173) cursor API
: xml commons resolver 1 2 Release on Wednesday, November 22nd
Typo in RangeToken java Please check
Validator features
java lang ClassCastException when adopting Node
using the org apache xerces impl xs identity package
Updated: (XERCESJ 1257) buffer overflow in UTF8Reader for characters out
Problem with ref attributes and schema validation
Updated: (XERCESJ 122) XMLSchemaValidator does not contribute element 's d
Performance problem under load Xerces with Weblogic 9 x
remove ignored memory allocation
Commented: (XERCESJ 1177) SAXXMLStreamReader doesn 't always report namesp
Commented: (XERCESJ 977) Null pointer exception during DOM parsing
Commented: (XERCESJ 1197) Code cleanup for org apache xml serialize
Commented: (XERCESJ 1201) Initial contribution for StAX Event API
Updated: (XERCESJ 1061) Regex "$ " and "^ " characters treated as special c
Commented: (XERCESJ 1199) SAXXMLStreamReader should attempt to register a
Commented: (XERCESJ 1061) Regex "$ " and "^ " characters treated as special
Updated: (XERCESJ 589) Bug with pattern restriction on long strings
StackOverflow
xerces Range unnecessarily not garbage collectable if not detached
Updated: (XERCESJ 1178) Error getting prefix for an attribute with no nam
Bug in xs:redefine
Commented: (XERCESJ 1204) Can not set XMLEntityResolver for LSParser
Updated: (XERCESJ 1253) Prototype for SoC2007 project "Add support for th
Updated: (XERCESJ 1259) Add SteamFilter Function to SoC2007 project "Add
Assigned: (XERCESJ 444) SAXException thrown by EntityResolver is reported
Google Summer of Code 2007
Xerces J and XInclude relative path issue
Assigned: (XERCESJ 206) Stack overflow when using a schema validation
Commented: (XERCESJ 1215) Restrictions involving two levels of substituti
Closed: (XERCESJ 1203) NPE in XMLDTDProcessor
non overriding equals methoda
Resolved: (XERCESJ 1079) invalid value returned for TOTALDIGITS facet in
Xerces AS3 port
Updated: (XERCESJ 325) Regular Expression; Pattern "| " clause order de
Updated: (XERCESJ 1196) Javadoc generation fails on Java SE 5 0
Closed: (XERCESJ 1202) DTD validation on XIncluded documents when the sch
Created: (XERCESJ 1124) Nonspecific schema error message
a bug in xerces
Updated: (XERCESJ 1201) Initial contribution for StAX Event API
Closed: (XERCESJ 1254) Empty uris in targetNamespace attribute not report
Links
Home
Oracle database error code
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
question on xml schema validation with xerces 2

question on xml schema validation with xerces 2

2003-01-09       - By Tim Cronin
Reply:     1     2     3  

You need to set this feature as well

See http://xml.apache.org/xerces2-j/features.html#validation.schema
<http://xml.apache.org/xerces2-j/features.html#validation.schema>

-----Original Message-----
From: Kiran Bhumana [mailto:kBhumana@(protected)]
Sent: Thursday, January 09, 2003 1:21 PM
To: xerces-j-user@(protected)
Subject: re: question on xml schema validation with xerces 2



Doesn't the setfeature I do turn on the schema validation, if that is not
the case, I would appreciate it if someone passes me the propertyid for
"schema validation".


> parser.setFeature("http://xml.org/sax/features/validation", true);

Make sure that you turn on Schema validation as well.

--
Andy Clark * andyc@(protected)





<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2800.1126" name=GENERATOR>
<META content="Microsoft Word 10" name=Originator><LINK
href="cid:filelist.xml@(protected)" rel=File-List><o:SmartTagType
name="PersonName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--
[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
 <o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
 <w:SpellingState>Clean</w:SpellingState>
 <w:GrammarState>Clean</w:GrammarState>
 <w:DocumentKind>DocumentEmail</w:DocumentKind>
 <w:EnvelopeVis/>
 <w:Compatibility>
  <w:BreakWrappedTables/>
  <w:SnapToGridInCell/>
  <w:WrapTextWithPunct/>
  <w:UseAsianBreakRules/>
 </w:Compatibility>
 <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<STYLE>st1\:* {
  BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@(protected) Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in;
mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times
New Roman"
}
LI.MsoNormal {
  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times
New Roman"
}
DIV.MsoNormal {
  FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso
-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times
New Roman"
}
A:link {
  COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
  COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
  COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
  COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
  COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose; mso
-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso
-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family:
Arial
}
SPAN.SpellE {
  mso-style-name: ""; mso-spl-e: yes
}
SPAN.GramE {
  mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
  page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
  {mso-style-name:"Table Normal";
  mso-tstyle-rowband-size:0;
  mso-tstyle-colband-size:0;
  mso-style-noshow:yes;
  mso-style-parent:"";
  mso-padding-alt:0in 5.4pt 0in 5.4pt;
  mso-para-margin:0in;
  mso-para-margin-bottom:.0001pt;
  mso-pagination:widow-orphan;
  font-size:10.0pt;
  font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=EN-US style="tab-interval: .5in" vLink=purple link=blue>
<DIV><SPAN class=989592019-09012003><FONT face=Arial color=#0000ff size=2>You
need to set this feature as well</FONT></SPAN></DIV>
<DIV><SPAN class=989592019-09012003></SPAN>&nbsp;</DIV>
<DIV><SPAN class=989592019-09012003><FONT face=Arial color=#0000ff size=2>See
<A
href="http://xml.apache.org/xerces2-j/features.html#validation.schema">http:/
/xml.apache.org/xerces2-j/features.html#validation.schema</A></FONT></SPAN></DIV
>
<DIV><SPAN class=989592019-09012003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
 <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
 size=2>-----Original Message-----<BR><B>From:</B> Kiran Bhumana
 [mailto:kBhumana@(protected)]<BR><B>Sent:</B> Thursday, January 09, 2003
 1:21 PM<BR><B>To:</B> xerces-j-user@(protected)<BR><B>Subject:</B> re:
 question on xml schema validation with xerces 2<BR><BR></FONT></DIV>
 <DIV class=Section1>
 <P class=MsoNormal style="mso-layout-grid-align: none"><FONT
 face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN><
/FONT></P>
 <P class=MsoNormal style="mso-layout-grid-align: none"><FONT
 face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Doesn't the <SPAN
 class=SpellE>setfeature</SPAN> I do turn on the schema validation, if that is
 not the case, I would appreciate it if someone passes me the <SPAN
 class=SpellE>propertyid</SPAN> for "schema
 validation".<o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="mso-layout-grid-align: none"><FONT
 face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN><
/FONT></P>
 <P class=MsoNormal style="mso-layout-grid-align: none"><FONT
 face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN><
/FONT></P>
 <P class=MsoNormal style="mso-layout-grid-align: none"><FONT
 face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">&gt; <SPAN
 class=SpellE><SPAN class=GramE>parser.setFeature</SPAN></SPAN><SPAN
 class=GramE>(</SPAN>"http://xml.org/sax/features/validation",
 true);<o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="mso-layout-grid-align: none"><FONT
 face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN><
/FONT></P>
 <P class=MsoNormal style="mso-layout-grid-align: none"><FONT
 face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Make sure that you turn
on
 Schema validation as well.<o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal style="mso-layout-grid-align: none"><FONT
 face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN><
/FONT></P>
 <P class=MsoNormal style="mso-layout-grid-align: none"><FONT
 face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">--
 <o:p></o:p></SPAN></FONT></P>
 <P class=MsoNormal><FONT face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Andy Clark *
 </SPAN></FONT><st1:PersonName><FONT face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">andyc@(protected)</SPAN><
/FONT></st1:PersonName><FONT
 face="Courier New" size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT>
</P>
 <P class=MsoNormal><FONT face=Arial size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><
/P>
 <P class=MsoNormal><FONT face=Arial size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><
/P>
 <P class=MsoNormal><FONT face=Arial size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><
/P>
 <P class=MsoNormal><FONT face=Arial size=2><SPAN
 style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT><
/P></DIV></BLOCKQUOTE></BODY></HTML>