XML repository schema

Hey all
I downloaded the repository schema to desktop
Edited it, meaning added couple of fields to a flat table and deleted some other tables
When I upload the schema back into repository I don't see the field names
To start with
the repository schema doesnt have the tag field name
I added it manually but the repository doesn't parse it/look for it  it seems
So my question is did any one of you had a similar issue ( I use XML SPY BTW)
And how do you by pass this , like how do you set the field names somewhere else and get it into the repository design ??
Any suggestions would be highly appreciated.
For now I get all the fields in to repository and then go in and put a name to each of the fields  really painstaking!!!!

Hi,
   The Field name or the Table name should be in a tag ML, in your XML.
Line: -
for example
<?xml version="1.0" encoding="UTF-8"?>
<Repository description="Prototype">
  <Language name="English [US]" language="eng" country="US" inheritance="English [US]" />
  <Table type="MainTable" code="Products" description="" keyMapping="No" primaryDisplay="SKU" displayFields="SKU" uniqueFields="">
   <ML name="Products" lang="English [US]" /> 
  <Field type="FixedWidthTextField" code="SKU" description="Legacy Stock Number" required="No" writeableOnce="No" matrix="Normal" multilingual="Yes" keyword="Normal" sortIndex="Normal" width="50.0" mlDecimalPlaces="0.0">
     <ML lang="English [US]" name="SKU" />   
</Field>
</Table>
</Repository>
This is the format of the XML... if you use this the field name or the table name will be uploaded into the repository, not required to add it manually.
Hope this helps.
Thanks.

