How to generate WPF Xaml through XSD (xml schema definition)

Hi Experts
I am working on Projects where we need to generate wpf ui (xaml) at runtime as per different requirements. We are trying to generate xaml from xsd file. We are able to generate UI from xml but as size of xml can be large we are reluctant to use xml as xaml
generation source. I am attaching a sample image what we are trying to do
UI elements Description
For each complex node in xsd, we need a panel which can have add or delete button depending on minoccurs and maxoccurs of the node. Inside panel we want to add different ui elements.
Please suggest if there is any way to do this or any one have worked in this direction?
Thanks
Praveen

I should think you could use xsl on xsd to generate xaml.
I have used xsl on xml to do this sort of thing - for reporting style stuff. 
Xsd is just an odd kind of xml so I should think that's do-able.
Failing that.
You could use the template approach and generate xml from that but use c# to read the xsd.
You would have like a textbox template etc.
Is that UI truly representative?
You could leverage the approach I use in this:
http://social.technet.microsoft.com/wiki/contents/articles/29777.wpf-property-list-editing.aspx
The EditRow user control has label + editing control as a pair.
You would add another control for that pattern thing I see in grey after some of those.
But you could essentially iterate the fields in an xsd , decide what control to use based on field type. 
Set the label....
Add that to a Listbox.
You have a big bunch of xsd and you're thinking of generating the UI?
I suppose you could then use icustomtypeprovider to generate matching viewmodels inheriting some base vm functionality.
I don't follow how a "supporting dll" comes into this.
Could you explain?
Hope that helps.
Recent Technet articles:
Property List Editing ;  
Dynamic XAML

