Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About katja.radelicki@colruyt.be

  • Rank
  1. Dear members,what are the possible ways to show an XML file (withe the layout of a table accordance with the XSL) in a web application written in java? The xml file has to be transformed by a corresponding xsl file.(is it possible in jsp? in jdom? ...)Regards,Katja
  2. It is some bug and normally it it solved in jdk 1.5see http://mail-archives.apache.org/mod_mbox/x....jira@brutus%3e But I tried to use jdk 1.5 and I still receive this error.Is there somebody who knows what to do?Thanks in advance!
  3. Hello,is it possible to create an XML file with SAX with Validation (using an xsd)? I know it is possible to read an XML file with SAX with Validation and to write an XML file with SAX. But now I want to create a valid XML file with SAX.Writing with SAX I do like this: public class SaxWriter { public static void main(String[] args) { try{FileOutputStream fileOutputStream=new FileOutputStream("C:/_develop/asja/lib/local/saxxmlliblocal/properties/xml/catalogueSAXWithoutValidation.xml"); OutputFormat outputFormat=new OutputFormat("XML","ISO-8859-1",false); outputFormat.setIndent(0); XM
  4. Hello,I try to validate a DOM Document using: SchemaFactory factory=SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);Source schemaFile=new StreamSource("myschema.xsd");schema schema=factory.newSchema(schemaFile);Validator validator=schema.newValidator();validator.validate(new DOMSource(document)); I don't validate using the parse(File) method, because I already have a DOM Tree in memory.BUT now I receive the following error: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'catalogue'.at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseEx
  5. Hello,I have the same error:org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'catalogue'.at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)at org.apache.xerces.jaxp.val
  • Create New...