RE: Add schema to xmldocument

2007-01-10 Thread Bernd Kolb (KolbW@re)
Ok, thanks a lot! Bernd > -Original Message- > From: Michael Glavassevich [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 10, 2007 3:58 PM > To: j-users@xerces.apache.org > Subject: RE: Add schema to xmldocument > > "Bernd Kolb \([EMAIL PROTECTED])"

RE: Add schema to xmldocument

2007-01-10 Thread Michael Glavassevich
PROTECTED] > > Sent: Wednesday, January 10, 2007 6:33 AM > > To: j-users@xerces.apache.org > > Subject: RE: Add schema to xmldocument > > > > "Bernd Kolb \([EMAIL PROTECTED])" <[EMAIL PROTECTED]> wrote on 01/09/2007 > > 09:58:08 AM: > > > >

RE: Add schema to xmldocument

2007-01-10 Thread Bernd Kolb (KolbW@re)
ichael Glavassevich [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 10, 2007 6:33 AM > To: j-users@xerces.apache.org > Subject: RE: Add schema to xmldocument > > "Bernd Kolb \([EMAIL PROTECTED])" <[EMAIL PROTECTED]> wrote on 01/09/2007 > 09:58:08 AM: >

RE: Add schema to xmldocument

2007-01-09 Thread Michael Glavassevich
validate(Unknown Source) >at org.apache.xerces.jaxp.validation.ValidatorImpl. > validate(Unknown Source) >at javax.xml.validation.Validator.validate(Unknown Source) >at XMLValidation.(XMLValidation.java:58) >at XMLValidation.main(XMLValidation.java:23) >

RE: Add schema to xmldocument

2007-01-09 Thread Bernd Kolb (KolbW@re)
> To: j-users@xerces.apache.org > Subject: RE: Add schema to xmldocument > > "Bernd Kolb \([EMAIL PROTECTED])" <[EMAIL PROTECTED]> wrote on 01/09/2007 > 09:17:22 AM: > > > Hm. I have noticed something strange. > > > > When I am running the code

RE: Add schema to xmldocument

2007-01-09 Thread Michael Glavassevich
"Bernd Kolb \([EMAIL PROTECTED])" <[EMAIL PROTECTED]> wrote on 01/09/2007 09:17:22 AM: > Hm. I have noticed something strange. > > When I am running the code with Sun JDK 1.5_6 everything works nicely. > When switching to JDK 1.4.2_13 I am getting this error. > > org.xml.sax.SAXParseException:

RE: Add schema to xmldocument

2007-01-09 Thread Bernd Kolb (KolbW@re)
ich [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 09, 2007 3:21 PM > To: j-users@xerces.apache.org > Subject: RE: Add schema to xmldocument > > Each node in a DOM [1] carries its own namespace URI. Adding > a namespace declaration to the tree has no effect on the >

RE: Add schema to xmldocument

2007-01-09 Thread Michael Glavassevich
; Thanks again > > Regards > > Bernd Kolb > > > > > > -Original Message- > > From: Dick Deneer [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, January 09, 2007 8:19 AM > > To: j-users@xerces.apache.org > > Subject: Re: Add schema to xml

RE: Add schema to xmldocument

2007-01-09 Thread Bernd Kolb (KolbW@re)
ould work, shouldn't it I am a bit confuesd Best reagards Bernd Kolb > -Original Message- > From: ddeneer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 09, 2007 12:12 PM > To: j-users@xerces.apache.org > Subject: RE: Add schema to xmldocum

RE: Add schema to xmldocument

2007-01-09 Thread ddeneer
> >> -Original Message- >> From: Dick Deneer [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, January 09, 2007 8:19 AM >> To: j-users@xerces.apache.org >> Subject: Re: Add schema to xmldocument >> >> >> Apparently your schema simple.xsd has a

RE: Add schema to xmldocument

2007-01-09 Thread Bernd Kolb (KolbW@re)
gain Regards Bernd Kolb > -Original Message- > From: Dick Deneer [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 09, 2007 8:19 AM > To: j-users@xerces.apache.org > Subject: Re: Add schema to xmldocument > > > Apparently your schema simple.xsd has a targetnamesp

Re: Add schema to xmldocument

2007-01-08 Thread Dick Deneer
Apparently your schema simple.xsd has a targetnamespace http:// sample.com. Your test.xml has no namespace decaration, so it is in the "null" namespace and has to be validated against a schema thas als has a "null" targetnamespace. Either you must remove the targetnamespace in your xsd or

Add schema to xmldocument

2007-01-08 Thread Bernd Kolb (KolbW@re)
Hi, I have a question: I am using xerces 2.9.0. I have a XML-Document witch was not created by me and I am not able to load it from a file. I am getting the XML-Document Object. Now I want to validate this document against a schema. This schema might not be in the document. So I want to add the