Similar Messages

  • How to create the XSD(XML Schema Definition) ?

    Dear All,
         How to create an XSD for the following XML defined ?
    <?xml version="1.0" encoding="utf-8"?>
    <formulations name="Formulations">
        <formulation name="Formulation-1" type="formulation">
            <intermediateFormulation name="IntermediateFormulation-1" type="intermediate">
                <grade name="Grade-1" type="grade">
                    <rawMaterial name="Raw Material-1" type="raw" />
                </grade>
            </intermediateFormulation>
            <grade name="Grade-1" type="grade">
                <rawMaterial name="Raw Material-1" type="raw" />
            </grade>
        </formulation>
    </formulations>
    Thank You,
    Supreet R

    Hi Sivaram,
    Unfortunately, the 8.1 IDE did not have special tooling for schema generation.
    You will need to create it by hand or using an external tool
    If you are using an external tool to create the file within the schema project, you might want to disable the schema project auto build, which will be triggered every time a file save takes place
    cheers
    Raj

  • How to generate org model through report

    How to generate org model using report .
    please share your information .
    thanks in advance ,
    sapcrm

    Hi,
    It's look like you are assuming that an organizational model can be created from external data input via a report. If so, then your assumption is wrong. There is no standard way to create a org. model from external input.
    As a standard practice SAP provided a report as mentioned in the previous reply. Using this report you can download ECC/R3 org. model into SAP CRM. This is the easy and best proven way of generating org. model in SAP CRM.
    Please let me know, if you need any further clarification
    Do not forget to reward if it helps
    Regards,
    Paul Kondaveeti

  • Generate Adobe Interactive Form with XML Schema-Based Interface

    Hi,
    I need to generate a adobe Interactive but with XML Schema-Based Interface, i have one example but with ABAP Dictionary-Based Interface.
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams       = fp_outputparams
    * EXCEPTIONS
    *   CANCEL                = 1
    *   USAGE_ERROR           = 2
    *   SYSTEM_ERROR          = 3
    *   INTERNAL_ERROR        = 4
    *   OTHERS                = 5
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
      EXPORTING
        i_name     = 'ZMMDM_CL'
      IMPORTING
        e_funcname = fm_name.
    But when i call the next function for print i need the docxml parameter and i don't know how to get it
    fm_name
    CALL FUNCTION fm_name
      EXPORTING
       /1BCDWB/DOCPARAMS        = fp_docparams
    *    /1bcdwb/docxml           =
    * IMPORTING
    *   /1BCDWB/FORMOUTPUT       =
    * EXCEPTIONS
    *   USAGE_ERROR              = 1
    *   SYSTEM_ERROR             = 2
    *   INTERNAL_ERROR           = 3
    *   OTHERS                   = 4

    1) this questions was asked many times before, you didn´t search for a second
    2) I am not aware of any standard solution
    3) custom solution: use XSLT transformation ID to get XML from the filled DDIC structure and use string operations to add the header and footer to create a valid XML.
    Regards Otto

  • How to identify objects created by registering xml schema

    Hi Everyone,
    We are using Oracle 9i Rel2. I have registered an XML schema and I saw that there were several objects created for it table ,some types and a trigger . For some build purposes I want to exclude all of these objects which are associated with xml schema and should be able to drop and recreate the whole of oracle schema.
    I see the user_types table does not have any parameter to indicate that these are autogenerated or are different. In user_types they look like any other type that a user would have created. Do any of you know how to differentiate these types created by registering XML schemas from the normal types.
    Thanks for your help

    There is no way I know of to differentiate between a type created by Schema Registration and another Type. You can query the XML Schema itslef to get the Typenames it relies on.
    SQL> --
    SQL> SQL> select nvl(extractvalue
    2 (
    3 value(ct),
    4 '/xs:complexType/@name',
    5 'xmlns:xs="http://www.w3.org/2001/XMLSchema"
    6 xmlns:xdb="http://xmlns.oracle.com/xdb"'
    7 ),'Local Complex Type') COMPLEX_TYPE,
    8 extractvalue
    9 (
    10 value(ct),
    11 '/xs:complexType/@xdb:SQLType',
    12 'xmlns:xs="http://www.w3.org/2001/XMLSchema"
    13 xmlns:xdb="http://xmlns.oracle.com/xdb"'
    14 ) SQL_TYPE
    15 from user_xml_schemas,
    16 table
    17 (
    18 xmlsequence
    19 (
    20 extract
    21 (
    22 schema,
    23 '//xs:complexType',
    24 'xmlns:xs="http://www.w3.org/2001/XMLSchema"
    25 xmlns:xdb="http://xmlns.oracle.com/xdb"'
    26 )
    27 )
    28 ) ct
    29 /
    COMPLEX_TYPE
    SQL_TYPE
    PurchaseOrderType
    PURCHASEORDER_T
    LineItemsType
    LINEITEMS_T
    LineItemType
    LINEITEM_T
    COMPLEX_TYPE
    SQL_TYPE
    PartType
    PART_T
    ActionsType
    ACTIONS_T
    Local Complex Type
    ACTION_T
    COMPLEX_TYPE
    SQL_TYPE
    RejectionType
    REJECTION_T
    ShippingInstructionsType
    SHIPPING_INSTRUCTIONS_T
    Local Complex Type
    ROOT_T
    COMPLEX_TYPE
    SQL_TYPE
    Local Complex Type
    P222_T
    10 rows selected.
    SQL>

  • Database to XML with XSD (XML schema)

    I have an Oracle 9 DB.
    I need to convert data from a table (Java ResultSet) to XML (I have an XML schema file).
    How can I do?
    Is there a tool?
    Thanks, Ludo.

    Refer to
    Oracle Xml Sql Utility.
    http://www.xml.com/pub/r/846

  • XML Schema Definition validation

    Hi all,
    I am trying to find the right way to get validation errors out of a xsd file - I found a couple of ways to do this but none of them seem to be the "right" way...
    (BTW, I am using Xerces 2.6.2)
    The first option was to validate the xsd against it's own xsd (http://www.w3.org/2001/XMLSchema.xsd) - but that's kind of stupid since the parser already knows what an xsd should look like and should be able to provide "smarter" errors besides mere structural ones.
    The second option is to set the xsd which I want to validate as the schema source to some pseudo xml which I parse only to get the errors in the xsd....
    something like this:
    SAXParserFactory spf = SAXParserFactory.newInstance();
    spf.setNamespaceAware(true);
    spf.setValidating(true);
    SAXParser sp = spf.newSAXParser();
    sp.setProperty(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
    sp.setProperty(JAXP_SCHEMA_SOURCE, xsdForValidation);
    sp.parse(new InputSource(new StringReader("<root></root>")), new MyHandler());This is really stupid but as a result MyHandler gets notified about error in the xsd file, which is what I am interested in.... The problem is that I obviously get error reports for my pseudo xml..... How can I differentiate between the xsd errors and the xml errors I am reported about? there is nothing in the error data indicating if it came from the schema-source or the xml itself....
    What am I missing here? How can this reasonable need be so annoying to implement?

    Some of the Schema Editors validate a schema.
    Stylus Studio
    http://www.stylusstudio.com/
    http://www.tibco.com/software/business_integration/turboxml.jsp

  • JPA: how to organize multiple databases having the same schema definition?

    Hi there,
    I'm new to Java EE but I could finish some test projects on GlassFish 3 / Java EE 6 platform.
    Now it's time to build the actual system and I need some help in that.
    So, I can't really tell you the exact purpose of this system but let's look at the following example which is very close to what I need.
    Say there is a database schema definition (DDL) for Oracle 11g and this schema is storing the inventory of a shop. So tables like product, category, price etc
    Say there are 50 shops, and I'm getting a new database for each shop every month holding their inventory.
    So every month I'm receiving a SQL file with INSERTs (DML) for every shop for the DDL I mentioned above.
    I'm getting 50 SQL files for the 50 shops every month, so in a year you're talking about 600 SQL files to import.
    If it was php/MySQL I could import them into a separate database each, call it shop1_May11, shop2_May11 etc reflecting the shop name and the month in the database name.
    This is my question how you guys think I should achieve this in Jave EE / Oracle.
    As the DDL is the same I thought to create an Entity for each table and use the Java Persistance API to create the databases and then I'd import the month/shop specific SQL files.
    But this means I'm gonna create 50 new schemas in Oracle every month?
    Or what's the best way to achieve this?
    Thanks in advance
    Edited by: 833519 on May 18, 2011 5:28 AM
    Edited by: 833519 on May 18, 2011 5:29 AM
    Edited by: 833519 on May 18, 2011 5:31 AM

    JPA helps a lot in persisting and retrieving data that has relationships without having to worry about the relationships at a sQL level.
    So you get a java programmer that builds relationships using Java classes (the entities) and a persistence provider worries about the sql required to materialize those relationships.
    You seem to be using SQL inserts for persisting the data and you want to generate the reports from SQL as well.
    You can use it but you won't be gaining much of its advantages for this project.
    Consider reporting applications like the jasperserver for the reports.
    Also, I have seen people get away with using one database for this type of thing and just adding a clientid (and optionally branchid) to each table.

  • How to generate GUI code from parsed XML file?

    hai,
    I have to generate GUI code after parsing any configuration XML file as input.Now i have parsed my XML file and got its attributed and i want to get some idea of how to map the parsed XML attributes to the java code to build GUI code.

    Hello,
    1. I like to create data type from a XML file structure, which contains the data structure ?
    XML fields will need to be taken note of to see which is repeating or not. You can also load the XML into a third-party tool such as Altova XML Spy and then generate an XSD from there. You will need to import the XSDs into PI under external definitions. However, this does not guarantee business interoperability, as such, it is always best to ask the provider for the XSDs or WSDL. It will also save you a lot of time from guessing which fields are needed or not.
    2. How to create custom node function in graphical mapping editor ?
    In your graphical mapping editor, on the lowest left corner, there is an icon there that says Create New Function. You must take into account their return types:
    1. Single Values = String
    2. Queue/Context (no return type) thus resultList is used.
    Hope this helps,
    Mark

  • How to generate PDF file through reports using forms 6i

    Hi all,
    I am using oracle 10g with forms 6i and reports 6i.I need to generate pdf file where clicking a button a report should be called and the report should be generated as a .pdf file in the source i have specified(ex. d:\...).Is this popssible with forms?.how can i achieve this.Kindly help me with suitable answers.Thanks :)
    Regards
    Vids

    hi,
    regarding report, there is a dedicated report forum. you should post there.
    but answer for your question is form is nothing to do with the pdf generation. you can call the report from the as usual.
    In the report you should set the properties like
    destype to 'file'
    desname to 'path with file name'
    desformat to 'pdf'

  • How to generate postscript in Check Writer (XML).

    I have set the format for Check writer (XML) in the system administrator responsibility to Postscript, still it generates PDF and XML, but not the postscript. Where am I going wrong? Do I need to enable or do additional setups? Appreciate your help.
    Thanks,
    Hari

    Hello,
    Just install a Postscript Printer Driver and use :
    rwrun.exe report=.. destype=file desname=c:\temp\output.ps desformat=psprinter
    if psprinter is the name of the postscript printer you have installed.
    Regards

  • How to generate dml scripts through sql prompt

    Hi friends,
    As we ve DBMS_METADATA.GET_DDL to create ddl scripts can we ve something to take out dml scripts..Not through TOAD i want through prompt...
    Thks
    Sonal...

    Hi,
    to take out dml scriptsNot sure what you mean...
    Did you want to get the current statement against your database ?
    Nicolas.

  • How to generate dates sequentially through functions

    first let see the sample code
    create or replace function FNC_GET_DATE(p_businessdate varchar2) return date
    as
    v_date date;
    begin
    v_Date := to_date(p_businessdate,'mm/dd/yyyy') +10;
    return v_date;
    end;Now i want to run this function in a loop say for N times and the first output of the function must be the input for the second call
    Assuming the Initial value of p_businessdate to be 01/01/2012 the output of the function shall be 01/11/2012.
    Now the output 01/11/2012 must be sent as input to the function FNC_GET_DATE then the output shall be 01/21/2012.
    Now the output 01/21/2012 must be sent as input to the function FNC_GET_DATE then the output shall be 01/31/2012.
    Assuming the number of iterations to be 4( here the value of N )output should be something like this:
    01/01/2012
    01/11/2012
    01/21/2012
    01/31/2012For this we need a function which has p_busdate and no_of_itereations as input parameter and the retrun type can be a sysrefcursor as shown below once again:
    01/01/2012
    01/11/2012
    01/21/2012
    01/31/2012
    Please advise.

    sri wrote:
    first let see the sample code
    create or replace function FNC_GET_DATE(p_businessdate varchar2) return date
    as
    v_date date;
    begin
    v_Date := to_date(p_businessdate,'mm/dd/yyyy') +10;
    return v_date;
    end;Now i want to run this function in a loop say for N times and the first output of the function must be the input for the second call
    Assuming the Initial value of p_businessdate to be 01/01/2012 the output of the function shall be 01/11/2012.
    Now the output 01/11/2012 must be sent as input to the function FNC_GET_DATE then the output shall be 01/21/2012.
    Now the output 01/21/2012 must be sent as input to the function FNC_GET_DATE then the output shall be 01/31/2012.
    Assuming the number of iterations to be 4( here the value of N )output should be something like this:
    01/01/2012
    01/11/2012
    01/21/2012
    01/31/2012For this we need a function which has p_busdate and no_of_itereations as input parameter and the retrun type can be a sysrefcursor as shown below once again:
    01/01/2012
    01/11/2012
    01/21/2012
    01/31/2012
    Please advise.Would probably be a lot easier to just use a SQL query.
    Here i've assumed you already have a date data type to work with.
    ME_TUBBZ?variable num_iterations number;
    ME_TUBBZ?exec :num_iterations := 2;
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    ME_TUBBZ?
    ME_TUBBZ?with first_date as
      2  (
      3     select trunc(sysdate) as the_date
      4     from dual
      5  )
      6  select the_date + (level * 10)
      7  from first_date
      8  connect by level <= :num_iterations;
    THE_DATE+(LEVEL*10)
    08-JUL-2012 00 00:00
    18-JUL-2012 00 00:00
    2 rows selected.
    Elapsed: 00:00:00.00
    ME_TUBBZ?
    ME_TUBBZ?exec :num_iterations := 4;
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    ME_TUBBZ?
    ME_TUBBZ?with first_date as
      2  (
      3     select trunc(sysdate) as the_date
      4     from dual
      5  )
      6  select the_date + (level * 10)
      7  from first_date
      8  connect by level <= :num_iterations;
    THE_DATE+(LEVEL*10)
    08-JUL-2012 00 00:00
    18-JUL-2012 00 00:00
    28-JUL-2012 00 00:00
    07-AUG-2012 00 00:00
    4 rows selected.
    Elapsed: 00:00:00.00Cheers,

  • Validate XML using XSD (XML Schema)

    Hi experts.
    Is there any way in ABAP to validate XML file against specified XSD file?
    I found only possibility to validate against DTD, but no XSD. As far as I know this is only possible in Java, or is a part of XI. Is it doable without Java or XI (on NetWeaver 2004s)?
    Help appreciated (and rewarded).
    Regards, Frantisek.

    Hello
    Perhaps you missed this link: [How to Perform XML Validations in SAP NetWeaver Process Integration 7.1|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06dff94-9913-2b10-6f82-9717d9f83df1]
    Regards
      Uwe

  • XSD (XML Schema)

    Do you now any tool that creates Java objects from XSD?
    Can I use the logic from an XSD file into a java aplication?
    Can I perfomr checking on setting values of an object created from XSD? I found out only how to perform checking on an XML file, but I want to perform checking also on the objects that represents the XML data.

    Do you now any tool that creates Java objects from
    XSD?
    Can I use the logic from an XSD file into a java
    aplication?
    Can I perfomr checking on setting values of an object
    created from XSD? I found out only how to perform
    checking on an XML file, but I want to perform
    checking also on the objects that represents the XML
    data.Hi,
    You may be interested in Java(TM) Architechture for XML binding (JAXB)
    JAXB is a technique to simplify the creation and maintenance of XML enabled Java applications. It has a schema compiler which will create
    Java Objects from a schema file.
    For more information please see http://java.sun.com/xml/jaxb/index.html
    The Public Draft of the spec is available there.
    Thanks,
    Bhakti

