none
two xml file calling one xsd file RRS feed

  • Question

  • hi i am having two xml files one product.xml and other sales.xml

    <?xml version="1.0" encoding="utf-8" ?>
    <productdetails>
      <product>
        <id>1</id>
        <name>cinthol</name>
        <price>200</price>
      </product>
      <product>
        <id>2</id>
        <name>liril</name>
        <price>300</price>
      </product>
      <product>
      <id>3</id>
      <name>hammam</name>
      <price>400</price>
      </product>
    </productdetails>

    and other------------------------------------

    <?xml version="1.0" encoding="utf-8" ?>
    <salesdetails>
      <sales>
        <salesid>1</salesid>
        <productid>1</productid>
        <salesqty>100</salesqty>
      </sales>
      <sales>
        <salesid>2</salesid>
        <productid>2</productid>
        <salesqty>150</salesqty>
      </sales>
    </salesdetails>

    i want to create  a xsd file inorder to join or create foreign key (for producttable and sales table),how i can do that


    sidd

    • Moved by Kee Poppy Tuesday, August 21, 2012 6:57 AM (From:Windows Presentation Foundation (WPF))
    Monday, August 20, 2012 11:21 AM