Re: Xerces templating

2002-03-12 Thread Esteban Gonzalez
Peter, Here are some snippets of the code... try { //DOMParser parser = new DOMParser(); DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder(); template = parser.

Re: problems parsing file with DTD

2002-03-12 Thread Steven Gollery
Elena, Yes, it turned out to be a firewall problem. Once I set up the code to go through the proxy, everything started to work. I assumed it had to be something that I was overlooking (because obviously this is a pretty basic function for any XML parser), but it took me a while to think of it. Th

AW: Xerces templating

2002-03-12 Thread Hellmann Peter (ext) ICM RDC IS VDR RD
Esteban, no, it is not a correct behaviour for the dom api since the creation of a dom tree is good for manipulting the document programmatically. If you add, delete or change nodes and afterwards serialize the document, the serialized document should reflect any changes. What functions do you ca

Xerces templating

2002-03-12 Thread Esteban Gonzalez
HI! I´m not really sure if this is the place to post this question... but i´m having a little problem here and I need some help I have a voucher.xml file wich is a ´template´ to create new xml voucher representations. I´m using Xerces, latest version, downloaded a week ago. When i do doc = p

Re: problems parsing file with DTD

2002-03-12 Thread Elena Litani
Steven, Steven Gollery wrote: > When I try to read a file that is on my local machine and has a PUBLIC > DTD, I get a java.net.socket exception when I use the file path (eg, > D:\whatever.xml) or an unknown host exception when I use file://D/ > whatever.xml. > The DTD declaration looks like this:

Re: xml validation with schema

2002-03-12 Thread Xuemin Guan
Check this link http://xml.apache.org/xerces-j/features.html Basically, you need to set the features. If you use JDom, the following code helps: public void validate(InputSource in, String schemaLocation, String strNamespace) throws SAXException, IOException { SAXParser reader = new

RE: xml validation with schema

2002-03-12 Thread Vijaya Kumar
Hi i have attached a .java file which will validate the given XML file aganist the XSD mentioned in the XML file. i hope this will help u regards Vijay -Original Message- From: tom john [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 12, 2002 2:43 PM To: [EMAIL PROTECTED] Subject: xml v

xml validation with schema

2002-03-12 Thread tom john
Hi, I am very new with xerces and schema. Can anyone give me a simple example how to validate xml using schema? or where to look for it. i get xml data which needs to be validated. thanks tom __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's grea

Re: xercesimpl.jar file size different in Xalan 2.3.1 & Xerces 2.0.1--- whichto use?

2002-03-12 Thread Andy Clark
"Isaac S." wrote: > ... so in some cases, we won't be able to use the newest Xalan and the > newset Xerces both in the same project? If Xalan continues to rely on Xerces-only API for performance reasons *and* those interfaces change, then you *might* have problems using the latest Xerces with a ve