Specify DTD in code?

2002-02-18 Thread Paul A Jungwirth
Hi all, If I have an XML document that doesn't declare a DTD, can my code tell the SAX parser where the DTD is so it can do validation? I saw online how you can (sort of) cache DTDs using an EntityResolver. I though maybe this would work, but it appears that when a document doesn't declare a DTD,

[Xerces-2] Line/column numbers are available for schema errors!!!

2002-02-18 Thread sandygao
Hi folks, We've all seen so many complains like "Why the location information is for the instance document, when the error occurs in the schema document?" and "Why dom.ASBuilder always gives -1;-1 as the error location?" Now we can put an end it: proper line/column numbers are available for schema

Re: serielizing node

2002-02-18 Thread Arturo Ma
Tom John: You just need to set the transformer property accordingly before you perform the transformation as follows: import javax.xml.transform.OutputKeys; > ByteArrayOutputStream out = new > ByteArrayOutputStream(); > try{ > Transformer t = > TransformerFactory.newInstance().newTransformer()

XSLT support

2002-02-18 Thread Anil
Hi, Does the latest version of Xerces parser(1.4.4) support XSLT transformations. regards Anil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

OO API to DOM

2002-02-18 Thread Troy A. Griffitts
Hello, I may be able to get my employer to opensource our XML API that we've been working on now for about 18 months. Companies like GE Power Systems, Novell, and others at: http://www.evergreen.com/customers/ use this API for XML business processing. I was curious if the Apache X

TEXT empty child nodes?

2002-02-18 Thread Hasan Al-Sheboul
Hi, for the following code (xerces2-J, DOM model) case Node.TEXT_NODE: String str = getNodeValue(); if ( ( !str.equals("\n")) && (!str.equals(null)) ) { // do something } I'm trying to get rid of the empty text child nodes, like: TextB The above code retu

serielizing node

2002-02-18 Thread tom john
hi, i am trying to convert a node to string. i am using the following code ByteArrayOutputStream out = new ByteArrayOutputStream(); try{ Transformer t = TransformerFactory.newInstance().newTransformer(); t.transform(new DOMSource(node), new StreamResult(out)); }catch String xmlString =

XMLSerializer problem

2002-02-18 Thread Cirip Tomas
Hi, I am trying to use XMLSerializer to write XML document to a file. In the result I get xmlns:xsi attribute twice. I used it before and I think it was working ok before. I downloaded latest xerces jars. Any ideas? Java code: DOMParser parser = new DOMParser(); parser.parse("file:/

Re: AW: errors while loading and validating a XSL file

2002-02-18 Thread Rahul Srivastava
> Andreas Völker wrote... > > > You need to supply a schema file for the namespace > > "http://www.w3.org/1999/XSL/Transform"; against which validation can be done. > > Shouldn't this schema file be built in Xerces? No. Xerces validates an instance against a schema. It does not generates a sc

AW: errors while loading and validating a XSL file

2002-02-18 Thread Andreas Völker
> You need to supply a schema file for the namespace > "http://www.w3.org/1999/XSL/Transform"; against which validation can be done. Shouldn't this schema file be built in Xerces? And if not where can I get such a schema file? -Ursprüngliche Nachricht- Von: Rahul Srivastava [mailto:[EMA

Re: errors while loading and validating a XSL file

2002-02-18 Thread Rahul Srivastava
> Andreas Völker wrote... > > Hi, > I am using Xerces2 Java Parser 2.0.0 and try to load and validate a XSL file like this ... > > >xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> > > > > > > > > > >

errors while loading and validating a XSL file

2002-02-18 Thread Andreas Völker
Title: errors while loading and validating a XSL file Hi, I am using Xerces2 Java Parser 2.0.0 and try to load and validate a XSL file like this ...         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">                     

Re: converting xml String to xml document

2002-02-18 Thread Jakub . Valenta
Hi, all you need to know to make basic XMLing is described in http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/index.html br, Jakub tom john <[EMAIL PROTECTED]> on 02/18/2002 01:52:16 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: converting xml String t

Re: converting xml String to xml document

2002-02-18 Thread Henry Kleynhans
Hi John, On Monday 18 February 2002 13:52, you wrote: > Can someone give me an example on how to transform a > string to a xml document. String to convert is a valid > xml. > > As a way of passing parameters between two > applications i am passing xml as Strings which must be > converted to xml do

converting xml String to xml document

2002-02-18 Thread tom john
hi, Can someone give me an example on how to transform a string to a xml document. String to convert is a valid xml. As a way of passing parameters between two applications i am passing xml as Strings which must be converted to xml document to process. thanks ___

CFP: O'Reilly Open Source Convention XML (II).

2002-02-18 Thread dirkx
CALL FOR SPEAKERS (repeat call) O'Reilly Open Source Convention Sheraton San Diego Hotel and Marina July 22-26, 2002 -- San Diego, CA Call for Participation - XML track Proposals Due: March 1, 2002 The theme of this year's Open Source Convention is "Doing More With Less." This ha