Generation of XSD file from existing javax.xml.validation.Schema object

Hi all.
Is it possible to obtain the XML representation of Schema object - in other words, decompile it back to schema file, using standard API's?
Greatly appreciate any inputs,
Jabb

Hi all.
Is it possible to obtain the XML representation of Schema object - in other words, decompile it back to schema file, using standard API's?
Greatly appreciate any inputs,
Jabb

Similar Messages

  • How to create an XSD file from xml

    Hi,
    Is there any way to generated an XSD file from an already existing XML file.
    Does Jdeveloper 10g , has any feature to create the xsd file automatically?
    Please advice
    Regards

    Here are the steps I took to create an XSLT transformation in XI 3.0:
    1. I created my source and target XSDs using XMLSpy.
    2. I created the XSLT mapping from source to target in XMLSpy (referencing the souce XSD schema).
    3. I created another XSLT mapping to format the target into Excel XML.
    4. Import the source and target XSDs in the IR's External Definitions
    5. Zip each XSLT mapping (.xls) and import it into the IR's Imported Archives
    6. Reference the XSL mappings in the Interface Mapping

  • Automatic generation of PDF file from briefing book in OBIEE11g

    Hi all,
    Could anyone tell me if exist a way to generate PDF files from briefing books automatically in OBIEE11g?
    Thanks
    Annalisa

    I only got so far when I tried to do this in Windows. The problem comes when you try to tell the printer to print to a file with a particular name.
    The first steps are to get GhostWriter for Windows.
    Then you install the Apple LaserWriter pro 600 driver which can print to a postscript file (try it manually first). GhostWriter can then, with a command line command, using a java Process, convert that to a .pdf file.

  • Generating XSD files from an HTML form......

    What is the best way to generate XML Schema files from an HTML form? Are there any APIs, Frameworks, software products, that already do this for you? What is the best way to do this programmatically?
    I was thinking about using DOM...
    Any help and/or advice will be greatly appreciated...
    With thanks,
    Unnsse Khan

    users select what they want in their schemas
    If the Schema info is added in a JSP.
    Element Name: elementA
    Data Type: string
    Sub-Elements(Sequence): elementB, elementC
    The field values may be retreived with with the getParameter method.
    String elementName=request.getParameter("ElementName");
    String type=request.getParameter("DataType");
    From the values retreived a Schema may be constructed with the org.w3c.dom.* classes.

  • New IPOD NANO (5th Generation)  - Copying music files from IPOD to ITUNES

    Help!
    I managed to sync all of my music files from my ITUNES on my new IMAC Apple computer and I also managed to sync one album to my IPOD NANO from my old G4 Tower Apple computer's ITUNES. Now I would like to copy that one album from my IPOD NANO to my current ITUNES on my new IMAC Apple computer. Do I sync in the manual mode option?
    rockergirl
    Happy New Years!

    Now I would like to copy that one album from my IPOD NANO to my current ITUNES on my new IMAC Apple computer.
    You can't use iTunes to transfer music from iPod to computer unless that music was purchased from the iTunes store.
    If so, see: How to copy iTunes purchases from an iPod or iPhone to a computer.
    For all other non purchased content (your own CDs etc), check out the instructions/suggestions here.
    Try iPodDisk. This is a program designed to transfer music from iPod to computer.
    Similar programs are Expod, Yamipod, Senuti and Music Rescue.

  • How to create MUSE file from existing MUSE site?

    Hi-
    A customer has a site that was created with MUSE and she wants some edits made to it.
    I have installed MUSE and can access the server via FTP. I've downloaded the site's html files and assets, but these are useless in MUSE.
    How do I create or get the whole site's MUSE file from the server so I can make the edits and put back on her server?
    Thanks for any guidance here.

    Hello,
    You would need the .muse file (source file of website). And you can get it only from the person who created it.
    It must b saved on their local machine. This file  is not uploaded on the  server via FTP. And you cannot use the .html and other output files as the changes need to be made in that .muse file.
    Regards,
    Sachin

  • XML validation using javax.xml.validation

    Hello,
    I am trying to validate some xml against my xsd.
    Here is my xml:
    <host>
        <status>Unknown</status>
    </host>Here is my xsd:
    <?xml version="1.0"?>
                                                                                                                                                                 <xsd:schema targetNamespace="blah"
            xmlns:tns="blah"
            xmlns:xsd="blah">
    <xsd:simpleType name="Status">
    <xsd:restriction base="xsd:string">
      <xsd:enumeration value="Unknown"/>
    </xsd:restriction>
    </xsd:simpleType>
    <xsd:element name="host">
       <xsd:complexType>
         <xsd:all>
           <xsd:element name="status" type="tns:Status"/>
         </xsd:all>
       </xsd:complexType>
    </xsd:element>
                                                                                                                                                                 </xsd:schema>My test code is:
            try
                DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                Document document = parser.parse(new File("test.xml"));
                // Create a SchemaFactory capable of understanding WXS schemas.
                SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
                // Load a WXS schema, represented by a Schema instance.
                StreamSource schemaFile = new StreamSource(new File("schema.xsd"));
                Schema schema = factory.newSchema(schemaFile);
                // Create a Validator object, which can be used to validate the document
                Validator validator = schema.newValidator();
                // Validate the DOM tree.
                validator.validate(new DOMSource(document));
            catch(Exception e)
                fail("XML validation failed: " + e.getMessage());
            }I get the following error:
    ERROR: 'cvc-elt.1: Cannot find the declaration of element 'host'.'
    If i replace "type=tns:Status' in the "status" element with just "type=string", it works fine.
    Does anyone have any idea what the problem is?
    Thank you,
    David

    To daft_davy:
    1. Your XSD document is invalid: the xmlns attribute of schema documents must always have the following value: "http://www.w3.org/2001/XMLSchema"
    All other values will result in the following validation error:
    org.xml.sax.SAXParseException: s4s-elt-schema-ns: The namespace of element 'schema' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
    Your XSD should look like this:
    <?xml version="1.0"?>
    <xsd:schema targetNamespace="blah" xmlns:tns="blah" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <xsd:simpleType name="Status">
        <xsd:restriction base="xsd:string">
          <xsd:enumeration value="Unknown"/>
        </xsd:restriction>
      </xsd:simpleType>
      <xsd:element name="host">
        <xsd:complexType>
          <xsd:all>
            <xsd:element name="status" type="tns:Status"/>
          </xsd:all>
        </xsd:complexType>
      </xsd:element>
    </xsd:schema>2. Your XML document does not match the XSD schema (even if you use the one above) for the following reasons:
    a) The root element of the XML document must be associated with the namespace defined by the targetNamespace attribute of the schema.
    b) The "blah" namespace at the element <status> in the XML document has to be undeclared because there is no namespace declaration to this element in the schema document either. There are to ways to do this:
    <host xmlns="blah">
      <status xmlns="">Unknown</status>
    </host>or:
    <xxx:host xmlns:xxx="blah">
      <status>Unknown</status>
    </xxx:host>
    To watertownjordan:
    The namespace URI can be virtually any string, so you don't need to specify a valid URI to define a namespace.

  • How to register a schema use a .xsd file which has lots of includes schema

    Hello, All,
    Does someone have the experience to register a schema use a .xsd file which contains several tags like <xs:include schemaLocation="../dt/somedatatypes.xsd"/>?
    I tried both the OEM and command line dbms_xmlschema.registerSchema(), although the whole file structure already in the repository, seems like Oracle can't automatically search and find the includes and register it. should I register those includes first? the actual error I got is "ORA-31000: Resource '../dt/somedatatypes.xsd' is not an XDB schema document.ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0 ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26 ORA-06512: at line 2" .
    Any suggestion? thanks in advance...

    We do not (currently) support relative references in included XML Schemas.
    In order to use an include or import the target Schema must first be registered with XML DB under some known location. The schemaLocation argument needs to the 'Docuemnt Location Hint', or URL, that was passed to registerSchema when the included schema was registered.
    If you have cyclic dependancies between schemas you can use the force option of registerSchema to register the first Schema. This will then allow registration of the second schema to succeed. Once the second schema has been successfully registed the first schema must be explicitiy recompiled using dbms_xmlschema.compileSchema().

  • How streaming an audio or video files from google drive using google api objective-c client?

       I have implemented streaming an audio or video files by mpmovieplayer from Dropbox. For this purpose I am using Dropbox sdk. Audio or video files are playing with no problem from dropbox in my app.
    But, I can not implement the same functionality from Google drive. I am using alternateLink,webcontentLink,EmbedLink,Exportlink that we get from google drive. But mpmovieplayer does not play audio or video. So how can get any link from google drive,by which i can streaming an audio or video file from google drive. I have listed all google drive files in a table view. I am using google api objective-c client. So please help me. Thanks in advance.

    Hello,
    I'm giving a try at your application and so far, it is great!
    I understand that you're working on a way to help moving back files to google drive. Actually, I can copy / paste, but it always renames the files, so I end up with both a "copy of" and my original file.
    could you save and overwite the original file when it already exists ? (perhaps an option in the settings) ?
    Thanks!

  • Problems instantiating javax.xml.ws.Service object

    i'm at a total loss here: on my development machine everything works fine. when i switch to our test production server, it blows up.
    My dev machine is OS X 10.5 and test production machine is OS X 10.6. Both are using Java 1.5 and Tomcat 6.0.x...
    The web services I'm calling all reside on other machines on our rack and I'm using internal IP addresses to call them.
    My Service class is below. The blow-up occurs in the constructor right before the info log. The exception message follows the class. help!
    @WebServiceClient(name = "gnwSoap", targetNamespace = "gnwSoapNamespace", wsdlLocation = "http://192.168.1.12/4DWSDL/DOC")
    public class GnwSoap extends Service {
         private static final Log log = LogFactory.getLog(GnwSoap.class);
         public GnwSoap(URL wsdlLocation, QName serviceName) {
              super(wsdlLocation, serviceName);
              log.info("Endpoint sucessfully created: " + wsdlLocation.getHost());
          * @return returns GnwSoapDocument
         @WebEndpoint(name = "gnwSoapPort")
         public GnwSoapDocument getGnwSoapPort() {
              return super.getPort(new QName("gnwSoapNamespace", "gnwSoapPort"),
                        GnwSoapDocument.class);
    }The Exception:
    javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[4,12]
    Message: Scanner State 24 not Recognized
    com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:179)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
    org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:109)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.concurrent.ConcurrentSessionFilter.doFilterHttp(ConcurrentSessionFilter.java:99)
    org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
    org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
    org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    ...

    I have Oracle JDeveloper Studio Edition Version 10.1.3.2.0.4066.
    Please note I have already added following libaries, jars to Tool->Project Properties->Libraries in JDeveloper.
    EJB3.0, TopLink Essentials JPA, J2EE, Jws-api.jar, Ejb30.jar, JSP Runtime, JAX-RPC Client, TopLink, JDeveloper Runtime, Embedded OC4J client, Jaxrpc-api.jar, Wsserver.jar
    Thank you.

  • How2 create xml & ent  files from JAVA? (xml that gets data from ent file)

    Is there any API that can make it easy?
    * For parsing XML I use JDOM parser
    I want to create file like this:
    XML file: some.xml
    <?xml version="1.0"?>
    <!DOCTYPE xfat [
    <!ENTITY  d_request SYSTEM  "some.ent">
    ]>
    <!--
    /home/bNUMBER/Programs/XFAT/runxfat some.xml
    -->
    <xfat title = 'Fat Title (some) '>
    <database  filename = 'Some_Data/some.xml'/>
    <snc  filename  = "../snc/snc.xml"/>
    <configuration sp = '../sp/some_only.xml' name='Some_A-H'>
       &d_request;
    </configuration>
    </xfat>and ent file:
    <ddef title    = 'some d def title (some)'>
         <dcalc  snc    = '7_A9'
                meas   = 'm73'
                red    = 'GOOD' binval='MCMS' lug='YES'/>
    </ddef>

    has anyone idea what to search?

  • Uploading Files from KM into xml Forms Builder

    Hi all,
      I want to display a news in my Portal that is having link to the documents present in KM repository for that i m using xml Forms builder to make News .
    when i go to
    Content Management->Forms Builder->xml Forms Builder
    ->created an New Project
    In that I have used a browser and mapped it with data schema having string type.
    and used the same data schema in Renderlist form and in show form as Label but when i upload the file using Km navigation Iview . In the Layout set property of Navigation Iview i set it ot NewsExplorer and in another iview i set it NewsBrowser and when i upload it in the First iview and try to see in other iview than it only shows the path of the file and not texactly the file..
    Could u suggest where i would be doing mistake or send me steps to do the same
    Thanks in Advance.

    hi Naveen,
      Checkout the link..,
      http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/creating xml forms 6.0
        it provides step-by-step guide to ur problem..
        hope it helps..,
    regards,
    Vinoth

  • How to autoextend just one file from existing tablespace?

    Hi,
    I discover some of the tablespaces did not have autoexent feature, i.e. none of the datafiles have been autoextend features
    so I need to autoextend it, hopefully the data file which has the most free space. So it would be good if I can come up with a query to find out which datafile belonging to a tablespace which currently has the highest free space could be selected for extend features,
    To get me on the right track,
    which dynamic views/data dictionary do I need to look up?
    v$datafile/v_$datafile
    dba_free_space
    v$tablespace
    when should I use v$datafile? when should I use v_$datafile.
    thanks a lot!

    There seems to be some basic confusion.
    AUTOEXTEND is not going to reuse the space within a data file; it is going acquire more space for the same file on the disk.
    You can lookup dba_data_files.autoextensible column to check if your file is autoextensible or not.
    when should I use v$datafile? when should I use v_$datafile.v$datafile is just a synonym for v_$datafile.

  • Create XMP files from existing edited files

    I just learned I needed to have the box checked in the Prefs menu in order for LR to automatically write XMP files in the images' folder. Now I need to go and create XMP files for all the photos I have previously edited. How can I do that?

    That worked this time. I read in the forums that's what I should do, but it wasn't working. No XMP files were showing up with the image files. I did a restart of LR, maybe that did it.
    Thanks!

  • What is the simplest  way to get a xml-file from 10g R2 -database ?

    Hi,
    I'm new in xml, there are so many tools to work with xml:
    what is the simplest way to get a xml-file from 10g R2 -database ?
    I have : 10g R2 and a xsd.file to describe the xml-structure
    thank you
    Norbert

    There is no automatic way to generate XML documents from an arbitary set of relational tables using the information contained in an XML Schema. Typically the easiest way to generate XML from relational data is to use the SQL/XML operators (XMLElement, XMLAGG, XMLAttribtues, XMLForest). There are many examples of using these operators in the forums You can validate the generated XML against the XML Schema by registering the XML Schema with XML DB and then using the XMLType.SchemaValidate() method

Maybe you are looking for

  • Error code 50 CC desktop app install

    I tried to update the creative cloud desktop app and it has now disappeared, I tried to re-install the app but it failed with "error code 50". I searched this error code and followed the link in the forum replies http://helpx.adobe.com/creative-cloud

  • No Startup Disc - Blue Screen Error

    I recently upgraded my G4 with the leopard operating system. It was running fine for a while and then entered the blue screen problem. I ran into this same problem with my G5 and took the proper steps to try and fix it but have had no luck. I tried t

  • Dynamic heading in HFR

    Hi , Please let me know how i can get the below two requirements . 1. One of the pages Dimension is entity and i have selected Descendents of entity. So the end user selects one of the values of entity. This value which is selected should be concaten

  • Advice about buying new Macbook

    Hi all, I'm trying to decide between the Macbook Air and the Macbook Pro with Retina display, and I'd like to see if people have advice about which one would better serve my needs. This is my only computer, and while it needs to be portable, it doesn

  • HT202159 OSX Mountain Lion download problems

    Hello, I have been trying to download OSX Mountain Lion from the appstore on my 10.6.8 mac mini but the file stops downloading after about 10mb. I was able to download 10.7 without any problems but I am not able to downlaod 10.8 on either of my two m