XML (DTD) and Reports6i

What's at the bottom of Oracle's statement Reports6i reads DTD?
Has anybody ever tested this feature?
What's the purpose of this?
Let us talk about it!

Yep, I noticed it too. I used DTD, of course.
"Nick Minutello" <[email protected]> wrote
in message news:[email protected]..
>
>
There seems to be a discrepancy between the DTD for theweblogic-ejb-jar.xml file
and the WLS7 documentation: Which source of information should I treat as
For example, the WLS7 documentation contains no information on the<idempotent-methods>
element (and its child elements)
(There is also a (larger) discrepancy between the weblogic-application.xmlDTD and
the docs - I will post that Q under application deployment)
Regards,
Nick

Similar Messages

  • Discrepancy between weblogic-ejb-jar.xml DTD and documentation

    There seems to be a discrepancy between the DTD for the weblogic-ejb-jar.xml file
    and the WLS7 documentation: Which source of information should I treat as
    For example, the WLS7 documentation contains no information on the <idempotent-methods>
    element (and its child elements)
    (There is also a (larger) discrepancy between the weblogic-application.xml DTD and
    the docs - I will post that Q under application deployment)
    Regards,
    Nick

    Yep, I noticed it too. I used DTD, of course.
    "Nick Minutello" <[email protected]> wrote
    in message news:[email protected]..
    >
    >
    There seems to be a discrepancy between the DTD for theweblogic-ejb-jar.xml file
    and the WLS7 documentation: Which source of information should I treat as
    For example, the WLS7 documentation contains no information on the<idempotent-methods>
    element (and its child elements)
    (There is also a (larger) discrepancy between the weblogic-application.xmlDTD and
    the docs - I will post that Q under application deployment)
    Regards,
    Nick

  • OC4J and Local (system) XML DTD files

    I am in a situation where I am deploying a web application to an instance of 10.1.2 that is on a public-facing box that does not have the ability to access the outside world via the web due to security restrictions.
    When I start the application, I'm getting connection refused errors because the XML parser is trying its hardest to validate the XML files for Spring and MyFaces by remotely fetching the DTD file. Is there a way I can get the application to read a local copy of the DTD without having to hard code a full path to the file?
    I've tried changing the doctype declaration for MyFaces to look like this:
    <!DOCTYPE faces-config SYSTEM "web-facesconfig_1_0.dtd">And I put the DTD in the same directory as the XML configuration file (in the WEB-INF directory). Eclipse seems to like that ok, but when I deploy that to 10.1.2, I get the following exception:
    javax.faces.FacesException: java.net.MalformedURLException: no protocol: web-facesconfig_1_0.dtd
         at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:123)
         at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)
         at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1009)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
         at com.evermind.server.Application.getHttpApplication(Application.java:890)
         at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
         at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
         at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
         at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
         at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
         at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.net.MalformedURLException: no protocol: web-facesconfig_1_0.dtd
         at java.net.URL.<init>(URL.java:567)
         at java.net.URL.<init>(URL.java:464)
         at java.net.URL.<init>(URL.java:413)
         at oracle.xml.parser.v2.NonValidatingParser.pushExternalDTD(NonValidatingParser.java:543)
         at oracle.xml.parser.v2.NonValidatingParser.parseDoctypeDecl(NonValidatingParser.java:468)
         at oracle.xml.parser.v2.NonValidatingParser.parseProlog(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:280)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)
         at org.apache.commons.digester.Digester.parse(Digester.java:1548)
         at org.apache.myfaces.config.impl.digester.DigesterFacesConfigUnmarshallerImpl.getFacesConfig(DigesterFacesConfigUnmarshallerImpl.java:183)
         at org.apache.myfaces.config.FacesConfigurator.feedWebAppConfig(FacesConfigurator.java:387)
         at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:120)
         ... 14 moreI've tried variations like ./filename.dtd and ../filename.dtd to no avail. I'm sure I'm missing something fundamental here, but how can I get OC4J to read my local DTD?
    Thanks in advance!

    Avi, you're right, the parser is indeed wanting a real URL. So here's what I've done. I replaced the dtd filename with the complete path to the file, so it looks like this:
    <pre>
    <!DOCTYPE faces-config SYSTEM "file:///C:/path/to/dtd/web-facesconfig_1_0.dtd">
    </pre>
    I deployed, started the app, and it worked. This doesn't really feel like the right solution, however, because I'm going to have to rely on a hardcoded file location for the DTD on our production server. If our admins change that, then I'm out of luck and would have to redeploy the application. Does anyone know if there is a way to get this to be more relative?
    One idea that someone gave me was to put the DTD files in a web-accessible location in the application and reference via http:// instead of file://. At least that way I wouldn't be dependent on the file system. I'd still have to hardcode a URL so I couldn't use the same files for all our development environments, but it might be a slightly cleaner solution. Another possible (yet really ugly) solution is to inline the DTD's in the XML file.
    Asanka, I'm not quite sure I follow what you said. Where would I put such code to use Xerxes? In a servlet loaded on init?
    Thanks for the help so far, everyone.

  • Java and XML DTD

    is it possible to do the following:
    i have three values in an object. Instead of explicitly building an XMLDocument and a node for each value, can i simply define a DTD and say "heres 3 values .. heres the DTD, now build my XML Document"?
    thanks,
    hande.

    XML Generator is a tool that can generate valid XML test cases from a DTD, which can be used to test XML applications automatically. The generated XML can be configured.
    http://www.alphaworks.ibm.com/tech/xmlgenerator

  • 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.

  • Reading XML file and skip certain elements/attributes??

    Hi folks!
    Suppose I have a XML file looking like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE dvds SYSTEM "DTDtest.dtd">
    <dvds>
    <dvd>
    <title>
    Aliens
    </title>
    <director>
    James Cameron
    </director>
    <format>
    1.85:1
    </format>
    </dvd>
    <dvd>
    <title>
    X-Men
    </title>
    <director>
    Bryan Singer
    </director>
    <format>
    2.35:1
    </format>
    </dvd>
    </dvds>
    In my Java application I want to read this XML file and print it on the screen (including all tags etc). So far, so good. BUT, if I want to skip certain elements, i.e. all information about the dvd 'X-Men', how am I supposed to do this? In other words, I would like my app to skip reading all information about X-Men and continue with the next <dvd>... </dvd> tag. Is this possible?
    My code so far is from the XML tutorial from Sun and it looks like this:
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    public class MyXML extends DefaultHandler
    public static void main(String argv[]) {
    if (argv.length != 1) {
    System.err.println("Usage: cmd filename");
    System.exit(1);
    // Use an instance of ourselves as the SAX event handler
    DefaultHandler handler = new MyXML();
    // Use the default (non-validating) parser
    SAXParserFactory factory = SAXParserFactory.newInstance();
    try {
    // Set up output stream
    out = new OutputStreamWriter(System.out, "UTF8");
    // Parse the input
    SAXParser saxParser = factory.newSAXParser();
    saxParser.parse( new File(argv[0]), handler);
    } catch (Throwable t) {
    t.printStackTrace();
    System.exit(0);
    static private Writer out;
    //===========================================================
    // SAX DocumentHandler methods
    //===========================================================
    public void startDocument()
    throws SAXException
    emit("<?xml version='1.0' encoding='UTF-8'?>");
    nl();
    public void endDocument()
    throws SAXException
    try {
    nl();
    out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    * <p>This method prints the start elements including attr.
    * @param namespaceURI
    * @param lName
    * @param qName
    * @param attrs
    * @throws SAXException
    public void startElement(String namespaceURI,
    String lName, // local name
    String qName, // qualified name
    Attributes attrs)
    throws SAXException
    String eName = lName; // element name
    if ("".equals(eName)) eName = qName; // namespaceAware = false
    emit("<"+eName);
    if (attrs != null) {
    for (int i = 0; i < attrs.getLength(); i++) {
    String aName = attrs.getLocalName(i); // Attr name
    if ("".equals(aName)) aName = attrs.getQName(i);
    emit(" ");
    emit(aName+"=\""+attrs.getValue(i)+"\"");
    emit(">");
    public void endElement(String namespaceURI,
    String sName, // simple name
    String qName // qualified name
    throws SAXException
    emit("</"+qName+">");
    * <p>This method prints the data between 'tags'
    * @param buf
    * @param offset
    * @param len
    * @throws SAXException
    public void characters(char buf[], int offset, int len)
    throws SAXException
    String s = new String(buf, offset, len);
    emit(s);
    //===========================================================
    // Utility Methods ...
    //===========================================================
    // Wrap I/O exceptions in SAX exceptions, to
    // suit handler signature requirements
    private void emit(String s)
    throws SAXException
    try {
    out.write(s);
    out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    // Start a new line
    private void nl()
    throws SAXException
    String lineEnd = System.getProperty("line.separator");
    try {
    out.write(lineEnd);
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    Sorry about the long listing... :)
    Best regards
    /Paul

    A possibility that comes to mind is to create an XSLT script to do whatever it is you want - and call it from inside the program. The XSLT script can be stashed inside your .jar file by using getClass().getClassLoader().getResource("...")
    - David

  • Want to include ?xml tag and  schema when creating XML

    My database table that need to be generated in to XML are large and therefore I must use OracleXMLQuery.getXMLSAX . The output is missing the <?xml version="1.0" ?> tag. How do I get it? I am on 9i but have imported the .jar containing oracle/xml/parser/v2/XMLSAXSerializer from 10g XDK.
    Also, I want the schema to be written next, before the actual XML table values.
    I know that a command line parameter exists, which works for small XML files:
    java oraclexml getxml -user "scott/tiger" -withDTD "select ....
    How do I get the equivalent of '"-withDTD" when using
         OracleXMLQuery qry = new OracleXMLQuery(conn, "select * from "+table_name );
         qry.getXMLSAX(myStream);
         myStream.flush();
    Thank you,
    Elaine

    No. Actually, I can get the <?xml tag and DTD if my select statement contains 'where rownum=0', as the resultset is small which lets me use getXMLMetaData() .
    I write it to one output file, then do another OracleXMLQuery, repeating the select statement without the where clause, and run that through getXMLSAX to get the detail.
    Next, I need to scrub the data of special characters acceptable in the database but which cause problems to a browser or XML validator. (e.g. accented characters).
    Finally, I will concatente the two files.
    Is there a simpler way to do this?
    Thanks,
    Elaine

  • XML stream and stored as an output XML file

    Dear ALL,
    Could you help me in such situation?
    I need create XML file. I have DTD file. I create XML stream and stored as an output XML file. But all the data of my XML file stored in one line.
    How I can create my XML file according to DTD file?
    Thanks a lot.
    Best regards,
    Igor

    hi
    good
    go through this links,hope these would help you to solve your problem
    http://rustemsoft.com/JSPsample.htm
    http://publib.boulder.ibm.com/infocenter/wsphelp/index.jsp?topic=/com.ibm.etools.xmlbuilder.doc/tasks/txmltask.htm
    thanks
    mrutyun^

  • XML/DTD to be converted to XSD

    Hi ,
    I have requirement that i am getting xml file as input which i need to read through inbound file adaptor and write another delimited file.
    The challenge i am facing is i am not able to transmit xml file to xsd file trough native format builder.
    Can you please provide solution for generating xsd file for xml files.
    Note: There is format type called "DTD to be converted to XSD" under native format builder wizard.Is it like that first we need to convert xml to DTD then XSD?
    If so can you please geve me small example of demonstrating these steps,because whenever i try with sample dtd file i am getting error: "No element found in DTD Specified"
    My sample file "note.dtd" is <?xml version="1.0"?>
    <!DOCTYPE note [
    <!ELEMENT note (to,from,heading,body)>
    <!ELEMENT to (#PCDATA)>
    <!ELEMENT from (#PCDATA)>
    <!ELEMENT heading (#PCDATA)>
    <!ELEMENT body (#PCDATA)>
    ]>
    <note>
    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>Don't forget me this weekend</body>
    </note>
    Thanks in advance.

    U can use Document Editor tool to convert XML file to DTD. The steps are
    File-->Import-->Chose DTD from XML file option and give ur file as input-->It will convert ur XML file into ECS file-->File-->Export-->select XML DTD option and this will convert the ECS file to DTD file
    U can use BPEL to convert DTD file to XSD. The steps are
    Tools-->Convert DTD to XSD and give ur DTD file as Input-->It will convert ur DTD file to XSD file
    I hope it will help.
    Thanks,
    Saravana
    Edited by: user10635261 on Nov 20, 2008 9:41 AM

  • Error: Java trying to grab DTD and I don't want it to

    I have a problem. For my class we are writing a SAX application that reads in an Amazon.com XML file and tries to find the lowest price. The Amazon file is the result of a query to Amazon's database which has been saved to the hard drive (so it's not being grabbed in Java over the web). We are using SAX for this project and I started out by writing a very basic program that simply just notifies when it reaches the beginning/end of a tag just to make sure it's reading the XML file just fine. It runs great when I'm connected to the internet. However, when I'm not connected to the net I get the following error.
    ======================================================================
    java.net.UnknownHostException: xml.amazon.com
         at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
         at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2870)
         at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:281)
         at Test.main(Test.java:22)
    Exception in thread "main"======================================================================
    I think it's trying to grab the DTD, but I'm not sure. Anyway, my code is extremely basic. Here's what I have:
    ======================================================================
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import java.io.*;
    public class Test extends DefaultHandler
      public static void main(String args[]) throws Exception
        if (args.length == 0)
          System.err.println("Usage: Test <xmlfile>");
        return;
        SAXParserFactory factory = SAXParserFactory.newInstance();
        factory.setNamespaceAware(false);
        factory.setValidating(false);
        SAXParser parser = factory.newSAXParser();
        Test t = new Test();
        parser.parse(new File(args[0]), t);
      public void startDocument()
        System.out.println("At the start of the document");
      public void startElement(String uri, String name, String qName, Attributes attrs)
        System.out.println("Found start element: " + name);
      public void endElement(String uri, String name, String qName)
        System.out.println("Found end element: " + name);
      public void endDocument()
        System.out.println("At the end of the document");
    }======================================================================
    I cannot turn to the teacher for help as he is just a GTF and doesn't really understand this stufff himself. He just shrugs and says it works on his machine. Anyway, how do I get it so that it will work when not connected to the internet? All I want it to do is read through the XML file. I don't need any validation or anything like that.
    If it makes a difference I am using JDK 1.4.

    Here's a sample file from an Amazon query:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ProductInfo PUBLIC "-//Amazon.com //DTD  Amazon Product Info//EN" "http://xml.amazon.com/schemas/dev-lite.dtd">
    <ProductInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xml.amazon.com/schemas/dev-lite.xsd">
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0672321815">
          <Asin>0672321815</Asin>
          <ProductName>Building Web Services with Java: Making Sense of XML, SOAP, WSDL and UDDI</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Steve Graham</Author>
             <Author>Simeon Simeonov</Author>
             <Author>Toufic Boubez</Author>
             <Author>Glen Daniels</Author>
             <Author>Doug Davis</Author>
             <Author>Yuichi Nakamura</Author>
             <Author>Ryo Neyama</Author>
          </Authors>
          <ReleaseDate>12 December, 2001</ReleaseDate>
          <Manufacturer>Sams</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0672321815.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0672321815.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0672321815.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$49.99</ListPrice>
          <OurPrice>$34.99</OurPrice>
          <UsedPrice>$32.49</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0596001975">
          <Asin>0596001975</Asin>
          <ProductName>Java & XML, 2nd Edition: Solutions to Real-World Problems</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Brett McLaughlin</Author>
          </Authors>
          <ReleaseDate>September, 2001</ReleaseDate>
          <Manufacturer>O'Reilly & Associates</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0596001975.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0596001975.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0596001975.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$44.95</ListPrice>
          <OurPrice>$31.47</OurPrice>
          <UsedPrice>$31.00</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/1861004370">
          <Asin>1861004370</Asin>
          <ProductName>Beginning Java Databases: JDBC, SQL, J2EE, EJB, JSP, XML</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Kevin Mukhar</Author>
             <Author>Todd Lauinger</Author>
             <Author>John Carnell</Author>
          </Authors>
          <ReleaseDate>August, 2001</ReleaseDate>
          <Manufacturer>Wrox Press Inc</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/1861004370.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/1861004370.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/1861004370.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$39.99</ListPrice>
          <OurPrice>$27.99</OurPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0789725037">
          <Asin>0789725037</Asin>
          <ProductName>Special Edition Using Java 2 Enterprise Edition (J2EE): With JSP, Servlets, EJB 2.0, JNDI, JMS, JDBC, CORBA, XML and RMI</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Mark Wutka</Author>
          </Authors>
          <ReleaseDate>08 May, 2001</ReleaseDate>
          <Manufacturer>Que</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0789725037.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0789725037.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0789725037.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$49.99</ListPrice>
          <OurPrice>$34.99</OurPrice>
          <UsedPrice>$12.85</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0789722755">
          <Asin>0789722755</Asin>
          <ProductName>Domino 5 Web Programming with XML, Java, and JavaScript</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Randall A. Tamura</Author>
             <Author>Randy Tamura</Author>
          </Authors>
          <ReleaseDate>08 August, 2000</ReleaseDate>
          <Manufacturer>Que</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0789722755.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0789722755.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0789722755.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$49.99</ListPrice>
          <OurPrice>$34.99</OurPrice>
          <UsedPrice>$7.47</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0130851353">
          <Asin>0130851353</Asin>
          <ProductName>Enterprise Applications Integration with XML and Java</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>JP Morgenthal</Author>
          </Authors>
          <ReleaseDate>31 July, 2000</ReleaseDate>
          <Manufacturer>Prentice Hall PTR</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0130851353.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0130851353.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0130851353.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$44.99</ListPrice>
          <OurPrice>$31.49</OurPrice>
          <UsedPrice>$3.75</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0596002785">
          <Asin>0596002785</Asin>
          <ProductName>Java and XML Data Binding</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Brett McLaughlin</Author>
          </Authors>
          <ReleaseDate>May, 2002</ReleaseDate>
          <Manufacturer>O'Reilly & Associates</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0596002785.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0596002785.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0596002785.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$34.95</ListPrice>
          <OurPrice>$24.47</OurPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0764516582">
          <Asin>0764516582</Asin>
          <ProductName>Java & XML for Dummies</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Barry Burd</Author>
          </Authors>
          <ReleaseDate>15 June, 2002</ReleaseDate>
          <Manufacturer>John Wiley & Sons</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0764516582.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0764516582.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0764516582.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$29.99</ListPrice>
          <OurPrice>$20.99</OurPrice>
          <UsedPrice>$20.46</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/0201770040">
          <Asin>0201770040</Asin>
          <ProductName>XML and Java: Developing Web Applications (2nd Edition)</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Hiroshi Maruyama</Author>
             <Author>Andy Clark</Author>
             <Author>Makoto Murata</Author>
             <Author>Naohiko Uramoto</Author>
             <Author>Kent Tamura</Author>
             <Author>Yuichi Nakamura</Author>
             <Author>Ryo Neyama</Author>
             <Author>Kazuya Kosaka</Author>
             <Author>Satoshi Hada</Author>
          </Authors>
          <ReleaseDate>13 May, 2002</ReleaseDate>
          <Manufacturer>Addison Wesley Professional</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/0201770040.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/0201770040.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/0201770040.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$49.99</ListPrice>
          <OurPrice>$34.99</OurPrice>
          <UsedPrice>$25.00</UsedPrice>
       </Details>
       <Details url="http://www.amazon.com/exec/obidos/redirect?tag=webservices-20%26creative=D17NVA66ANOQWJ%26camp=2025%26link_code=xm2%26path=ASIN/186100401X">
          <Asin>186100401X</Asin>
          <ProductName>Professional Java XML</ProductName>
          <Catalog>Book</Catalog>
          <Authors>
             <Author>Kal Ahmed</Author>
             <Author>Sudhir Ancha</Author>
             <Author>Andrei Cioroianu</Author>
             <Author>Jay Cousins</Author>
             <Author>Jeremy Crosbie</Author>
             <Author>John Davies</Author>
             <Author>Kyle Gabhart</Author>
             <Author>Steve Gould</Author>
             <Author>Ramnivas Laddad</Author>
             <Author>Sing Li</Author>
          </Authors>
          <ReleaseDate>April, 2001</ReleaseDate>
          <Manufacturer>Wrox Press Inc</Manufacturer>
          <ImageUrlSmall>http://images.amazon.com/images/P/186100401X.01.THUMBZZZ.jpg</ImageUrlSmall>
          <ImageUrlMedium>http://images.amazon.com/images/P/186100401X.01.MZZZZZZZ.jpg</ImageUrlMedium>
          <ImageUrlLarge>http://images.amazon.com/images/P/186100401X.01.LZZZZZZZ.jpg</ImageUrlLarge>
          <ListPrice>$59.99</ListPrice>
          <OurPrice>$41.99</OurPrice>
          <UsedPrice>$41.00</UsedPrice>
       </Details>
    </ProductInfo>

  • DTD and XMLSchema usage in same application

    Hello,
    Is it possible to have both the Schema and DTD support within the same application using 9i.
    We have lot of DTD's already written (under use) and we are not ready to convert
    everything to Schema format right away.
    Thanks
    Raj

    Oracle XDKs support both DTD and XML Schema.

  • Adding XML Declaration and Document Type Declaration.

    I'm using Oracle's XML Class Generator C++ version 1.0.2.0.0. I can create classes from a defined external DTD and create my XML document. But the document does not contain the XML Declaration <?xml version='1.0?> nor does it contain the Document Type Declaration <!DOCTYPE root-element-name SYSTEM "system-identifier">. What do I need to do to get these as part of my XML document? Does the class generator have methods to do this? Could someone show me an example?

    If you invoke the print method on the top-level ELEMENT, you get
    just the body of the document with no DTD or XMLDecl. if you invoke
    print on the top level NODE (the DOCUMENT node), then the output
    document will contain the XMLDecl and DTD.
    So please try to print from DOCUMENT node.

  • Create XML stream and stored as an output XML file

    Dear ALL,
    Could you help me in such situation?
    I need create XML file. I have DTD file. I create XML stream and stored as an output XML file. But all the data of my XML file stored in one line.
    How I can create my XML file according to DTD file?
    Thanks a lot.
    Best regards,
    Igor

    hi
    good
    go through this links,hope these would help you to solve your problem
    http://rustemsoft.com/JSPsample.htm
    http://publib.boulder.ibm.com/infocenter/wsphelp/index.jsp?topic=/com.ibm.etools.xmlbuilder.doc/tasks/txmltask.htm
    thanks
    mrutyun^

  • XML DTD Validation

    Hello,
    In my application I need to perform some XML validation against an DTD file.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE Properties SYSTEM "MyFile.dtd">
    <Properties>
    <Property name="a" value="a1"/>
    </Properties> Both XML file and the DTD are located in the same folder.
    What I need, is to perform the XML validation against the DTD file from another location(more precisely, a DTD located in my application's jar) instead of the DTD from the same folder as XML file.
    The reason for this is because the remote DTD file is most probably outdated.
    This is how I do the validation curentlly:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(true);
    DocumentBuilder builder = factory.newDocumentBuilder();
    builder.setErrorHandler(new org.xml.sax.ErrorHandler()
    Document xmlDocument = builder.parse(destinationXMLFile.toURI().toString());
    DOMSource source = new DOMSource(xmlDocument);
    StreamResult result = new StreamResult(System.out);
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer transformer = tf.newTransformer();
    transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, "MyFile.dtd");
    transformer.transform(source, result);Someone any idea?
    Thanks,
    johnny

    Unusual but if you need this way your application just must to implement EntityResolver that always points to resource DTD.
    []s

  • A generic XML DTD

    Hi
         I am a newbie to XML and I have a question on XML/Java, hopefully, you guys would be able to give me some pointers to solve this problem.
         Here is the scenario. I need to design (might have to implement as well) a set of Java libraries that can retrieve data (basically, it's some kind of contents, it can be anything, more on this later) and base on the data I retrieved, I would generate a html file (which contains those contents and have the contents displayed).
         Those data (contents) I talked about earlier could be some news item, could be lottery results, could be a travel guide, could be anything. Those data would originally come from a XML file and then store into a database table. (or could just be in a file if there isn't much data). Either way, my programs should be able to read the data from the database/files and somehow "decrypt" it.
         Now, my problem is since the data could contain any kind of data, how do I define a DTD that is so generic that can treat all kinds of contents as the same. By that, I mean, e.g if it was a book review article, it might contain the book's name, the author, the review, the review date...etc, I would imagine that the DTD would contain tags like TITLE, AUTHOR, REVIEW DATE, REVIEW...etc. With all these data, they would be stored into a table, may be just a text field in that table. And then my programs would read from that field and break up those tags and display them accordingly (generate a html file) . But what if it is a lottery result, then the DTD that I defined earlier (for news) would not be applicable for the lottery result content. That means, in order to treat everything as just pure content, I can only have a tag, say content, and for the book review article, this tag would just wrap everything into itself (from the book's name, author....etc) and for the lottery results, the content tag would just contain the numbers. I must say, I have minimal XML knowledge, so please correct me if I am wrong here. But again, how would you define a DTD for such scenario? Is it possible to define such a DTD? Not to mention the style of the contents.......Please, I need help. THx
    ForeverJava
    anywhere else is a better place for XML forums?

    You certainly could water down a DTD to handle all of the different types of events that you are encountering. At this point though the DTD becomes so permissive that it is almost of no use.
    If you are using an XML parser to get at the data it will have to be well-formed. You might as well turn validation off, if the structure is so loose.
    Can you apply a different DTD based on the type of request that is coming back? For example if it's lotto results apply lotto.dtd if it's scores apply scores.dtd, etc.
    You could probably even wrap a root level around the entire document that is consistent and then require one of the data type (lotto, score, etc.) levels next and then proceed.
    Hopefully some of this makes sense-
    -Mike

Maybe you are looking for