JAXP & schema file  defined externally

Hi guys
I know using jaxp1.2 one can specify schema file in the validation logic.
Check the following url.
http://xml.apache.org/~edwingo/jaxp-ri-1.2.0-fcs/samples/DOMEcho/DOMEcho.java
I have requirement where I don't want to specify schema file in the xml file.
During run time I need to find this schema file and use it for the validation logic
I don't have option of using JAXP 1.2.
Is there a way I can still achieve the same functionality.
I have Java 1.4 environment and Apache Xerxes packages in my dev. env.
Can I use entity resolver ?
Please help me

Oops, sorry.... I guess I misunderstood your question.
I'm guessing that you do set the schema file in the XML, right? Meaning that you set it with an public or system Id, otherwise I don't understand how you used an EntityResolver.

Similar Messages

  • Validating against schema file for the output XML file

    Hi,
      I am using XSLT for mapping. The output message is generated according to the mappings but it is not validate aganist schema of target . I am using xsd file from external defination section as target. Can any body help me in this regard.
    Thanks,
    Mallikarjun.M

    hi,
    if you talk about the schema of a target message type
    than validation only works if you use graphical
    message mapping
    not with: xslt,java, abap
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Can't create BAM Sensor Action - XSD schema file exists

    Hi,
    In JDeveloper, I created some activity sensors and when I try to create a BAM sensor action it complains about the schema definition of the variable and that it should not be inline in the WSDL.
    The fact is that my BPEL process communicates with an external web service, and the variables that I'm using in the process are of the type of the message defined in the WSDL of the web service. So in the WSDL file of my BPEL process, I import the WSDL of the web service. And in the WSDL file of the web service, the schema of the messages is defined in a XSD file not inline in the WSDL. Thus the schema is imported in the web service's wsdl.
    It looks like JDeveloper assumes that it is defined inline, but there is a schema file. Does somebody encounter this problem? Is there a workaround?
    Any help would be greatly appreciated.
    Amir

    Looks like I was wrong. I created a brand new project in Xcode and all I did as add "choose file name" to the applescript. It still gets a "EXCBADACCESS". I also tried a 'display dialog "Error"' in my applescript and it does the same thing.
    Here is the script the fails. Everything else in the project is default.
    script ChoosenewFile
    property parent : class "AMBundleAction"
    on runWithInputfromAction_error(input, anAction, errorRef)
    -- Add your code here, returning the data to be passed to the next action.
    display dialog "Error"
    return input
    end runWithInputfromAction_error
    end script
    In the debugger, this is the stack:
    #0 0x91184917 in objc_msgSend
    #1 0x63707472 in ??
    #2 0x16c01e36 in DecodeAEDescInternal
    #3 0x16c02b4b in DecodeObjectSpecifier
    #4 0x16c01c24 in DecodeAEDescInternal
    #5 0x16c022bb in DecodeAEList
    #6 0x16bccdd0 in ASExecuteEvent_PushSendStackFrame
    #7 0x16bccfcc in ASExecuteEvent
    #8 0x918026cb in callComponent_4444
    #9 0x16bc3d4a in AppleScriptComponent
    #10 0x917efcb6 in CallComponentDispatch
    #11 0x972455df in OSAExecuteEvent
    #12 0x00339ffe in +[BAObjectProto invokeScriptHandler:forObject:args:error:]
    #13 0x0033a363 in -[BAObjectProto invokeScriptHandler:args:error:]
    #14 0x0033b581 in -[BAObjectProto forwardInvocation:]
    #15 0x92f760c4 in __forwarding__
    #16 0x92f75bf2 in _forwarding_prep_0__
    #17 0x000718af in -[AMAction runWithInput:loopParent:]
    #18 0x00070d2f in -[AMWorkflowRunner runAction:withInput:loopParent:]
    #19 0x000c60a8 in -[AMWorkflowRunner runAction:]
    #20 0x0013261d in -[AMRunActionOperation main]
    #21 0x9094d34c in -[__NSOperationInternal start]
    #22 0x9094cfe0 in ___startOperations_block_invoke2
    #23 0x91caa7b8 in dispatch_call_block_andrelease
    #24 0x91c9c97e in dispatch_workerthread2
    #25 0x91c9c401 in pthreadwqthread
    #26 0x91c9c246 in start_wqthread
    Any more advice would be appreciated.
    Scott

  • XML Schema file in data definition

    Hi,
    I am creating a custom RTF template for a seeded data definition in the eBusiness Suite. The data definition has an XML Schema file loaded however this does not include all the data required for the template. Running the report to just generate the XML (i.e. no template) I can see that the additional data is available at this level just not included in the XSD.
    I have built the template including the additional elements from the XML and expected to have to create a custom data definition as well to add the additional elements to the XSD. However the template is working against the seeded definition and successfully picking up the elements that are not included in the XSD.
    Has anybody else come across this situation? And are there any potential issues? I could create a custom data definition as well to load an amended XSD but this would be a more invasive change as it would involve end dating the seeded data definition which I would prefer not to do. The report is not being generated from a concurrent request so I cannot just create a custom request and leave the seeded report untouched.
    Thanks,
    Sarah

    The XML Schema is only required if you are using a PDF template (the template file itself is PDF) with field-mapping. For other template types the schema is optional.
    The XML Schema is used to define a "class" of XML documents, so to speak. The define the semantics and structure of the XML documents more thoroughly.
    If you have closely related reports, you could use a single schema to standardize (in a sense) the XML to be output from the class of related reports. In that case you could have a single schema file uploaded to multiple reports/data-definitions.
    The W3C has good documentation on XML Schema.
    If you want to see samples, you can use tools such as dtd2xs to create sample schemas from your DTD.

  • How to create a schema file

    Hello Everyone
    I am new to Live Cycle. I am trying to get to know how live cycle works. I want to get a schema file how do i create that. i have a pdf form which i just imported in workbench and when i am trying to define a xfa variable where do i get the schema file or how do i create a schema file for a pdf. Please help

    What do you mean by a LiveCycle schema file. Schemas are not an Adobe technology. We can use a schema do design a form but we just rely on the fact the schema file is valid.
    Jasmin

  • How to Build A Schema File

    I have Java 5, JAXP 1.3, and properties file that my application uses to get its settings from. What I would like to do now is have my application validate its configuration file when it starts, before it uses any of the data in the file.
    XML validation sounds like what I need, but I have never used it before. This document makes it look simple to do validation, but does not include any information on how to create a schema ( aka constraints ) file to use in the validation process.
    I am still search for instructions on how to do this, but would appreciate any advice or links to resources that would help me get validation up and running in my application.

    What do you mean by a LiveCycle schema file. Schemas are not an Adobe technology. We can use a schema do design a form but we just rely on the fact the schema file is valid.
    Jasmin

  • DTD files as external Definition

    Hi ,
    Read lot of threads on this which are having same problem ,some of them got solved none of them posted how did they succeded on those.
    i am getting error like Name "ds:Signature" is incorrect, when i tried to inport the .dtd file as external definition,so I did try converting dtd file to XSD ,it is creating the 3 xsd files and none of them are valid each one of them are error.But however the DTD file is valid .
    Using Invoicedetail DTD file for my scenario.
    you can download the file from http://cxml.org
    Please let me knw on this.
    Thanks,
    Madhu

    Hi,
    Here are the errors for the 3 xsd's
    1.     Value 'ds:Signature' is not allowed for attribute 'ref'.
              Hint: A valid value would be 'xml:lang'.
              Error location: xs:schema / xs:element / xs:complexType / xs:sequence / xs:element / @ref
    2.     Value 'ds:Signature' is not allowed for attribute 'ref'.
              Hint: A valid value would be 'xml:lang'.
              Error location: xs:schema / xs:element / xs:complexType / xs:sequence / xs:element / @ref
    3.                   Value 'xades:Identifier' is not allowed for attribute 'ref'.
              Hint: A valid value would be 'xml:lang'.
              Error location: xs:schema / xs:element / xs:complexType / xs:sequence / xs:element / @ref
    these errors are coming in xml spy when i tried to validate .
    Thanks,
    Madhu
    Edited by: madhu204 on Jul 23, 2009 4:54 PM
    Edited by: madhu204 on Jul 23, 2009 4:55 PM

  • Parse XML Schema File?

    Dear Sun Developer Network,
    I suppose maybe I should start at the beginning.
    Can anyone outline the first few steps involved in parsing an XML schema file into a traversable data structure in Java?
    I'd like to get a get a discussion started here about this, because I have some questions about the process as I currently understand it, and the more advanced (i'm supposing they're more advanced) questions that I've been asking in the past have gone completely unanswered in this forum. So perhaps, starting from the beginning, and working through to the difficulties I'm encountering would be a better approach to solving those issues.
    Thank you,
    Nels

    >
    Many thanks for your reply! My next question is,
    s, if parsing an XML schema file can be done with a
    SAX or dom parser, then why has Sun bothered to
    develop the JAXB api? What is the difference?
    Hi Nels,
    SAX and DOM are technologies for parsing and JAXB is a technology for databinding. They are 2 different technologies.
    Parsing gives you acess to raw xml
    DataBinding does the parsing and goes one step ahed and loads the data from xml to java objects. It is a higher level of abstraction over parsing
    schema is a specification which helps to define the rules for a valid xml document. It also happens to be xml. DTD is a kind of limited schema which is non xml.
    hope you got the diffrence.
    ps: did you try the -J-Xmx switch with javac to resolve yhe OutOfMemory exception I suggested in your previous post
    Regards,
    Rajagopal

  • Large Schema file registered and using folders to load the data (WebDAV)

    I have a very large schema file that I have registered using binary (Schema file > 30000 lines).
    My data has been in MarkLogic and it is organized in a folder structure providing reuse of pieces of the xml.
    It seemed the most logical way to load the data was to create the folder structure in XDB and move the files via WebDAV. We also have extensive XQueries written.
    My question is how do I query the data back our when it is loaded this way. I have read and experimented with resource_view but that is not going to get me what I need. I would like to make use of my xqueries that I have.
    Can i do this, and if so, HOW??

    Sure. Let me lay out a with some more specific information.
    My schema has an overall root level of "Machine Makeup".
    All of these items are defined under it with a lot of element reuse and tons of attribute groups that are used throughout the xml schema. I can do a lot of things but what I cannot do is change the structure of the schema.
    The data is currently in a "folder structure" that more closely resembles the following. I have tried to annotate number of files and keep in mind all of these are working documents and additional "record" (xml files) can be added.
    Composite - contains 12 folders and each of these folders contain xml documents
    compfolder 1
    - compfolder 12
    Most of these folders contain < 200 .xml files (each with id.xml) as the name of the file however one of these directories currently contains 1546 files. They all belong... no real way to split them up further.
    At the same level as composite
    About half of these folders at this level contain > 1000 but less than 3000.
    Like
    PartsUse > 1000 but less than 3000
    transfer of parts 8000 and can continue to grow
    people > 3000 and these would be used in the transfer of parts like "who sold it" Everytime someone new a new one is added etc.
    There are about 12 folders at this level.
    Now, the way the system works is a new person that is not in our list is involved the users get a "new" empty xml document to fill in and we assign it an id and place it in the folder.
    So it would something like this
    Composite
    folder1 - 1000 xml file
    folder 2 - 200 xml files
    folder 12 - < 2000
    Locations
    contains < 2000 xml files
    Activities < 3000 xml files
    PartsTransfer 8000 xml files and growing
    materials < 1000 xml files
    setup < 1000 xml files
    people 3000 xml files and growing
    groupUse < 1000
    and so forth.
    All of the folders contain the links I had previously layed out
    So Activities would have materialLink id = "333" peopleLink ="666"
    And so of and so forth.
    So because my file numbers are > than the optimum about half the time, how would I have 3 separate xmltype tables (I understand mine would be more than 3...)the one schema file that is intertwined with others. Can you show me an example. Would I annotate it in the schema at just those levels. This schema file is so huge I would not want to have to annotate all elements with a table. Can I pick and choose to mimic the folder structure?
    THANKS SO MUCH for your help. I really want to show that Oracle is the way. I can implement it with a simpler structure but not the size of complexity that I need. I haven't been able to find a lot of examples with the new binary registration.
    Edited by: ferrarapayne on Nov 16, 2011 1:00 PM

  • Memory issue loading XML schema files

    Hi,
    I have an application that a startup reads available XML schema files from a folder and creates Validator objects that are put into a HashMap.
    I'm running into problems creating validation schema objects when the file size of the schema is just over 30kB in size.
    The following error message is given when testing with the "large" schemas:
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
         at com.sun.org.apache.xerces.internal.impl.dtd.models.CMStateSet.<init>(CMStateSet.java:100)
         at com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode.firstPos(CMNode.java:96)
         at com.sun.org.apache.xerces.internal.impl.xs.models.XSCMBinOp.calcFirstPos(XSCMBinOp.java:136)
         at com.sun.org.apache.xerces.internal.impl.dtd.models.CMNode.firstPos(CMNode.java:97)
         at com.sun.org.apache.xerces.internal.impl.xs.XSComplexTypeDecl.getContentModel(XSComplexTypeDecl.java:185)
         at com.sun.org.apache.xerces.internal.impl.xs.XSConstraints.fullSchemaChecking(XSConstraints.java:457)
         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar(XMLSchemaLoader.java:530)
         at com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.newSchema(SchemaFactoryImpl.java:206)
         at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:489)
    The smaller 1-10kB schemas can be stored without any problem regardless of the number I test (+1000).
    The problem occurs as soon as it handles these larger schemas in the source directory. Even only one 30kB schema is enough to consume the all memory.
    Below is the code uesd for creating the validation objects
    for(int i=0;i<files.length;i++){
        SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
        Source schemaFile = new StreamSource(files);
    schema = factory.newSchema(schemaFile); // Here is where the process fails
    Validator validator = schema.newValidator();
    hm.put(documentType, validator); //hm is the HashMap used as placeholder for Validator objects
    Regards,
    Håkan
    Edited by: dezer on Jun 2, 2010 5:04 AM
    Edited by: dezer on Jun 2, 2010 5:08 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Welcome to the Sun forums.
    dezer wrote:
    ..Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    The smaller 1-10kB schemas can be stored without any problem regardless of the number I test (+1000).
    The problem occurs as soon as it handles these larger schemas in the source directory. Even only one 30kB schema is enough to consume the all memory.Are you certain that only one schema is involved? How does the code tell how many schemas there are?
    Below is the code uesd for creating the validation objects
    for(int i=0;i<files.length;i++){
    SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Source schemaFile = new StreamSource(files);
    schema = factory.newSchema(schemaFile); // Here is where the process fails
    Validator validator = schema.newValidator();
    hm.put(documentType, validator); //hm is the HashMap used as placeholder for Validator objects
    It would seem that if files.length is 10000, that would end up in around 30 times as much memory usage as for the 1000x10Kb schemas.

  • Define External Web services in SPRO. in SRM

    Hi SRM Gurus,
    We are doing an Upgrade from SRM3.0 to SRM7.0 with MDM.
    In SRM 7.0 -SPRO -We have to do the config in  Define External Web services
    What are the parameters to maintain.
    I read from SDN that
    Following parameters are not required in SRM 7.0. It was for ITS.
    ~OkCode ADDI
    ~target _top
    ~forcetarget yes
    ~caller CTLG
    You need additional parameter in SRM 7.0.
    returntarget _parent - for this what is the input parameters
    Hi Masa /Muthu
    Can you list down what  are the Input parameters required for this config and the details?
    Regards
    G.Ganesh Kumar

    Hi Masa,
    We have deployed the SRM-MDM Catalog Search UI in Portal.
    we tried accessing the http://<Portal Host>:<Portal Port>/SRM-MDM/SRM_MDM
    Then we got a screen (Search UI App screen), where in we have provided the MDM Server name, then the MDM Server Password, then presses the Connect button, then below this, it displayed the Repository name created in the MDM. We have selected the Repository, then provided the Credentials of a User (Name: T_CORP) in MDM which has "Catalog Manager", and the "UI Configuration Manager" Roles. Please note that these Role names were created by us in MDM. Is it the right procedure or do we have any standard Roles delivered by SAP in MDM to map? If any standard Roles are available, where we need to check these.
    Once the Credentials of MDM User is provided, and then selected the "Login" button.
    Then we are getting the below error.
    "java.lang.IllegalArgumentException: Table with Code 'null' does not exist in the repository 'Repository' or is one of the system table (e.g. Workflows) that is not exposed in repository schema"
    Please clarify; we are not configuring any values in iViews. Where we need to do this, I mean name of the iView, and what values do we need provide generally? We are just running the Search UI App application; I don't think it is an iView, because the URL shows the Application name details, etc...
    Please guide us, how to fix this Error.
    Regards
    G.Ganesh Kumar

  • I moved itunes file to external hard drive and want to move the file on my pc to recycle bin. When I move i get an error message that it cannot delete ituneshelper.dll access is denied. Can I move that file to the recycle bin?

    I am trying to free up space on my pc and moving itunes files to external hard drive. I have followed instructions and believe I have file copied to new drive, but I am having trouble moving file to recycle bin as the instructions say. I am getting the following error message: cannot delete ituneshelper.dll:access denied, make sure disk is not full or write protected and file not in use. I know the file is not in use when trying to move. Any help would be most appreciated. I am on Windows XP.

    Yes. And you should not have moved that folder. Put it back. To move your iTunes library move the folder from User's Music.
    tt2

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • How to download a pdf file in external storage(sd-card) not use a isolated storage wp8

    i have a url for download pdf file return by webservices 
    and i have attach this link in hypertext button this is start a download but in browser . and when i am google for this purpose the give me "
    Background file transfer
    " Process and then code is also using a isolated storage but i want a external storage process Please Help me 
    how to download a pdf file in external storage(sd-card) not use a isolated storage wp8 

    Hello,
    This forum is for discussions and questions regarding profiles and Microsoft's recognition system on the MSDN and TechNet sites. It is not for products/technologies.
    As it's off-topic here, I am moving the question to the
    Where is the forum for... forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • My Macbook Pro can't detect or read my CDFS file system external HDD

    My Macbook Pro can't detect or read my CDFS file system external HDD

    Open Disk Utility and see if the USB drives show in there. If they don't then it is a USB port or bus problem. If they do show in disk utility are they formatted in either Mac extended or a Windows format?

Maybe you are looking for

  • Hard Disk issue with Toshiba Satellite P755-S5390

    Well, I'm at my wit's end on this one so after several months of searching for an answer I'm presenting this one to my fellow Toshiba users. I have a Toshiba Satellite P755  that I purchased around March of 2012 so it is well out of warranty unfortun

  • Where to see mapping result in PI 7.1?

    Hi all, In PI 7.1 sxi_monitor and RWB, we only see see the incoming message in PI, but I haven't found any place where I can see the resulted message of the mapping, or the outgoing message in PI. Anybody knows how to see the outgoing message in PI 7

  • Itunes wont burn a CD

    When ever I try to burn a CD to listen to, it starts to initializing when I click burn disk and then stops. A new window will then pop up saying this......."The attempt to burn a disc failed. The device failed to calibrate the laser power level for t

  • ThirdParty Subcontracting Process

    Hi Experts, Can you  share the usage and process of thirdparty subcontracting process  step  by step in MM Regards, Udaya. Note : Subject is widely discussed FAQ. Please search forum before posting. Edited by: Jeyakanthan A on Dec 5, 2011 10:22 PM

  • Can i embed adobeflash in my visual basic software?

    is there any support or free code so that i can use flash-ads in my VB-software?