<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR>
<STYLE>P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: #606420; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: #606420; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=#606420 link=blue bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Ok. I see now the problem with the
document.toString(), </FONT></DIV>
<DIV><FONT face=Arial size=2>Nice to help you ( a little
)</FONT></DIV>
<DIV><FONT face=Arial size=2>Chris</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=mahesh.trikannad@capgemini.com
href="mailto:mahesh.trikannad@capgemini.com">Trikannad, Mahesh</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=christian.avril@dpma.finances.gouv.fr
href="mailto:christian.avril@dpma.finances.gouv.fr">Christian Avril</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
title=jdom-interest-bounces@jdom.org
href="mailto:jdom-interest-bounces@jdom.org">jdom-interest-bounces@jdom.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 24, 2005 6:36
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [jdom-interest] Schema
Validation Error</DIV>
<DIV><BR></DIV>
<DIV id=idOWAReplyText22575 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Chris,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>You lead me to the problem.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Problem was document.toString(), does not
give a string representation of the XML.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I changed it to </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>XMLOutputter outputter = new
XMLOutputter();<BR> String myDocString =
outputter.outputString(myDocument);<BR>
System.out.println(myDocString);<BR> Document
tmpdoc = builder.build(new StringReader(myDocString));</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>The reason, I need the Document, is I
have already, got the Document in memory, and I want to validate
it.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I dont have the File or String, at that
point when I want to validate.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Thanks for your help</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Mahesh</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Christian Avril
[mailto:christian.avril@dpma.finances.gouv.fr]<BR><B>Sent:</B> Thu 3/24/2005
12:25 PM<BR><B>To:</B> Trikannad, Mahesh<BR><B>Cc:</B>
jdom-interest-bounces@jdom.org<BR><B>Subject:</B> Re: [jdom-interest] Schema
Validation Error<BR></FONT><BR></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Of course I need the build. But builder.build is
good for parsing and validate </FONT></DIV>
<DIV><FONT face=Arial size=2>If I only want to validate my file XML,
I don't need to use the object
<STRONG>Document</STRONG> </FONT></DIV>
<DIV><STRONG><FONT face=Arial size=2></FONT></STRONG> </DIV>
<DIV><FONT face=Arial size=2>Just this</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> // start
parsing...<BR></FONT><FONT face=Arial
size=2> try
{<BR> <BR>
builder.build(fichierxml); // parsing and validate
!<BR> System.out.println(fichierxml
+ " is well formed.");<BR> }
catch (IOException ioe)
{<BR>
System.out.println(" prob read file " + fichierxml
);<BR> } catch (JDOMException
e) { // indicates a well-formedness or validity
error<BR>
System.out.println(fichierxml + " is not
valid.");<BR>
System.out.println(e.getMessage());<BR>
}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I can use , for another example , the object
Document, if I want parsing, validate <STRONG>AND</STRONG>
later <STRONG>use methods of the object Document</STRONG>, but it's
another story.</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2>Like this</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Document doc =
builder.build(fichierxml); </FONT></DIV>
<DIV><FONT face=Arial size=2> ...</FONT></DIV>
<DIV><FONT face=Arial><FONT size=2> <FONT
size=+0>doc.getRootElement()</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Chris</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><B>From:</B> <A
title=mahesh.trikannad@capgemini.com
href="mailto:mahesh.trikannad@capgemini.com">Trikannad, Mahesh</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=christian.avril@dpma.finances.gouv.fr
href="mailto:christian.avril@dpma.finances.gouv.fr">Christian Avril</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 24, 2005 5:57
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [jdom-interest] Schema
Validation Error</DIV>
<DIV><BR></DIV>
<DIV id=idOWAReplyText92949 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Chris,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I did not understand your
solution.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Are you suggesting not doing the build
at all. Would that cause NO Validation to occur.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>How do you validate in your
code.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Appreciate your help</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>Mahesh</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Christian Avril
[mailto:christian.avril@dpma.finances.gouv.fr]<BR><B>Sent:</B> Thu 3/24/2005
11:40 AM<BR><B>To:</B> Trikannad, Mahesh<BR><B>Subject:</B> Fw:
[jdom-interest] Schema Validation Error<BR></FONT><BR></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Yes, if I use , like you
builder.build(new
StringReader(fichierxml));</FONT></DIV>
<DIV><FONT face=Arial size=2>I have the error !!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>xml/tri.xml is not valid.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Error on line 1: Content is not allowed in
prolog.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Why don't you try without .....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>builder.build(<FONT face="Times New Roman"
size=3>myDocument</FONT>) or the name of the args if there is
one</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Chris</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial">----- Original Message -----
<DIV style="BACKGROUND: #e4e4e4"><B>From:</B> <A
title=christian.avril@dpma.finances.gouv.fr
href="mailto:christian.avril@dpma.finances.gouv.fr">Christian AVRIL</A>
</DIV>
<DIV><B>To:</B> <A title=mahesh.trikannad@capgemini.com
href="mailto:mahesh.trikannad@capgemini.com">Trikannad, Mahesh</A> </DIV>
<DIV><B>Sent:</B> Thursday, March 24, 2005 5:10 PM</DIV>
<DIV><B>Subject:</B> Re: [jdom-interest] Schema Validation Error</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>I have not exactly the same error but it sounds
the error is :</FONT></DIV>
<DIV><FONT face=Arial size=2><EM>Element 'Body' must have no character or
element information item [children],</EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM>because the type's content type is
empty<STRONG>.</STRONG></EM></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So you can write in your file xsd </FONT></DIV>
<DIV><FONT face=Arial size=2>this</FONT></DIV>
<DIV><FONT face=Arial size=2> <xs:element
name="Body"><BR> </xs:element></FONT></DIV>
<DIV><FONT face=Arial size=2>or this </FONT></DIV>
<DIV><FONT face=Arial size=2> <xs:element name="Body"/><BR>if
it's not a </FONT><FONT face=Arial size=2>complexType ( because it is
empty ) </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Or you can have something into the
<Body>something...</body></FONT> <FONT face=Arial size=2>if
it's a complexType ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Chris</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><B>From:</B> <A
title=mahesh.trikannad@capgemini.com
href="mailto:mahesh.trikannad@capgemini.com">Trikannad, Mahesh</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=christian.avril@dpma.finances.gouv.fr
href="mailto:christian.avril@dpma.finances.gouv.fr">Christian Avril</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 24, 2005 4:56
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [jdom-interest] Schema
Validation Error</DIV>
<DIV><BR></DIV>
<DIV id=idOWAReplyText90211 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000
size=2></FONT> </DIV></DIV>
<DIV dir=ltr>Here is the xsd file.</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Regards</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Mahesh<BR></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> Christian Avril
[mailto:christian.avril@dpma.finances.gouv.fr]<BR><B>Sent:</B> Thu
3/24/2005 10:37 AM<BR><B>To:</B> Trikannad, Mahesh<BR><B>Subject:</B> Re:
[jdom-interest] Schema Validation Error<BR></FONT><BR></DIV>
<DIV>
<DIV><FONT face=Arial size=2>Hi, </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Have you please a <FONT
face="Times New Roman" size=3>schemaFileName ( like
namefile</FONT>.xsd ) and can you send it</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Chris</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial"><B>From:</B> <A
title=mahesh.trikannad@capgemini.com
href="mailto:mahesh.trikannad@capgemini.com">Trikannad, Mahesh</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jdom-interest@jdom.org
href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 24, 2005 4:14
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [jdom-interest] Schema
Validation Error</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi All,</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I get the following error,
when I do a schema validation.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'">Error
on line 1: Content is not allowed in prolog.</SPAN></FONT><FONT
face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I want through, the jdom
archives, but did not get a resolution. Some say it is a parser problem.
Iam using xerces.jar, the one distributed via the jdom-1.0
distriution.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Some say, it is a windows
file encoding problem. I tried saving it , with notepad in different
formats, that did not work</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The XML is as
follows</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'"><?xml
version="1.0" encoding="UTF-8"?></SPAN></FONT><FONT
face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'"><ESBMessage></SPAN></FONT><FONT
face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'">
<Header></SPAN></FONT><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'">
<MessageId>mahesh</MessageId></SPAN></FONT><FONT
face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'">
<OrigSys>ICOM</OrigSys></SPAN></FONT><FONT
face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'">
<origSubSys>ICOMS1</origSubSys></SPAN></FONT><FONT
face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'">
</Header></SPAN></FONT><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'">
<Body></SPAN></FONT><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'">
</Body></SPAN></FONT><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: blue; FONT-FAMILY: 'Courier New'"></ESBMessage></SPAN></FONT><FONT
face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">The
code for schema validation</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'">-------</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Courier New" color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">SAXBuilder builder =</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">
new SAXBuilder("org.apache.xerces.parsers.SAXParser",
true);</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">
builder.setFeature("http://apache.org/xml/features/validation/schema",
true);</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">
builder.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">
schemaFileName);</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">
</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">
</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">
Document tmpdoc = builder.build(new
StringReader(myDocument.toString()));</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">
System.out.println("myValidate Done");</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">Appreciate your experiences. </SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt">Mahesh Trikannad</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P></DIV>
<TABLE>
<TBODY>
<TR>
<TD bgColor=#ffffff><FONT color=#000000>This message contains
information that may be privileged or confidential and is the
property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended
recipient, you are not authorized to read, print, retain, copy,
disseminate, distribute, or use this message or any part thereof.
If you receive this message in error, please notify the sender
immediately and delete all copies of this
message.<BR><BR></FONT></TD></TR></TBODY></TABLE>
<P>
<HR>
<P></P>_______________________________________________<BR>To control
your jdom-interest
membership:<BR>http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</BLOCKQUOTE></DIV>
<TABLE>
<TBODY>
<TR>
<TD bgColor=#ffffff><FONT color=#000000>This message contains
information that may be privileged or confidential and is the
property of the Capgemini Group. It is intended only for the person
to whom it is addressed. If you are not the intended recipient, you
are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive
this message in error, please notify the sender immediately and
delete all copies of this
message.<BR><BR></FONT></TD></TR></TBODY></TABLE></BLOCKQUOTE></DIV>
<TABLE>
<TBODY>
<TR>
<TD bgColor=#ffffff><FONT color=#000000>This message contains
information that may be privileged or confidential and is the property
of the Capgemini Group. It is intended only for the person to whom it
is addressed. If you are not the intended recipient, you are not
authorized to read, print, retain, copy, disseminate, distribute, or
use this message or any part thereof. If you receive this message in
error, please notify the sender immediately and delete all copies of
this message.<BR><BR></FONT></TD></TR></TBODY></TABLE></BLOCKQUOTE></DIV>
<TABLE>
<TBODY>
<TR>
<TD bgColor=#ffffff><FONT color=#000000>This message contains
information that may be privileged or confidential and is the property
of the Capgemini Group. It is intended only for the person to whom it is
addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this
message or any part thereof. If you receive this message in error,
please notify the sender immediately and delete all copies of this
message.<BR><BR></FONT></TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>