Revalidating in DOM3 2003-05-30 - By Christopher T. Day
This has probably been asked before, but the archives seem to be offline.
I'm trying to follow the recipe in http://xml.apache.org/xerces2-j/faq-dom.html#faq-7 but I don't seem to be able to set the "validate" parameter on the DOMConfiguration object. In particular,
documentConfig.getParameter("validate") returns false,
documentConfig.canSetParameter("validate", true) returns false,
documentConfig.setParameter("validate", true) throws a FEATURE_NOT_FOUND exception.
What am I missing? Thanks.
Christopher T. Day
Staff Scientist
Berkeley Lab
NERSC/HENPCG
CTDay@(protected)
<html>
<head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered)">
<style> <!-- /* Font Definitions */ @(protected) {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} @(protected) {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @(protected) {font-family:"\@(protected)"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:#AA00AA; text-decoration:underline;} p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} span.EmailStyle18 {font-family:Arial; color:windowtext;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} --> </style>
</head>
<body lang=EN-US link=blue vlink="#AA00AA">
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>This has probably been asked before, but the archives seem to be offline.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I’m trying to follow the recipe in <a href="http://xml.apache.org/xerces2-j/faq-dom.html#faq-7">http://xml.apache.org /xerces2-j/faq-dom.html#faq-7</a> but I don’t seem to be able to set the “validate” parameter on the DOMConfiguration object. In particular, </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>documentConfig.getParameter(“validate”) returns false,</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>documentConfig.canSetParameter(“validate”, true) returns false,</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>documentConfig.setParameter(“validate”, true) throws a FEATURE_NOT_FOUND exception.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>What am I missing? Thanks.</span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'> </span></font></p>
<p class=MsoAutoSig><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>Christopher T. Day</span></font></p>
<p class=MsoAutoSig><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>Staff Scientist</span></font></p>
<p class=MsoAutoSig><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>Berkeley</span></font> Lab</p>
<p class=MsoAutoSig><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>NERSC/HENPCG</span></font></p>
<p class=MsoAutoSig><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> </span></font></p>
<p class=MsoAutoSig><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'>CTDay@(protected)</span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size: 12.0pt'> </span></font></p>
</div>
</body>
</html>
|
|