Re: How to add Schema Location in DOM object

2001-11-26 Thread Elena Litani
Ragunath Marudhachalam wrote: > > Hi All, > > Could anyone help me out in adding the schema location element while > constructing a DOM object. I'm constructing a DOM object in the client side > and sending it to the server as a stream. I have to validate the xml > document on the server

Re: Doubt

2001-11-26 Thread Elena Litani
Sridhar Raju Y wrote: > > Hi All , >Is it possible to load the schema definition into xerces DOMParser or > SAXParser with out mentioning the schemaLocation attribute in the > instance > document. See http://apache.org/xml/properties/schema/external-schemaLocation property [http://xml.apache

Re: InternalDatatype error ASV

2001-11-26 Thread Elena Litani
Arne Wolf Koesling wrote: > > Hi, > > I get the following error everytime, when I want to start the parser from an > example program. I assume you are using latest Xerces2 beta 3? Can you give more details about which "example program" are you using? Thank you, -- Elena Litani / IBM Toronto -

dtd validation and jtree.

2001-11-26 Thread vivek bodhraj
Hi, I have a requirement to display a DTD on a scrollpane using Jtree. I have checked up the samples that come with xercesparser(131), my understanding is that they only display the xml instance not the dtd alone. Is there a way I can display it wrapping it with JTree? Any help would be appreciated

InternalDatatype error ASV

2001-11-26 Thread Arne Wolf Koesling
Hi, I get the following error everytime, when I want to start the parser from an example program. Does someone know, what it is (and how to get rid of it) ? java.lang.ExceptionInInitializerError: java.lang.RuntimeException: InternalDatatype error ASV. at org.apache.xerces.impl.dv.xs.AbstractStri

SAX and namespace attributes

2001-11-26 Thread Elena Litani
According to the SAX documentation namespace attributes should have no namespace URI, and no local name: [[ [an xmlns:h attribute should return] an attribute with no Namespace URI (empty string), no local name (empty string), and the qName "xmlns:h" ]] See: http://sax.sourceforge.net/?selected=name

How to add Schema Location in DOM object

2001-11-26 Thread Ragunath Marudhachalam
Hi All, Could anyone help me out in adding the schema location element while constructing a DOM object. I'm constructing a DOM object in the client side and sending it to the server as a stream. I have to validate the xml document on the server side. So when i send the DOM object to server

xalan/xerces 2

2001-11-26 Thread rpcee
if I run the attached Simple.java against Simple.xml with xalan 2 D13, and the xerces that comes with xalan, I get the expected output (an identity transform). If I run it with xerces 2B3, I get: it's the I'm confused about. I guess there's a CR coming in somewhere. (I posted to xerces b

RE: tags in uppercase/lowercase

2001-11-26 Thread jean-guillaume . battaglia
Hi. The only solution you have is to create a Stream that reads your file first and than converts all the characters between "<" and ">" or "" to lower case for example. Than you send the Stream to your XML parser. I think this should work. Hope that helps.  

Re: Xerces refuses that a simple type be used in a derivation by RESTRICTION...

2001-11-26 Thread adrien kmiecik
Thank you for answering, but your XML schema don't work : there is no 'abstract' attribute with xsd:simpleType !! Actually, I will use the BestPractice XML schema called "hermaphodite types" (see http://www.xfront.com/BestPracticesHomepage.html - Variable Content Contenairs) Craig Collings a écr

Unicode characters written as ? in XML file

2001-11-26 Thread Jesus \(John\) Salvo Jr.
Xerces J 1.4.4. I am trying to convert an existing Unicode text file ( sampleutf16.txt ) into XML. Attached is my sample program UnicodeTest.java ( Set the first parameter as the name of the input text file, the second parameter the name of the output XML file. ) The output ( sample.xml ) that I

Doubt

2001-11-26 Thread Sridhar Raju Y
Hi All , Is it possible to load the schema definition into xerces DOMParser or SAXParser with out mentioning the schemaLocation attribute in the instance document. Is there any functionality provided to do like that.If so could you explain it by example.. Thanks, Sridhar. Sridhar Raju.Y,