XSD/DTD for JSPX

Is there any XSD/DTD file for Java 5/6 so I can validate my JSPX code?

I presume you're speaking of the XML Doclet at:
http://www.sun.com/xml/developers/doclet/
There may be one internally; the engineer no
longer works at Sun, so it may take some tracking down.
I'll see if I can find it.
-Doug Kramer
Javadoc team

Similar Messages

  • XSDs/DTDs for BI reports xml

    In Oracle BI Answers, in the Advanced tab, it’ possible to see / define the XML (saw:criteria, saw:columns, saw:views etc).
    The saw:report root node defines two Siebel XML namespace :
    xmlns:saw=”com.siebel.analytics.web/report/v1″
    xmlns:sawx=”com.siebel.analytics.web/expression/v1″
    Do you, by any chance, have a clue where those schemas are documented or where can one find the XSDs/DTDs?
    Thx
    Suneesh

    Please post the details of the application release, database version and OS.
    I am having a situation where the XML Publisher is producing XML output vs. PDF output for a particular report. It is generating PDF output just fine for other reports. Can you please shed some light as to the possible cause(s) for this? I would really appreciate it!What is the difference between this report and other reports?
    Please see old threads for similar discussion -- https://forums.oracle.com/forums/search.jspa?threadID=&q=XML+ANd+Publisher+AND+PDF+AND+Output&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • XSD or DTD for either CHTMLB or THTMLB?

    Does SAP provide either XSDs or DTDs for CHTMLB  and THTMLB? It would sure make editing of the view pages a lot easier.
    If so, where can they be obtained?

    James,
    What do you mean you do not access to SAP XI?
    Why would you need the DTD of an IDoc if you are not using XI.  If you had XI you would convert your IDoc to another format.
    In SAP R/3 go to transaction WE60.  Select the IDoc you are interested in and select from the menus
    Documentation -> Create DTD.
    Then you can save the DTD of the IDoc on your PC.
    Hope this helps.
    Regards,
    Simon

  • DTD and XSD Validation for xml file

    hi kindly reply to this mail guru'ssss
    i am facing a problem in parising a xml file against dtd and xsd.
    i have the dtd which contains only enitities that can be present in the xml file and the xsd file for validation against elements and attribute.
    when DTD is present then it is throwing errors like the elements should be declared.
    when i take out the doctype line and validate against schema its throwing the error that particular entity is not found or declared.
      public Vector validateSchema(String SchemaUrl, String XmlDocumentUrl)  
          SAXParser parser =new SAXParser();
         try{
             //parser.setNamespaceAware (true);     
             //parser.s
             parser.setFeature("http://xml.org/sax/features/validation",true);
             parser.setFeature("http://apache.org/xml/features/validation/schema",true);
             parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
            // parser.setProperty("http://xml.org/sax/properties/declaration-handler", new DTDHandl());
             parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",SchemaUrl);
            // parser.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
            // System.out.println(parser.getDTDHandler());
            // UnparsedCache cache = new UnparsedCache();
           //  parser.setDTDHandler(cache);
             InputSource inputSource =new InputSource(new java.io.FileInputStream(new java.io.File(XmlDocumentUrl)));
           //  parser.setDTDHandler(new myDTDHandler());
             //parser.setEntityResolver(new CustomResolver());
         //  parser.setContentHandler(this);
             Validator handler=new Validator();
             parser.setErrorHandler(handler); 
             parser.parse(inputSource);
             if(handler.validationError==true)
               System.out.println("XML Document is not valid");
             else                  
               System.out.println("XML Document is valid");
             for(int i=0;i<ErrorLines.size();i++){
                 System.out.println(ErrorLines.elementAt(i));
       }catch(java.io.IOException ioe){  
         System.out.println("IOException"+ioe.getMessage());   
       }catch (SAXParseException e) {
         System.out.println("SAXParseException "+e.getMessage());   
      }catch (SAXException e) {
         System.out.println("SAXException"+e.getMessage());   
         return ErrorLines;
    what could be soln to this.

    Hi
    Venky_Ferrari.
    Based on your description, your case related to XMLXSD, SO I will move your thread to
    Data Platform Development > XML, System.Xml, MSXML and XmlLite      
    forum for better support.
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • DTD for deployment  xml file for providers

    Hi all,
    where can I find the DTD for the deployment file that is to be used in .par file for the custom providers for Portal Server 6.0 and 6.2. ?
    Thanks,
    Klara

    in case you mean portlets then it is:
    portlet.xsd contains reference to http://www.w3.org/2001/xml.xsd.
    in case you mean providers, e.g. smpleMailservice:
    /ps-base/SUNWam/dtd/sms.dtd
    or
    /ps-base/SUNWam/dtd
    with all the named dtd's
    cheers,
    Ulf

  • How to parse XML against XSD,DTD, etc.. locally (no internet connection) ?

    i've searched on how to parse xml against xsd,dtd,etc.. without the needs of internet connection..
    but unfortunately, only the xsd file can be set locally and still there needs the internet connection for the other features, properties.
    XML: GML file input from gui
    XSD: input from gui
    javax.xml
    package demo;
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.xml.XMLConstants;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.validation.Schema;
    import javax.xml.validation.SchemaFactory;
    import javax.xml.validation.Validator;
    import org.xml.sax.SAXException;
    public class Sample1WithJavaxXML {
         public static void main(String[] args) {
              URL schemaFile = null;
              try {
                   //schemaFile = new URL("http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd");
                   File file0 = new File("AppSchema-C01-v1_0.xsd");
                   schemaFile = new URL(file0.toURI().toString());
              } catch (MalformedURLException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              //Source xmlFile = new StreamSource(new File("web.xml"));
              Source xmlFile = new StreamSource(new File("C01.xml"));
              SchemaFactory schemaFactory = SchemaFactory
                  .newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
              //File file1 = new File("XMLSchema.dtd");
              //SchemaFactory schemaFactory = SchemaFactory
                   //.newInstance("javax.xml.validation.SchemaFactory:XMLSchema.dtd");
              Schema schema = null;
              try {
                   schema = schemaFactory.newSchema(schemaFile);
              } catch (SAXException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              Validator validator = schema.newValidator();
              try {
                validator.validate(xmlFile);
                System.out.println(xmlFile.getSystemId() + " is valid");
              } catch (SAXException e) {
                System.out.println(xmlFile.getSystemId() + " is NOT valid");
                System.out.println("Reason: " + e.getLocalizedMessage());
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }Xerces
    package demo;
    import java.io.File;
    import java.util.Date;
    import org.apache.xerces.parsers.DOMParser;
    public class SchemaTest {
         private String xmlFile = "";
         private String xsdFile = "";
         public SchemaTest(String xmlFile, String xsdFile) {
              this.xmlFile = xmlFile;
              this.xsdFile = xsdFile;
         public static void main (String args[]) {
              File file0 = new File("AppSchema-C01-v1_0.xsd");
              String xsd = file0.toURI().toString();
              SchemaTest testXml = new SchemaTest("C01.xml",xsd);
              testXml.process();
         public void process() {
              File docFile = new File(xmlFile);
              DOMParser parser = new DOMParser();
              try {
                   parser.setFeature("http://xml.org/sax/features/validation", true);
                   parser.setFeature("http://apache.org/xml/features/validation/schema", true);
                   parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
                             xsdFile);
                   ErrorChecker errors = new ErrorChecker();
                   parser.setErrorHandler(errors);
                   System.out.println(new Date().toString() + " START");
                   parser.parse(docFile.toString());
              } catch (Exception e) {
                   System.out.print("Problem parsing the file.");
                   System.out.println("Error: " + e);
                   System.out.println(new Date().toString() + " ERROR");
                   return;
              System.out.println(new Date().toString() + " END");
    }

    Thanks a lot Sir DrClap..
    I tried to use and implement the org.w3c.dom.ls.LSResourceResolver Interface which is based on the SAX2 EntityResolver.
    please give comments the way I implement it. Here's the code:
    LSResourceResolver Implementation
    import org.w3c.dom.ls.LSInput;
    import org.w3c.dom.ls.LSResourceResolver;
    import abc.xml.XsdConstant.Path.DTD;
    import abc.xml.XsdConstant.Path.XSD;
    public class LSResourceResolverImpl implements LSResourceResolver {
         public LSResourceResolverImpl() {
          * {@inheritDoc}
         @Override
         public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI) {
              ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
              LSInput input = new LSInputImpl(publicId, systemId, baseURI);
              if ("http://www.w3.org/2001/xml.xsd".equals(systemId)) {
                   input.setByteStream(classLoader.getResourceAsStream(XSD.XML));
              } else if (XsdConstant.PUBLIC_ID_XMLSCHEMA.equals(publicId)) {
                   input.setByteStream(classLoader.getResourceAsStream(DTD.XML_SCHEMA));
              } else if (XsdConstant.PUBLIC_ID_DATATYPES.equals(publicId)) {
                   input.setByteStream(classLoader.getResourceAsStream(DTD.DATATYPES));
              return input;
    }I also implement org.w3c.dom.ls.LSInput
    import java.io.InputStream;
    import java.io.Reader;
    import org.w3c.dom.ls.LSInput;
    public class LSInputImpl implements LSInput {
         private String publicId;
         private String systemId;
         private String baseURI;
         private InputStream byteStream;
         private String stringData;
         public LSInputImpl(String publicId, String systemId, String baseURI) {
              super();
              this.publicId = publicId;
              this.systemId = systemId;
              this.baseURI = baseURI;
         //getters & setters
    }Then, here's the usage/application:
    I create XMLChecker class (SchemaFactory implementation is Xerces)
    import java.io.File;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.XMLConstants;
    import javax.xml.stream.FactoryConfigurationError;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.validation.Schema;
    import javax.xml.validation.SchemaFactory;
    import javax.xml.validation.Validator;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import abc.xml.XsdConstant.Path.XSD;
    public class XMLChecker {
         private ErrorMessage errorMessage = new ErrorMessage();
         public boolean validate(String filePath){
              final ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
              List<Source> schemas = new ArrayList<Source>();
              schemas.add(new StreamSource(classLoader.getResourceAsStream(XSD.XML_SCHEMA)));
              schemas.add(new StreamSource(classLoader.getResourceAsStream(XSD.XLINKS)));
              schemas.add(new StreamSource(classLoader.getResourceAsStream("abc/xml/AppSchema.xsd")));
              SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
              schemaFactory.setResourceResolver(new LSResourceResolverImpl());
              try {
                   Schema schema = schemaFactory.newSchema(schemas.toArray(new Source[schemas.size()]));
                   Validator validator = schema.newValidator();
                   validator.setErrorHandler(new ErrorHandler() {
                        @Override
                        public void error(SAXParseException e) throws SAXException {
                             errorMessage.setErrorMessage(e.getMessage());
                             errorMessage.setLineNumber(e.getLineNumber());
                             errorMessage.setColumnNumber(e.getLineNumber());
                             throw e;
                        @Override
                        public void fatalError(SAXParseException e) throws SAXException {
                             errorMessage.setErrorMessage(e.getMessage());
                             errorMessage.setLineNumber(e.getLineNumber());
                             errorMessage.setColumnNumber(e.getLineNumber());
                             throw e;
                        @Override
                        public void warning(SAXParseException e) throws SAXException {
                             errorMessage.setErrorMessage(e.getMessage());
                             errorMessage.setLineNumber(e.getLineNumber());
                             errorMessage.setColumnNumber(e.getLineNumber());
                             throw e;
                   StreamSource source = new StreamSource(new File(filePath));
                   validator.validate(source);
              } catch (SAXParseException e) {
                   return false;
              } catch (SAXException e) {
                   errorMessage.setErrorMessage(e.getMessage());
                   return false;
              } catch (FactoryConfigurationError e) {
                   errorMessage.setErrorMessage(e.getMessage());
                   return false;
              } catch (IOException e) {
                   errorMessage.setErrorMessage(e.getMessage());
                   return false;
              return true;
         public ErrorMessage getErrorMessage() {
              return errorMessage;
    }Edited by: erossy on Aug 31, 2010 1:56 AM

  • File Adapter - Native XSD - DTD to XSD

    Hello,
    a. I have to read a data file using file adapters, which is sent in the following pattern (dtd below):
    <?xml version="1.0" encoding="US_ASCII"?>
    <!DOCTYPE message SYSTEM "d3l.dtd">
    <message name="ITEM" type="ItemArray" object="ITEM_BO">
    <struct id="ItemRecord">
         <field name="Process_Flag"><limstring delimiter=";"/></field>
         <field name="Item_Number"><limstring delimiter="|"/></field>
         <field name="Attribute2"><limstring delimiter="|"/></field>
    </struct>
    <limarray id="itarray" contchar="*" endchar="!">
         <typeref type="ItemRecord"/>
    </limarray>
    <struct id="ItemArray">
         <field name="ItemLine"><typeref type="itarray"/></field>
    </struct>
    </message>
    b. whose sample data is as below:
    ;P;|00030||TEST1|*;P;|00040||TEST2|!
    c. I am now in the process of designing my native xsd:
    i. I can either use convert dtd to xsd (or)
    ii. create my own sample schema definition which is similar to the above data structure
    In step (i), I could not convert the dtd to xsd, due to reference to d3l.dtd file.
    If anyone can advise where this d3l.dtd file can be found and where I should place it in 'SOA' it would be really helpful.
    In step (ii), I find that through the wizard I am able to create simple csv file styles, but not able to create the above data structure due to different delimiters (; and |) and also due to delimiter-embedding of data.
    It would be really helpful if someone can advise on how I must proceed with this issue.
    Thanks,
    Santhosh

    Hello Ramana,
    As for step one, the 'd3l.dtd' is a file which all Oracle Interconnect DTDs look up to. I am not able to locate it.
    As for step two, the data file the structure is of the following pattern :
    i. entire data is in single line of the data file..
    ii. first element will be embedded with semi colon
    iii. the other elements inside pipes
    iv. end of record is indicated using *
    v. end of file is indicated using !
    These are the rules based on which the data file is built.
    I don't have much experience in creating xsd (except for simple native xsds that I have created using the native xsd wizard of Jdev-BPEL).
    Using the native XSD wizard that is available with JDev-BPEL, I trust I cannot create complex data structure which is of the above pattern.
    If there is a good tool/method through which I can create the xsd as per the above listed rule structure, please advise.
    Thanks,
    Santhosh

  • Data Integrator import XSD / DTD error

    Hi experts,
    Really need your help here!  I am trying to import an XSD or DTD schema into BODI.  I have both the XSD and DTD which I generated from the XML source file, using Altova XMLSpy.  BODI is allowing me to select the root element, but when I run the import, the memory usage on my PC against the BODI service goes to 1.5Gb, after which the following error is returned:
    Unknown error when importing metadata. (BODI-1112416)
    When I clear this error and try any other operations in the DI Designer I get out of memory errors and I have to close down the application and restart.  I am running a 4Gb RAM, Intel Core Duo, Windows 7 laptop.  I suspect the XSD / DTD structure is simply to large for BODI to parse.  The XSD and DTD is about 500Kb in size and contain over 16000 rows when viewed in a text editor!
    Any suggestions on how to process this XML in BODI will be greatly appreciated.
    Regards,
    Johann

    Hi,
    replace choice with sequence
    <b><xsd:complexType>
         <xsd:choice>
              <xsd:element name = “A” type=”xsd:string” />
              <xsd:element name= B” type=”xsd:string” maxOccurs=”unbounded” />
         </xsd:choice>
    </xsd:complexType></b>
    is handled identical to
    <b><xsd:complexType>
         <xsd:sequence>
              <xsd:element name = “A” type=”xsd:string” minOccurs=”0” />
              <xsd:element name= B” type=”xsd:string”
    minOccurs=”0” maxOccurs=”unbounded” />
         </xsd:sequence>
    </xsd:complexType></b>
    Regards
    Tarun Telang

  • Where to find the DTDs for 10.1.2.0.0

    Hi,
    where can I find the DTDs for the oc4j config files?
    In the default server.xml I found "http://xmlns.oracle.com/ias/dtds/application-server-9_04.dtd" but in the same xml file I found the following element which I cannont find in the 9_04.dtd.
    <j2ee-logging-config path="./j2ee-logging.xml" />
    Thanks for your help
    Günther

    Here's the j2ee-logging elements from the 10.1.2 DTD
    <!-- j2ee-logging config -->
    <!ELEMENT j2ee-logging-config (#PCDATA)>
    <!ATTLIST j2ee-logging-config path CDATA #IMPLIED
    <!ELEMENT application-server (library*, rmi-config?, sep-config?, jms-config?, javacache-config?, j2ee-logging-config?, principals?, log?, java-compiler?, transaction-config?, global-application, application*, global-web-app-config?, max-http-connections?, web-site*, global-thread-pool?, compiler?, metric-collector?, cluster? )>
    The j2ee-logging.xml file doesn't appear to have a DTD or XSD defined for it.
    cheers
    -steve-

  • Standard XSD / DTD definitions

    Are there any standard XSD / DTD definitions that represents open interface tables, if so how to extract those.

    Hi Sravan,
    Thanks for your valuable input,
    Actually when we unarchive any SAP standard repository, under XML Schema Table we will have few SAP Standard .XSD files, this files we cannot download it from console.., But I am sure we can get this .xsd files from Service Market place or through SAP Notes.
    if you have any idea about where to get this Standard .xsd files..
    For more information could you please refer to the below link.
    Re: XSD and Port
    Thanks
    Bharat

  • Location of dtd for weblogic 92 for weblogic.xml

    Hi:
    Can anybody gives me the location of the dtd for the weblogic.xml file for weblogic 92.
    I can't seem to find it on google.
    Yours,
    Frustrate
    Edited by jadeite100 at 03/23/2007 6:59 AM

    In 9.x there are no DTDs as everything is now schema based. You can find the schemas here:http://www.bea.com/ns/weblogic/90/**.xsd
    So for your weblogic.xml for your weblogic-web-app you can find the xsd at:
    http://www.bea.com/ns/weblogic/90/weblogic-web-app.xsd
    Hope this helps!
    -Jesus

  • How to create xsd's for each table in repository instead of entire repos

    Hi Gurus,
    Is there any way i could create xsd's for each table in the repository separately instead of creating single xsd file from "Export repository schema" option which creates a single xml file for the entire repository.I need to create xsd for each table in repository...
    Any Help greatly appreciated
    Thanks
    Aravind

    Open the Lookup table you want the XSD for, in Data manger
    Export it to access.( You can select all the fields you want to export to access and then check option "open Access after export")
    Now in Access, again right click the table and export it to XML.
    Provided you have .NET frame work installed on the machine where you are doing this export, you can do the following:
    Use XSD.exe from command prompt and get the XSD.
    Use the following link as a reference for XSD stuff.
    http://msdn.microsoft.com/en-us/library/x6c1kb0s(VS.71).aspx
    (OR)
    Get the whole XML of the repository and distill the whole structure for Lookups and create XSD using any standard XML editor.

  • DTD for config.xml is this accurate.

    Where is the current DTD for the config.xml. The one I copied from the bea web site
    seems inconsistent with the config.xml generated when I did the installation. I
    tried using it with XEmacs and psgml. It didn't like the attributes in the Domain
    tag. Perhaps I am doing something wrong, it's been known to happen. Before I start
    trying to debug this on my side, I'd like to know if I have the correct DTD. Can
    some one clarify this for me?
    STH

    Deepak Vohra <[email protected]> wrote:
    Steven,
    The config.xml DTD :
    http://edocs.bea.com/wls/docs70/config_xml/configdtd.html#111643
    Deepak
    Thanks Deepak,
    That generates errors when I open it in Tibco's Schema Editor. For one it didn't
    like the '(Deprecated)' strings. There were a few values assigned as default, which
    were not in the list of constraints, and, perhaps a couple of other reported errors.
    Also, once I fixed up the few error I encountered in the DTD, I found errors in
    the config.xml generated by WL 7.0. For example there are attributes in the xml
    file which are not in the DTD. One of these is "Deployed" in the "Application" Element.
    Methinks something is amiss here.
    STH

  • Please add XSD Schema for validating TLF data in TLF 3.0

    It would be very beneficial to have a XSD schema for validating TLF data.  Please add this to TLF 3.0.  There are a couple of posts where others have already asked for this...
    http://forums.adobe.com/message/2795099#2795099
    http://forums.adobe.com/message/2223205
    Thanks!

    Sure Gang!
    We could use the XML schema to validate the TLF markup that we are generating from our publishing system.  We generate XML files which include the TLF markup and a XML schema would be very beneficial to validate that markup to make sure we are doing everything right.

  • I need binary dtd for html 4.0 (urgent)

    Hello,
    well i need to parse the html pages and for that i need binary dtd for html version 4.0 or 4.01, so if anyone of u could help me out then i will be very thankfull to u. if u know any parser which could convert the dtd into it's binary format then please let me know.
    thanks in anticipation

    Well the file avaliable at w3c.org's site is having extension .dtd but what i am looking for is binary dtd which will have an extension of .bdtd, if anyone will let me know about the conversion of dtd file into binary dtd , i will be very thankfull to him.
    i want to use it parsing html with the help of javax.swing.text.html and we could only pass binary dtd as a parameter for parsing html. it has default binary dtd of html 3.2 but i need for html 4.0 so either i have to convert dtd to binary format or i need dtd with extension of .bdtd

Maybe you are looking for

  • Unable to update apps after converting iTunes account from UK to SG

    Hello all, I have contacted support ([email protected]), and after being served by countless support staff, none could really explain to me what I should/could do. All they have done after understanding my problem is to point me to "iTunes Feedback p

  • Can't Post Journals to GL

    Yesterday we were able to post Journals to GL and today we can't. We are running 11.5.10. Yesterday I shut off and restarted notification mailers. I am not aware of any other changes that may have occurred. This is the log from the failed Posting. Ge

  • Can't find JDK on MAC OS X (10.7.2)

    Hi, I Can't find JDK on MAC OS X (10.7.2) I have heard it comes preinstalled but i have also heard that they have stopped it coming preinstalled with lion. If this is the case where is the offical java JDK download for MAC OS X (10.7.2) Thanks

  • Contacts sync from Google to Mac but not from Mac to Google... only one direction!

    I initially synced google to my mac and it worked fine. I set up the sync in the mail app. Under contacts preferences, I picked the "on My Mac" and clicked sync with google. Everything In google continues to sync to my mac.  But if I add something to

  • Inbound idoc failure(vendor invoice not posted)

    Hi All, we have two SAP systems. SAP A and SAP B. SAP A is the vendor for SAP B system we have created a sales order/delivery/out bound invoice in SAP A system.The sales order has BOM material with main item and sub items. We have the same material m