Maybe you are looking for

  • How to control a hydraulic system by PID

    Hello, I am PhD student at the University of Zilina in Slovakia. I am currently working on a project to use PID control toolkit. We are running LabView 5.1 and PID Control Toolkit ver.2.1 under Windows NT4. We have bought a ATMIO16E10 card for the ap

  • Basic questions on usage of indexes

    Hi All, I have the following questions on the usage of indexes. I would be glad if you could answer the same. 1)     Will using two different indexes for comparison reduce the performance for eg. If in a query I were to compare columns of two differe

  • Scenario Config

    Hi, I have main router CISCO 3825 VO4 and main switch C3560 48P and you will see here the running configuration in the router Plz can any one tell me his opinion in this scenario and if you can give me any concepts or ideas to improve it show run Bui

  • Off-Topic: Unresponsive FTP server

    What's the deal with Oracle's FTP Server? Everything used to be smooth, no matter what day or time. Now you get: * User ftp access denied. Not logged in. * If you ever do log in, and start GET, the transfer rate gets slower and slower 'til you get no

  • Is this a computer problem or an AOL problem?

    When I bring my e-mail up on my laptop, sometimes in the upper right corner of the screen a note comes up for a second and disappears that says my email is unavailable. I'm wondering why that is happening and what does it mean? Is it a problem with m