Similar Messages

  • Error Importing Repository Schema Into Repository

    Hi,
    I am currently working on a project at a client and I am having an issue importing an XML Repository Schema into a repository.
    I have Development and Quality Repositories which are supposed to be nearly identical.  There have been quite a few changes made to the Quality Repository and the client wants me to export the Quality schema and import it into the Development repository and accept a few changes (I realize changes are typically migrated from Development to Quality).  This should be a relatively simple task however I keep receiving the following error: u201COne or more of the selected items requires that you select additional itemsu201D, when I attempt to change just one field.  I have scoured the SAP forums and exhausted the Reference Guide for MDM and I cannot find a solution.  Any help or suggestions would be greatly appreciated.
    Thanks,
    Don

    Hi,
    You are facing this issue because you are trying to import changes in an object, but rejecting changes for its dependent objects. For example, you are trying to import a new port with a new remote system, but not accepted change in the remote system table.
    I would suggest you to check the MDM log files. it will give you more details why your import repository schema is failing, and which dependent object need to be imported.
    Kindly check the log files and revert.
    Best Regards,
    Shiv

  • SRM MDM 3.0 BMECAT Repository Schema

    Hello at all,
    I have currently run the SRM-MDM 3.0 with the standard respository delivered as archive on the install CD. I still have created some data with the data manager and it runs all very well.
    Now I want to import a catalog based on BMECat 1.2 standard. I Have the complex catalog data XML from the vendor Bechtle and the images folder for the articles.
    When running the Import Manager there are many fields and tables in the source xml that do not excist in the destination hierachy (repository).
    My question is how do I create a repository based on the BMECat 1.2 standard to import the vendor catalog xml ?
    What I still tryed was. Creating a new repository. It's empty except of the standard table like Admin, Images, Products etc.
    Than go to Transport -> Import Repository Schema -> choose the vendor XML
    That doesn' work. I get the Error Message: "There are problems with the transport (XML) which prevent it from being processed"
    I have learned that an XML schema data is described with the ending .xsd but when I try to import the databrowser looks for .xml endings.
    Could someone please advice what's I have done wrong?
    Thanks a lot.
    Rico

    Hi Rico,
    I am not aware of BMEcat standard but in MDM terms you can take the backup of repository in two forms:
    1. Archive/UnArchive -> If you want to move the repository from one MDM server to another i.e. from dev to QA then you can Archive the repository which creates the .a2a file and place the file in the Archives folder of MDM Server installation directory which can then be copied and moved to Archives folder of target MDM server and you can UnArchive it on that MDM server.
    Archive = Repository Schema + Data
    2. Export / Import Repository Schema -> With this method you can export the schema of the repository and create the new repository on some other MDM Server using Create Repository from Schema command. When you perform the export repository schema command, it will ask for the file name and path. You can then copy this schema file and place in the file system of another server.
    Export / Import Repository schema = Repository Schema only
    Regards,
    Jitesh Talreja

  • Error in importing XML Repository

    Hi,
    I'm trying to deploy my application from SIT machine to UAT machine.
    I have exported a jar for
    XML repository, EventKeys and Business operations from SIT machine.
    Now I'm trying to Import them to UAT machine.
    I've deleted all the default organizations and created required One oon UAT.
    I was able to import EventKeys.jar and BusinessOperations.jar.
    But While importing XML Repository jar I'm getting
    com.bea.eci.repository.helper.RepositoryException.
    Can somebody help me on this.
    Thanx and warm regards,
    Brijesh M
    [Error.dmp.txt]

    Hi Pruthvi,
    It's a namespace problem. The namespace of XML generated by PI is not matching with namespace of xsd schema used in your import map.
    Try correcting the name space in PI.

  • Redo the syndication map if the Repository schema changes?

    Hi ,
    We have changed the repository structure after creating the syndication map which is based on the repository schema.Now when I load the syndication map with the updated schema ,i am not seeing the newly added fields on the destination items,so we loaded the destination properties with new schema again but the map of all the fields are no more available which leaves us to redo the map again.Is there anyway that the destination is updated with new fields without redoing the map again.
    Thanks

    Hi Aravind,
    unfortunately there is no way to solve this issue but rebuilding the map. The reason is the way syndciation maps are stored in MDM 5.5. This is subject to change (and improve a lot!) in MDM 7.1. But in 5.5 you'll have to rebuild the syndication map completely if you change the repository schema, respectively the XSD file you use as a basis for XML distribution.
    Best regards
    Michael

  • Error in validating XML against schema

    Hi am getting some critical errors while Validating XML against schema
    error is:
    cvc-elt.1: Cannot find the declaration of element 'position' , here <position> is my root element.
    my code is as follows:
    package com.glemser.xmLabeling.library.component.spl;
    import com.documentum.com.DfClientX;
    import com.documentum.com.IDfClientX;
    import com.documentum.fc.client.IDfClient;
    import com.documentum.fc.client.IDfSession;
    import com.documentum.fc.client.IDfSessionManager;
    import com.glemser.common.helper.OperationHelper;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParserFactory;
    import java.io.CharArrayWriter;
    import java.io.IOException;
    import java.io.InputStream;
    public class Test {
    static IDfSession m_session;
    public static void main(String[] args) {
    try {
         new Test().validate();
    } catch (Exception e) {
    e.printStackTrace();
    private XMLReader xmlReader;
    private DefaultHandler handler; // Defines the handler for this parser
    private boolean valid = true;
    public void validate() {
    try {
    SetXML setXML = new SetXML();
    OperationHelper operation = new OperationHelper();
    String splObjPath = "C://Documents and Settings/dparikh/My Documents/xmLabelingStage/Test.xml";//operation.executeExportOperation(m_session, new DfId(m_objectId), true);
    SAXParserFactory spf = SAXParserFactory.newInstance();
    spf.setNamespaceAware(false);
    spf.setValidating(true);
    spf.setFeature("http://xml.org/sax/features/validation", true);
    spf.setFeature("http://apache.org/xml/features/validation/schema", true);
    spf.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
    if (spf.isValidating()) {
    System.out.println("The parser is validating");
    javax.xml.parsers.SAXParser sp = spf.newSAXParser();
    sp.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");
    sp.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation", "file://C:/Documents and Settings/dparikh/My Documents/xmLabelingStage/Test.xsd");
    System.out.println("The parser is validating1");
    //Create XMLReader
    xmlReader = sp.getXMLReader();
    xmlReader.setFeature("http://apache.org/xml/features/validation/schema", true);
    xmlReader.setEntityResolver(new SchemaLoader());
    ContentHandler cHandler = new MyDefaultHandler();
    ErrorHandler eHandler = new MyDefaultHandler();
    xmlReader.setContentHandler(cHandler);
    xmlReader.setErrorHandler(eHandler);
    System.out.println("The parser is validating2");
    parseDocument(splObjPath);
    } catch (SAXException se) {
    se.printStackTrace();
    } catch (ParserConfigurationException e) {
    e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
    public void parseDocument(String xmlFile) {
    try {
    xmlReader.parse(xmlFile);
    if (valid) {
    System.out.println("Document is valid!");
    } catch (SAXException e) {
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    } catch (Exception e) {
    e.printStackTrace();
    class MyDefaultHandler extends DefaultHandler {
    private CharArrayWriter buff = new CharArrayWriter();
    private String errMessage = "";
    /* With a handler class, just override the methods you need to use
    // Start Error Handler code here
    public void warning(SAXParseException e) {
    System.out.println("Warning Line " + e.getLineNumber() + ": " + e.getMessage() + "\n");
    public void error(SAXParseException e) {
    errMessage = new String("Error Line " + e.getLineNumber() + ": " + e.getMessage() + "\n");
    System.out.println(errMessage);
    valid = false;
    public void fatalError(SAXParseException e) {
    errMessage = new String("Error Line " + e.getLineNumber() + ": " + e.getMessage() + "\n");
    System.out.println(errMessage);
    valid = false;
    public class SchemaLoader implements EntityResolver {
    public static final String FILE_SCHEME = "file://";
    public InputSource resolveEntity(String publicId, String systemId) throws SAXException {
    if (systemId.startsWith(FILE_SCHEME)) {
    String filename = systemId.substring(FILE_SCHEME.length());
    InputStream stream = SchemaLoader.class.getClassLoader().getResourceAsStream(filename);
    return new InputSource(stream);
    } else {
    return null;
    My XML and XSD are as below:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="position" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="position_number" type="xsd:string"/>
    <xsd:element name="position_title" type="xsd:string"/>
    <xsd:element name="report_to_position" type="xsd:string"/>
    <xsd:element name="incumbent" type="xsd:string"/>
    <xsd:element name="operation" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <position xsi:schemaLocation="Test.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <position_number>12345</position_number>
    <position_title>Sr. Engr</position_title>
    <report_to_position>23456</report_to_position>
    <incumbent>23456</incumbent>
    <operation>INSERT</operation>
    </position
    Please help me out

    --> Could not find cached enumeration value Custom.CI.Enum.PeripheralDevice.Printer for property Type, class BMC.Custom.CI.PeripheralDevice in enumeration cache.
    You must specify either the Name or Guid of an enumeration of type Custom.CI.Enum.PeripheralDevice.Type.
    Be sure that you are specifying the Name property of the enumeration value you want to set, and not the DisplayName; the Internal Name is something like "IncidentCategoryEnum.Category" for out of the box enumerations, or ENUM.210ADA2282FDABC3210ADA2282FDABC
    for enumerations created in the console.
    you can check this by finding the enumeration in the XML or by using the the
    SMLets commandlet
    Get-SCSMEnumeration | ?{$_.DisplayName –eq “Printer”}
    and then checking your value with
    Get-SCSMEnumeration -Name "ENUM.210ADA2282FDABC3210ADA2282FDABC"
    and see if you get the right displayname back

  • IllegalArgumentException - error validating xml with schema

    I'm trying to validate an XML document using the following:
    JAXP 1.2
    Xerces 1.4.4
    JDK 1.4.1
    The xml is valid and I can confirm it with XML Spy when I point it to the schema definition. But, I get an IllegalArgumentException when I try to do it in my class.
    Here's the code...
    public static final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
    public static final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
    public static final String CIS_SCHEMA = "D:\\dev\\xml\\cis.xsd";
    public static final String[] SCHEMAS = { W3C_XML_SCHEMA, CIS_SCHEMA };
    private static DocumentBuilderFactory dbf;
    private static DocumentBuilder db;
    try {
         dbf.setNamespaceAware(true);
         dbf.setValidating(true);
         dbf.setAttribute(JAXP_SCHEMA_LANGUAGE, SCHEMAS);
    } (catch ...) {
    I get the following error:
    java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
    Any ideas?

    When I tried this with Xerces SAX, I got---
    org.xml.sax.SAXNotRecognizedException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
    Maybe Xerces has not implemented the schemaLanguage property.
    I have been successfully using Xerces-dependent properties to do validation:
    XMLReader parser = saxParser.getXMLReader();
    parser.setFeature( "http://xml.org/sax/features/validation", true);
    parser.setFeature( "http://xml.org/sax/features/namespaces", true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema", true);
    parser.setFeature( "http://apache.org/xml/features/validation/schema-full-checking", true);
    if (noNamespaceSchemaLocation!=null) {
    parser.setProperty(
    "http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
    noNamespaceSchemaLocation);
    if (schemaLocation!=null) {
    parser.setProperty(
    "http://apache.org/xml/properties/schema/external-schemaLocation",
    schemaLocation);
    Also, as DrClap pointed out, for the schema location I use URIs.
    Please let me know if you got the jaxp schemaLocation property to work and how you did it.

  • Trying to store XML documents in Oracle XML repository using Java

    Hi,
    I am trying to store XML documents in Oracle XML Repository using a Java program. i just need a functionality to be able to store XML files and retrieve them.
    Can anybody PLEASE provide me some sample code.
    Thanks in Advance
    Sasha

    Did you ever get any samples on doing this and if so could you pass it on to me.
    Thanks

  • Subject Area not showing for Single Logical Table Repository Schema

    Hi
    I'm trying to create a very simple OBIEE repository schema for a sales proof of concept. The schema consits of a single physical table, single BMM (logical) table and a single presentation table.
    I have created all the layers OK. However, when I check for global consistancy i get an error message 'Logical table SALES_POC does not join to any other logical table'. Now i understand this error, but in this case this is how the design is intended. However, if ignore this error i'm not seeing the new subject area after bouncing BI server & BI presentation services.
    Anyone know a way round this, or do i need to have at least 2 logical tables?
    Thanks
    James

    Yes I think RPD is in the correct folder & NQSConfig.INI is set correctly.
    RPD is called ethreeCustomv1.RPD & saved in /ora/biee/10.1.3.4/OracleBI/server/Repository
    NQSConfig.INI has the following definition:
    [ REPOSITORY ]
    BIEE = ethreeCustomv1.rpd, DEFAULT;
    [ CACHE ]
    ENABLE     =     NO;

  • Error while Importing customer repository schema

    Hi All,
    I want to import a customer repository schema into vendor repository so that i can have multiple main tables.
    I exported the customer repository schema and tried to import it in Vendor repository.
    In the pop up that apperas when we click the Import repository schema and select the file from the source location i selected the below options
    1. for all the modify operations i selected the operation as "Reject "
    2. For all the delete operations i selected the operation as "Reject"
    and
    3. for all the add operations i selected the Operation as "ADD"
    for Vendors table(main) the operation was to delete for which i selected the reject operation and for customers table(main) i selected the add operation.
    Now when select ok the system throws the below error
    "One or more selection Items require that you select additional Items. would you like to see the report".
    On clicking yes to see the report i get the below message
    *Transport operation failed:
    Dependency check failure.  A reference to object of type: MatchingStrategy named: Customers:MDM_CUSTOMERS cannot be resolved because the object is not being added.*
    Can anyone please help me in understanding where i am going wrong?
    regards,
    Sharma.

    Hi Sharma,
    I am quite sure that this problem is related to MDM Strategy only.If you delete your strategy and try u will be able to do so:
    Please check you strategy or check may be in strategy u have some lookup field and corresponding lookup table is not transported.
    See the error says:
    Dependency check failure. A reference to object of type: MatchingStrategy named: Customers:MDM_CUSTOMERS cannot be resolved because the object is not being added
    Regards,
    Neethu Joy

  • Java.lang.NoSuchMethodError: oracle.xml.parser.schema.XSDBuilder.build

    The following code works fine with JDeveloper 10.1.2 with the xmlparserv2.jar file provided with JDeveloper.
    =====
    XSDBuilder schemaBuilder = new XSDBuilder();
    URL xsdURL = new URL(schemaUrl);
    XMLSchema xmlschema = (XMLSchema) schemaBuilder.build(xsdURL);
    ========
    However when I try to put this in Oracle Application Server 10.1.2.0.2, I get the following error:
    ====
    java.lang.NoSuchMethodError: oracle.xml.parser.schema.XSDBuilder.build
    ====
    It seems like the oracle version is different in app server 10.1.2.0.2 that that of JDeveloper 10.1.2.
    When we rename the parser, the application works BUT the Oracle Enterprise Manager does not work properly as it depends on the latest version of the parser.
    Please help.
    Thanks,
    Madhav

    I am able to reproduce this problem. I have a jar file MyLib.jar which contains a class MyXmlUtils with a method called validate. This JAR file was created in JDeveloper 9.0.5.2.
    Now I create a Test class in JDeveloper 10.1.2 and use the method in the JAR file and it crashes in build method. The error says "NoSuchMethod".
    However if I import MyXmlUtils class in to the Test project, everything works fine.
    What is going on here?
    // MyLib.jar (Created in JDeveloper 9.0.5.2)
    public class MyXmlUtils
    public static void validate(String xml, String schemaUrl) throws Exception
    XSDBuilder schemaBuilder = new XSDBuilder();
    URL xsdURL = new URL(schemaUrl);
    XMLSchema xmlschema = (XMLSchema) schemaBuilder.build(xsdURL);
    dp.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    dp.setXMLSchema(xmlschema);
    ====
    // Test project created in JDeveloper 10.1.2
    import MyXmlUtils;
    public class Test
    public static void main(String[] args)
    Test t = new Test();
    try
    String xml = "<Person><Name>John</Name></Person>";
    String xsd = "file:\\c:\\Person.xsd";
    MyXmlUtils.validate(xml, xsd);
    catch (Exception e)
    System.out.println(e.getMessage());
    System.exit(1);
    Thanks,
    Madhav

  • Validate XML using schema

    Hi,
    I want to validate a xml from a schema (xsd). Can I uses a parser (any parser - xerces perhaps) and read the xsd into a String and then pass that string object to the parser?
    So instead of this:
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser", true);
    builder.setFeature("http://apache.org/xml/features/validation/schema",
                        true);
    builder.setProperty("http://apache.org/xml/properties/schema"
                             + "/external-noNamespaceSchemaLocation",
    LOCATION OF XSD);
    Can I replace "LOCATION OF XSD" with a String argument that represents the contents of the XSD instead of the location to the xsd?
    Thanks

    A Schema validator could be used to validate your xml with a schema.
    TIBCO XMLValidate is a schema validator.
    http://www.tibco.com/solutions/products/extensibility/xml_validate.jsp

  • Can not validate XML against schema

    Hi all,
    I'm new to XML validation. I have this sample from net.
    this is the schema definition:
    <xs:schema targetNamespace="http://www.w3schools.com" elementFormDefault="qualified">
    <xs:element name="note" type="xs:string"/>
    </xs:schema>
    and this is the xml file:
    <?xml version="1.0"?>
    <note xmlns="http://www.w3schools.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3schools.com note.xsd">
    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>Don't forget me this weekend!</body>
    </note>
    when i try to validate at http://schneegans.de/sv/, this is a validator i found searching
    it gives error
    The root element does not comply with the schema. (2:2)
    any ideas?
    i have created my own xml and schema.I registered the xsd on oracle 10g but i get the same error :(
    where can i validate my xml against a schema?
    thanx a lot

    Validating XML Documents Against XML Schema
    http://www.oracle.com/technology/pub/articles/vohra_xmlschema.html

  • How many domains can share a single set of database repository schemas?

    How many domains can share a single set of database repository schemas (created by the RCU)?
    What is the best practice in an environment with many domains/WLS servers/applications and a desire to manage minimum database MW repository schemas?

    Hi,
    You can't share the same repository for multiple domains.
    http://docs.oracle.com/cd/E23943_01/web.1111/e13716/understand_domains.htm#i1102627
    (Please mark question as answered or helpful)
    Arik

  • Get Work Repository Schema via odiref

    Hi all,
    Is it possible to get the name of the work repository schema (not the Work schema) using a call to one of the substitution APIs?
    Thanks,
    S.

    hmmmm , not sure if its possible to return it - most probably it is but in the meantime you can always import the schema into Topolology and reference it as you would any other.
    The other way would be to use a variable that refreshes against your master repos to grab the name.

Maybe you are looking for

  • Actual cost  is not  seen in the  variance calculation KKS2

    Hi I   did  variance calculation of  a Production order  ( after  telco)  .  Its a co - product.   The  target cost , actual cost and  allocated cost   fields are present  after  execution.   Now  the  actual cost  field is   blank  and  so   the  va

  • Apply border to multiple frames

    I would like to know if I can apply the small border preset to all of the photos in a montage. It could save me a lot of time if I knew how to apply this to multiple frams.

  • N97 Arabic language lost after updating.....

    Hello Everybody. I will make it simple this time. I have 'middle east' version of nokia n97 with Arabic language included."I could write in Arabic" after updating to V22 I couldn't do that any more? Is it possible to reinstall that language back with

  • Running slow, what can we do?

    Hi and thanks in advance for your help! Please read specifications below. My iMacG5 (not intel) is running slow, particularly during start-up, which can take up to 4min. Internet is also slow. I have both Techtool pro and disk warrior (if they would

  • Move itunes library from desk computer to laptop?

    Is it possible to move my itunes library from itunes on my desk computer to itunes on my laptop? If so, how?